pub struct SessionShutdownData {Show 14 fields
pub code_changes: ShutdownCodeChanges,
pub conversation_tokens: Option<f64>,
pub current_model: Option<String>,
pub current_tokens: Option<f64>,
pub error_reason: Option<String>,
pub model_metrics: HashMap<String, ShutdownModelMetric>,
pub session_start_time: f64,
pub shutdown_type: ShutdownType,
pub system_tokens: Option<f64>,
pub token_details: HashMap<String, ShutdownTokenDetail>,
pub tool_definitions_tokens: Option<f64>,
pub total_api_duration_ms: f64,
pub total_nano_aiu: Option<f64>,
pub total_premium_requests: f64,
}Expand description
Session termination metrics including usage statistics, code changes, and shutdown reason
Fields§
§code_changes: ShutdownCodeChangesAggregate code change metrics for the session
conversation_tokens: Option<f64>Non-system message token count at shutdown
current_model: Option<String>Model that was selected at the time of shutdown
current_tokens: Option<f64>Total tokens in context window at shutdown
error_reason: Option<String>Error description when shutdownType is “error”
model_metrics: HashMap<String, ShutdownModelMetric>Per-model usage breakdown, keyed by model identifier
session_start_time: f64Unix timestamp (milliseconds) when the session started
shutdown_type: ShutdownTypeWhether the session ended normally (“routine”) or due to a crash/fatal error (“error”)
system_tokens: Option<f64>System message token count at shutdown
token_details: HashMap<String, ShutdownTokenDetail>Session-wide per-token-type accumulated token counts
tool_definitions_tokens: Option<f64>Tool definitions token count at shutdown
total_api_duration_ms: f64Cumulative time spent in API calls during the session, in milliseconds
total_nano_aiu: Option<f64>Session-wide accumulated nano-AI units cost
Total number of premium API requests used during the session
Trait Implementations§
Source§impl Clone for SessionShutdownData
impl Clone for SessionShutdownData
Source§fn clone(&self) -> SessionShutdownData
fn clone(&self) -> SessionShutdownData
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more