AfterToolCallback

Type Alias AfterToolCallback 

Source
pub type AfterToolCallback = Arc<dyn Fn(&ToolCallResult) -> Pin<Box<dyn Future<Output = ()> + Send + '_>> + Send + Sync>;
Expand description

An after-tool callback function type.

Receives the tool call result for observation/logging purposes. Cannot modify the result.

Aliased Typeยง

pub struct AfterToolCallback { /* private fields */ }