pub struct PostToolUseFailureInput {
pub base: BaseHookInput,
pub subagent: SubagentContext,
pub tool_name: String,
pub tool_input: Value,
pub tool_use_id: String,
pub error: String,
pub is_interrupt: Option<bool>,
}Expand description
Input payload for PostToolUseFailure.
Fields§
§base: BaseHookInputShared hook context.
subagent: SubagentContextOptional sub-agent attribution.
tool_name: StringTool that was invoked and failed.
tool_input: ValueInput the tool ran with.
tool_use_id: StringTool-use identifier matching the preceding PreToolUse frame.
error: StringError message the tool surfaced.
is_interrupt: Option<bool>Some(true) when the failure was caused by user interruption; None
when the CLI omits the field (upstream NotRequired).
Trait Implementations§
Source§impl Clone for PostToolUseFailureInput
impl Clone for PostToolUseFailureInput
Source§impl Debug for PostToolUseFailureInput
impl Debug for PostToolUseFailureInput
Source§impl<'de> Deserialize<'de> for PostToolUseFailureInput
impl<'de> Deserialize<'de> for PostToolUseFailureInput
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for PostToolUseFailureInput
impl RefUnwindSafe for PostToolUseFailureInput
impl Send for PostToolUseFailureInput
impl Sync for PostToolUseFailureInput
impl Unpin for PostToolUseFailureInput
impl UnsafeUnpin for PostToolUseFailureInput
impl UnwindSafe for PostToolUseFailureInput
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