Skip to main content

TraceStoreRead

Trait TraceStoreRead 

Source
pub trait TraceStoreRead: Send + Sync {
    // Required methods
    fn list_ids(&self) -> Vec<String>;
    fn get_json(&self, task_id: &str) -> Option<String>;
    fn get_metadata(&self, task_id: &str) -> Option<TraceMetadata>;
    fn get_steps_json(&self, task_id: &str) -> Option<String>;
    fn get_summary_json(&self, task_id: &str) -> Option<String>;
    fn filter_by_agent(&self, agent_name: &str) -> Vec<String>;
    fn filter_by_success(&self, success: bool) -> Vec<String>;
}
Expand description

Trait for reading traces (subset of TrajectoryStore)

Required Methods§

Source

fn list_ids(&self) -> Vec<String>

List all task IDs

Source

fn get_json(&self, task_id: &str) -> Option<String>

Get a trace by task ID as JSON

Source

fn get_metadata(&self, task_id: &str) -> Option<TraceMetadata>

Get trace metadata

Source

fn get_steps_json(&self, task_id: &str) -> Option<String>

Get steps for a trace as JSON

Source

fn get_summary_json(&self, task_id: &str) -> Option<String>

Get trace summary as JSON

Source

fn filter_by_agent(&self, agent_name: &str) -> Vec<String>

Filter by agent name

Source

fn filter_by_success(&self, success: bool) -> Vec<String>

Filter by success status

Implementors§