Skip to main content

AgentToolStreamCallback

Type Alias AgentToolStreamCallback 

Source
pub type AgentToolStreamCallback = Arc<dyn Fn(&AgentResponseUpdate) + Send + Sync>;
Expand description

A callback receiving each AgentResponseUpdate streamed by an agent running as a tool — see AsToolOptions::stream_callback.

Aliased Type§

pub struct AgentToolStreamCallback { /* private fields */ }