pub enum ContextSegment {
System,
Instructions,
Evidence,
Memory,
ToolResults,
History,
}Expand description
Context segment types for budget tracking.
Variants§
System
System prompt
Instructions
pack instructions/persona
Evidence
Evidence/provenance data
Memory
User memory injection
ToolResults
Tool/LLM result history
History
Conversation history
Trait Implementations§
Source§impl Clone for ContextSegment
impl Clone for ContextSegment
Source§fn clone(&self) -> ContextSegment
fn clone(&self) -> ContextSegment
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 ComposeSchema for ContextSegment
impl ComposeSchema for ContextSegment
Source§impl Debug for ContextSegment
impl Debug for ContextSegment
Source§impl<'de> Deserialize<'de> for ContextSegment
impl<'de> Deserialize<'de> for ContextSegment
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 Display for ContextSegment
impl Display for ContextSegment
Source§impl Hash for ContextSegment
impl Hash for ContextSegment
Source§impl PartialEq for ContextSegment
impl PartialEq for ContextSegment
Source§impl Serialize for ContextSegment
impl Serialize for ContextSegment
Source§impl ToSchema for ContextSegment
impl ToSchema for ContextSegment
impl Copy for ContextSegment
impl Eq for ContextSegment
impl StructuralPartialEq for ContextSegment
Auto Trait Implementations§
impl Freeze for ContextSegment
impl RefUnwindSafe for ContextSegment
impl Send for ContextSegment
impl Sync for ContextSegment
impl Unpin for ContextSegment
impl UnwindSafe for ContextSegment
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.