pub enum EntryKind {
Message {
message: AgentMessage,
},
Compaction {
summary: String,
first_kept_entry_id: String,
tokens_before: u32,
details: Option<Value>,
},
BranchSummary {
summary: String,
details: Option<Value>,
},
ModelChange {
provider: String,
model_id: String,
},
ThinkingLevelChange(ThinkingLevel),
Custom {
custom_type: String,
data: Option<Value>,
},
}Expand description
The kind of a session entry.
Variants§
Message
Fields
§
message: AgentMessageCompaction
BranchSummary
ModelChange
ThinkingLevelChange(ThinkingLevel)
Custom
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 Forget for EntryKind
impl Freeze for EntryKindwhere
*const u8 is !null: Freeze,
PhantomData<Content>: Freeze,
PhantomData<u8>: Freeze,
PhantomData<Value>: Freeze,
*const LeafNode<String, Value> is !null: Freeze,
PhantomData<(Owned, LeafOrInternal)>: Freeze,
PhantomData<Box<(String, Value)>>: Freeze,
impl Move for EntryKind
impl RefUnwindSafe for EntryKind
impl Send for EntryKind
impl Sync for EntryKind
impl Unpin for EntryKind
impl UnsafeUnpin for EntryKindwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<Content>: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<Value>: UnsafeUnpin,
*const LeafNode<String, Value> is !null: UnsafeUnpin,
PhantomData<(Owned, LeafOrInternal)>: UnsafeUnpin,
PhantomData<Box<(String, Value)>>: UnsafeUnpin,
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