pub enum TapeEntryKind {
Message {
role: Role,
content: String,
},
Event {
event: String,
payload: Value,
},
Anchor {
name: String,
state: Value,
},
Handoff {
name: String,
entries_before: u64,
summary: Option<String>,
},
}Expand description
Discriminated union of tape entry types.
Variants§
Message
A conversation message (user, assistant, tool, or system).
Event
A runtime event (tool call, LLM call, etc.).
Anchor
A semantic bookmark marking a milestone or phase boundary.
Handoff
A context-window reset point.
Entries before the most recent handoff are excluded from the LLM context window but remain in the tape for search.
Trait Implementations§
Source§impl Clone for TapeEntryKind
impl Clone for TapeEntryKind
Source§fn clone(&self) -> TapeEntryKind
fn clone(&self) -> TapeEntryKind
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 TapeEntryKind
impl Debug for TapeEntryKind
Source§impl<'de> Deserialize<'de> for TapeEntryKind
impl<'de> Deserialize<'de> for TapeEntryKind
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 TapeEntryKind
impl RefUnwindSafe for TapeEntryKind
impl Send for TapeEntryKind
impl Sync for TapeEntryKind
impl Unpin for TapeEntryKind
impl UnsafeUnpin for TapeEntryKind
impl UnwindSafe for TapeEntryKind
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