pub enum LogEventKind {
Show 15 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>,
},
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>,
},
}Variants§
SessionStarted
UserMessage
AssistantMessage
Reasoning
ToolCall
ToolResult
Fields
Permission
ProviderStatus
Stderr
ParseWarning
SessionCleared
SessionEnded
Heartbeat
Usage
Fields
UserEvent
Trait Implementations§
Source§impl Clone for LogEventKind
impl Clone for LogEventKind
Source§fn clone(&self) -> LogEventKind
fn clone(&self) -> LogEventKind
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for LogEventKind
impl Debug for LogEventKind
Source§impl<'de> Deserialize<'de> for LogEventKind
impl<'de> Deserialize<'de> for LogEventKind
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for LogEventKind
impl RefUnwindSafe for LogEventKind
impl Send for LogEventKind
impl Sync for LogEventKind
impl Unpin for LogEventKind
impl UnsafeUnpin for LogEventKind
impl UnwindSafe for LogEventKind
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