pub trait AgentSwarmProgressSink: Send + Sync {
// Required method
fn emit_progress<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
thread_id: &'life1 str,
turn_id: &'life2 str,
tool_id: &'life3 str,
snapshot: AgentSwarmProgressSnapshot,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait;
}Expand description
Sink the runtime supplies on a tool-execution context so the agent_swarm
tool can publish live progress snapshots (carrying the runtime’s thread/turn
ids and the bus emitter) without the tool depending on roder-core.
Required Methods§
fn emit_progress<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
thread_id: &'life1 str,
turn_id: &'life2 str,
tool_id: &'life3 str,
snapshot: AgentSwarmProgressSnapshot,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".