pub enum SegmentKind {
SystemPrompt,
OlderTurn,
RecentTurn,
ToolDefinitions,
ToolResult,
UserPrompt,
AnchoredSummaryRecall,
MemoryBlock,
}Expand description
Coarse classification used for budget allocation, telemetry grouping, and dashboard widgets.
Variants§
SystemPrompt
System prompt (always-keep, never compressed by default).
OlderTurn
A turn old enough to be eligible for summarization / compaction.
RecentTurn
A turn within the verbatim window (kept as-is).
ToolDefinitions
Tool / function definitions appended to the prompt.
ToolResult
Output of a tool / function call.
UserPrompt
The user’s latest message (always-keep, never compressed).
AnchoredSummaryRecall
Recalled AnchoredSummary from a prior turn (Tier ≥ 1).
MemoryBlock
A graph-memory-derived prompt block (e.g. recent_attempts, known_facts).
Implementations§
Source§impl SegmentKind
impl SegmentKind
Trait Implementations§
Source§impl Clone for SegmentKind
impl Clone for SegmentKind
Source§fn clone(&self) -> SegmentKind
fn clone(&self) -> SegmentKind
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 SegmentKind
impl Debug for SegmentKind
Source§impl<'de> Deserialize<'de> for SegmentKind
impl<'de> Deserialize<'de> for SegmentKind
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
Source§impl Hash for SegmentKind
impl Hash for SegmentKind
Source§impl PartialEq for SegmentKind
impl PartialEq for SegmentKind
Source§fn eq(&self, other: &SegmentKind) -> bool
fn eq(&self, other: &SegmentKind) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for SegmentKind
impl Serialize for SegmentKind
impl Copy for SegmentKind
impl Eq for SegmentKind
impl StructuralPartialEq for SegmentKind
Auto Trait Implementations§
impl Freeze for SegmentKind
impl RefUnwindSafe for SegmentKind
impl Send for SegmentKind
impl Sync for SegmentKind
impl Unpin for SegmentKind
impl UnsafeUnpin for SegmentKind
impl UnwindSafe for SegmentKind
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