Skip to main content

CallbackContext

Trait CallbackContext 

Source
pub trait CallbackContext: ReadonlyContext {
    // Required method
    fn artifacts(&self) -> Option<Arc<dyn Artifacts>>;

    // Provided method
    fn tool_outcome(&self) -> Option<ToolOutcome> { ... }
}

Required Methods§

Source

fn artifacts(&self) -> Option<Arc<dyn Artifacts>>

Provided Methods§

Source

fn tool_outcome(&self) -> Option<ToolOutcome>

Returns structured metadata about the most recent tool execution. Available in after-tool callbacks and plugin hooks. Returns None when not in a tool execution context.

Implementors§