Skip to main content

RunTracker

Trait RunTracker 

Source
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§

Source

fn start_run( &self, run_id: &str, tenant_id: &str, agent_name: &str, source: Option<&str>, )

Register a new run as active.

Source

fn update_run(&self, run_id: &str, status: &str, step: i32)

Update run progress.

Source

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".

Implementors§