pub enum EventKind {
User,
Assistant,
ToolCall,
ToolResult,
System,
Compaction,
SubAgentSpawn,
Attachment,
}Expand description
What one normalized event represents.
Note: some agents (Claude Code) attach tool calls to Assistant events rather
than emitting standalone ToolCall events; the variant exists for agents that
log them separately.
Variants§
User
Assistant
ToolCall
ToolResult
System
Compaction
SubAgentSpawn
Attachment
Non-message context injected into the window: deferred-tool listings,
skill listings, MCP-server instruction blocks, IDE/file context, reminders
(Claude Code attachment lines). Carries no token usage; used by
context-bloat attribution (analysis::context).
Trait Implementations§
impl Copy for EventKind
Source§impl<'de> Deserialize<'de> for EventKind
impl<'de> Deserialize<'de> for EventKind
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
impl Eq for EventKind
impl StructuralPartialEq for EventKind
Auto Trait Implementations§
impl Freeze for EventKind
impl RefUnwindSafe for EventKind
impl Send for EventKind
impl Sync for EventKind
impl Unpin for EventKind
impl UnsafeUnpin for EventKind
impl UnwindSafe for EventKind
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