pub trait ProgressHandler: Send + Sync {
// Provided methods
fn on_status(&self, _message: &str) { ... }
fn on_success(&self, _message: &str) { ... }
fn on_warning(&self, _message: &str) { ... }
fn on_error(&self, _message: &str) { ... }
fn on_spinner_start(&self, _message: &str) { ... }
fn on_spinner_finish(&self) { ... }
fn on_debug(&self, _message: &str) { ... }
}Expand description
Progress and status reporting trait for agent operations.
Library consumers implement this to receive status updates during
agent execution. The CLI binary implements this with terminal spinners
and colored output; programmatic users can use SilentProgress or
implement custom reporting.
Provided Methods§
Sourcefn on_success(&self, _message: &str)
fn on_success(&self, _message: &str)
An operation completed successfully.
Sourcefn on_warning(&self, _message: &str)
fn on_warning(&self, _message: &str)
A non-fatal warning.
Sourcefn on_spinner_start(&self, _message: &str)
fn on_spinner_start(&self, _message: &str)
A long-running operation started (e.g., spinner).
Sourcefn on_spinner_finish(&self)
fn on_spinner_finish(&self)
The current spinner/long-running operation finished.