pub enum LogEventKind {
Show 19 variants
SessionStarted {
command: String,
model: Option<String>,
cwd: Option<String>,
resumed: bool,
backfilled: bool,
},
UserMessage {
role: String,
content: String,
message_id: Option<String>,
},
AssistantMessage {
content: String,
message_id: Option<String>,
},
Reasoning {
content: String,
message_id: Option<String>,
},
ToolCall {
tool_name: String,
tool_kind: Option<ToolKind>,
tool_id: Option<String>,
input: Option<Value>,
},
ToolResult {
tool_name: Option<String>,
tool_kind: Option<ToolKind>,
tool_id: Option<String>,
success: Option<bool>,
output: Option<String>,
error: Option<String>,
data: Option<Value>,
},
Permission {
tool_name: String,
description: String,
granted: bool,
},
ProviderStatus {
message: String,
data: Option<Value>,
},
Stderr {
message: String,
},
ParseWarning {
message: String,
raw: Option<String>,
},
SessionCleared {
old_session_id: Option<String>,
new_session_id: Option<String>,
},
SessionEnded {
success: bool,
error: Option<String>,
},
SessionResult {
result: String,
},
Heartbeat {
interval_secs: Option<u64>,
},
Usage {
input_tokens: u64,
output_tokens: u64,
cache_read_tokens: Option<u64>,
cache_creation_tokens: Option<u64>,
total_cost_usd: Option<f64>,
},
UserEvent {
level: String,
message: String,
data: Option<Value>,
},
UsageLimitHit {
provider: String,
scope: String,
reset_at: Option<String>,
scheduled_resume_at: Option<String>,
fallback_used: bool,
incident_id: String,
raw: Option<String>,
},
UsageLimitResumed {
incident_id: String,
resume_message: String,
attempt: u32,
},
UsageLimitResumeFailed {
incident_id: String,
error: String,
attempt: u32,
},
}Variants§
SessionStarted
UserMessage
AssistantMessage
Reasoning
ToolCall
ToolResult
Fields
Permission
ProviderStatus
Stderr
ParseWarning
SessionCleared
SessionEnded
SessionResult
Final result of the session, captured via zag ps kill <id> <result>
(or --file <path>) after a session was launched with --exit.
Heartbeat
Usage
Fields
UserEvent
UsageLimitHit
Upstream usage / rate limit detected in the live event stream.
Emitted by each provider’s usage_limits detector. When emitted by the
active relay, a wake-up timer is armed for scheduled_resume_at and a
matching UsageLimitResumed (or UsageLimitResumeFailed) event will
follow when the timer fires. Detection inside historical adapters
(backfill, zag events) emits the hit but does not arm a timer.
Fields
reset_at: Option<String>RFC3339 UTC when usage resets, if the provider gave us a parseable
value. None means a fallback duration was used.
UsageLimitResumed
Auto-resume successfully delivered to the session after a usage limit.
Fields
UsageLimitResumeFailed
Auto-resume could not be delivered (FIFO closed, spawn failed, etc.).
Trait Implementations§
Source§impl Clone for LogEventKind
impl Clone for LogEventKind
Source§fn clone(&self) -> LogEventKind
fn clone(&self) -> LogEventKind
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more