pub struct SessionSummary {Show 26 fields
pub harness: Option<Harness>,
pub session_id: Option<String>,
pub subagent: Option<SubagentInfo>,
pub cwd: Option<PathBuf>,
pub model: Option<String>,
pub harness_version: Option<String>,
pub usage: TokenUsage,
pub cost_usd: f64,
pub cost_breakdown: CostBreakdown,
pub price_source: Option<PriceSource>,
pub unpriced_tokens: u64,
pub turns: u64,
pub subagent_turns: u64,
pub folds_child_usage: bool,
pub tool_calls: u64,
pub tool_calls_lower_bound: bool,
pub web_searches: u64,
pub spans: SpanLog,
pub mcp: BTreeMap<String, McpUsage>,
pub context: ContextLedger,
pub health: ParseHealth,
pub activity: Activity,
pub started_at: Option<SystemTime>,
pub last_activity: Option<SystemTime>,
pub rate_limit: Option<RateLimit>,
pub harness_cost: Option<HarnessCost>,
}Fields§
§harness: Option<Harness>§session_id: Option<String>§subagent: Option<SubagentInfo>Logical subagent metadata from the transcript, never from process ancestry.
cwd: Option<PathBuf>§model: Option<String>§harness_version: Option<String>§usage: TokenUsage§cost_usd: f64§cost_breakdown: CostBreakdowncost_usd by kind of token. See Agent::cost_breakdown.
price_source: Option<PriceSource>Set when the harness records its own costs instead of using our table.
unpriced_tokens: u64§turns: u64§subagent_turns: u64§folds_child_usage: boolChild sessions are counted in this row’s own totals, so the subagent share of them is worth breaking out. A harness that gives each child a row of its own leaves this false: nothing was folded in to separate.
tool_calls: u64§tool_calls_lower_bound: boolEarlier calls may have been removed from the harness’s retained history.
web_searches: u64See Agent::web_searches.
spans: SpanLog§mcp: BTreeMap<String, McpUsage>Calls to each MCP server, by the server’s name.
context: ContextLedgerWhat each tool’s results added to the prompt, and what carrying it
has cost. See ContextLedger.
health: ParseHealth§activity: Activity§started_at: Option<SystemTime>§last_activity: Option<SystemTime>§rate_limit: Option<RateLimit>How close the session is to its rate limit, when the harness writes it.
harness_cost: Option<HarnessCost>The harness’s own cost figure, when it writes one. See HarnessCost.