pub trait CallbackContext: ReadonlyContext {
// Required method
fn artifacts(&self) -> Option<Arc<dyn Artifacts>>;
// Provided method
fn tool_outcome(&self) -> Option<ToolOutcome> { ... }
}Expand description
Core traits and types.
Always available regardless of feature flags. Includes:
Required Methods§
Provided Methods§
Sourcefn tool_outcome(&self) -> Option<ToolOutcome>
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.