pub trait RunTracker:
Send
+ Sync
+ 'static {
// Required methods
fn start_run(
&self,
run_id: &str,
tenant_id: &str,
agent_name: &str,
source: Option<&str>,
);
fn update_run(&self, run_id: &str, status: &str, step: i32);
fn finish_run(&self, run_id: &str, status: &str);
}Expand description
Trait for tracking active agent runs. Implemented by the root crate’s ActiveRuns
and injected into Execute via the Context.
This allows ares-agent (a leaf crate) to track runs without depending on root-crate types.
Required Methods§
Sourcefn start_run(
&self,
run_id: &str,
tenant_id: &str,
agent_name: &str,
source: Option<&str>,
)
fn start_run( &self, run_id: &str, tenant_id: &str, agent_name: &str, source: Option<&str>, )
Register a new run as active.
Sourcefn update_run(&self, run_id: &str, status: &str, step: i32)
fn update_run(&self, run_id: &str, status: &str, step: i32)
Update run progress.
Sourcefn finish_run(&self, run_id: &str, status: &str)
fn finish_run(&self, run_id: &str, status: &str)
Mark run as finished with terminal status.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".