pub trait ToolCallProgressSink: Send + Sync {
// Required method
fn report(
&self,
stream_id: &str,
activity_type: &str,
payload: &ToolCallProgressState,
) -> TireaResult<()>;
}Expand description
Sink interface for tool-call progress events.
Tools report progress through ToolCallContext::report_tool_call_progress, and
the context forwards canonical payloads into this sink. The sink implementation
decides how payloads are emitted/transported.
Required Methods§
Sourcefn report(
&self,
stream_id: &str,
activity_type: &str,
payload: &ToolCallProgressState,
) -> TireaResult<()>
fn report( &self, stream_id: &str, activity_type: &str, payload: &ToolCallProgressState, ) -> TireaResult<()>
Consume a canonical tool-call progress payload.