pub enum EntryKind {
Message {
message: AgentMessage,
},
ThinkingLevelChange {
thinking_level: String,
},
ModelChange {
provider: String,
model_id: String,
},
Usage {
kind: String,
provider: String,
model: String,
usage: Usage,
note: Option<String>,
},
Compaction(CompactionEntry),
ContextEdit {
target_id: EntryId,
replacement: Option<ContextReplacement>,
},
BranchSummary(BranchSummaryEntry),
Custom {
custom_type: String,
data: Option<JsonValue>,
},
CustomMessage {
custom_type: String,
content: UserContentField,
display: bool,
details: Option<JsonValue>,
},
Label {
target_id: EntryId,
label: Option<String>,
},
SessionInfo {
name: Option<String>,
},
}Expand description
Entry payloads ("type" discriminant, snake case).
Variants§
Message
Conversation message.
Fields
§
message: AgentMessageThe message.
ThinkingLevelChange
Thinking level change (free string; parse with ThinkingLevel::from_str).
ModelChange
Model change.
Usage
Usage outside assistant messages (e.g. cache_warm).
Fields
Compaction(CompactionEntry)
Compaction.
ContextEdit
Append-only context edit of an earlier entry.
Fields
§
replacement: Option<ContextReplacement>Replacement content, null (always serialised) to omit the target.
BranchSummary(BranchSummaryEntry)
Branch summary.
Custom
Extension state (never in context).
CustomMessage
Extension message that participates in context.
Fields
§
content: UserContentFieldString or blocks.
Label
Label set/cleared on an entry.
SessionInfo
Session metadata (display name).
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for EntryKind
impl<'de> Deserialize<'de> for EntryKind
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 StructuralPartialEq for EntryKind
Auto Trait Implementations§
impl Freeze for EntryKind
impl RefUnwindSafe for EntryKind
impl Send for EntryKind
impl Sync for EntryKind
impl Unpin for EntryKind
impl UnsafeUnpin for EntryKind
impl UnwindSafe for EntryKind
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