Skip to main content

ProgressFn

Type Alias ProgressFn 

Source
pub type ProgressFn = Arc<dyn Fn(String) + Send + Sync>;
Expand description

Callback for emitting user-facing progress messages during tool execution.

Each invocation emits an AgentEvent::ProgressMessage event. Unlike ToolUpdateFn, these are simple text messages intended for user-facing display (e.g., status lines, notifications), not structured tool results.

Aliased Typeยง

pub struct ProgressFn { /* private fields */ }