pub struct SessionResult {Show 33 fields
pub session_id: String,
pub project: String,
pub turn_details: Vec<TurnDetail>,
pub agent_summary: AgentSummary,
pub total_tokens: AggregatedTokens,
pub total_cost: f64,
pub stop_reason_counts: HashMap<String, usize>,
pub duration_minutes: f64,
pub max_context: u64,
pub compaction_count: usize,
pub cache_write_5m_pct: f64,
pub cache_write_1h_pct: f64,
pub model: String,
pub title: Option<String>,
pub tags: Vec<String>,
pub mode: Option<String>,
pub pr_links: Vec<PrLinkInfo>,
pub user_prompt_count: usize,
pub autonomy_ratio: f64,
pub api_error_count: usize,
pub tool_error_count: usize,
pub truncated_count: usize,
pub speculation_accepts: usize,
pub speculation_time_saved_ms: f64,
pub service_tiers: HashMap<String, usize>,
pub speeds: HashMap<String, usize>,
pub inference_geos: HashMap<String, usize>,
pub git_branches: HashMap<String, usize>,
pub collapse_count: usize,
pub collapse_summaries: Vec<String>,
pub collapse_avg_risk: f64,
pub collapse_max_risk: f64,
pub attribution: Option<AttributionData>,
}Fields§
§session_id: String§project: String§turn_details: Vec<TurnDetail>§agent_summary: AgentSummary§total_tokens: AggregatedTokens§total_cost: f64§stop_reason_counts: HashMap<String, usize>§duration_minutes: f64§max_context: u64§compaction_count: usize§cache_write_5m_pct: f64§cache_write_1h_pct: f64§model: String§title: Option<String>§mode: Option<String>§pr_links: Vec<PrLinkInfo>§user_prompt_count: usize§autonomy_ratio: f64§api_error_count: usize§tool_error_count: usize§truncated_count: usize§speculation_accepts: usize§speculation_time_saved_ms: f64§service_tiers: HashMap<String, usize>§speeds: HashMap<String, usize>§inference_geos: HashMap<String, usize>§git_branches: HashMap<String, usize>§collapse_count: usize§collapse_summaries: Vec<String>§collapse_avg_risk: f64§collapse_max_risk: f64§attribution: Option<AttributionData>Trait Implementations§
Source§impl Debug for SessionResult
impl Debug for SessionResult
Auto Trait Implementations§
impl Freeze for SessionResult
impl RefUnwindSafe for SessionResult
impl Send for SessionResult
impl Sync for SessionResult
impl Unpin for SessionResult
impl UnsafeUnpin for SessionResult
impl UnwindSafe for SessionResult
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more