ExecutionCallback

Trait ExecutionCallback 

Source
pub trait ExecutionCallback {
    // Required methods
    fn on_tool_start(&mut self, tool_name: &str, args: &str);
    fn on_tool_complete(
        &mut self,
        tool_name: &str,
        args: &str,
        result: &str,
        success: bool,
    );
    fn on_compact_log(&mut self, compact_json: &str);
}
Expand description

Optional callback for logging and custom behavior

Required Methods§

Source

fn on_tool_start(&mut self, tool_name: &str, args: &str)

Called before executing a tool

Source

fn on_tool_complete( &mut self, tool_name: &str, args: &str, result: &str, success: bool, )

Called after tool execution (success or failure)

Source

fn on_compact_log(&mut self, compact_json: &str)

Called for compact logging (JSON format)

Implementors§