pub struct PreToolUseOutput {
pub permission_decision: Option<String>,
pub permission_decision_reason: Option<String>,
pub modified_args: Option<Value>,
pub additional_context: Option<String>,
pub suppress_output: Option<bool>,
}Expand description
Output for the preToolUse hook.
Fields§
§permission_decision: Option<String>“allow” or “deny”.
permission_decision_reason: Option<String>Reason for the decision (shown to the agent).
modified_args: Option<Value>Replacement arguments for the tool.
additional_context: Option<String>Extra context injected into the agent’s prompt.
suppress_output: Option<bool>Suppress the hook’s output from the session log.
Trait Implementations§
Source§impl Clone for PreToolUseOutput
impl Clone for PreToolUseOutput
Source§fn clone(&self) -> PreToolUseOutput
fn clone(&self) -> PreToolUseOutput
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PreToolUseOutput
impl Debug for PreToolUseOutput
Source§impl Default for PreToolUseOutput
impl Default for PreToolUseOutput
Source§fn default() -> PreToolUseOutput
fn default() -> PreToolUseOutput
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for PreToolUseOutput
impl RefUnwindSafe for PreToolUseOutput
impl Send for PreToolUseOutput
impl Sync for PreToolUseOutput
impl Unpin for PreToolUseOutput
impl UnsafeUnpin for PreToolUseOutput
impl UnwindSafe for PreToolUseOutput
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more