pub struct AfterToolApply {
pub tool_name: String,
pub is_error: bool,
pub output: ToolResultBody,
pub additional_context: Vec<ContentBlock>,
}Expand description
after ToolApply (per-tool): the tool has produced a result. Supports injection
(appending to tool_result) or Break.
Fields§
§tool_name: String§is_error: bool§output: ToolResultBodyThe result body produced by the tool (always present, not an Option) — placed
into the envelope so the hook can see the tool’s output.
additional_context: Vec<ContentBlock>Trait Implementations§
Source§impl Clone for AfterToolApply
impl Clone for AfterToolApply
Source§fn clone(&self) -> AfterToolApply
fn clone(&self) -> AfterToolApply
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 AfterToolApply
impl Debug for AfterToolApply
Source§impl HookStep for AfterToolApply
impl HookStep for AfterToolApply
Source§fn event_name(&self) -> &'static str
fn event_name(&self) -> &'static str
Event name (snake_case). Used in envelope headers and matchers.
Source§fn to_envelope(&self) -> Value
fn to_envelope(&self) -> Value
Projects the step into an input envelope — fed to command stdin / prompt
templates. Contains a common header plus step-specific fields.
Source§fn apply_verdict(
&mut self,
verdict: &Value,
) -> Result<HookControl, VerdictError>
fn apply_verdict( &mut self, verdict: &Value, ) -> Result<HookControl, VerdictError>
Apply the handler’s output verdict (JSON) back to this step: parse the common
control / additional_context fields, then handle the step-specific “fill
output” fields. Returns a control directive. Read moreAuto Trait Implementations§
impl Freeze for AfterToolApply
impl RefUnwindSafe for AfterToolApply
impl Send for AfterToolApply
impl Sync for AfterToolApply
impl Unpin for AfterToolApply
impl UnsafeUnpin for AfterToolApply
impl UnwindSafe for AfterToolApply
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