pub enum FragmentKind {
Message,
ToolResult,
LongTerm,
Note,
}Expand description
Kinds of context fragments a store can hold.
Variants§
Message
A turn of the conversation (user message or assistant reply).
ToolResult
A tool call result that should be remembered across turns.
LongTerm
An explicitly externalized long-term memory written via memorize.
Note
A system / scratch note.
Implementations§
Trait Implementations§
Source§impl Clone for FragmentKind
impl Clone for FragmentKind
Source§fn clone(&self) -> FragmentKind
fn clone(&self) -> FragmentKind
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 moreimpl Copy for FragmentKind
Source§impl Debug for FragmentKind
impl Debug for FragmentKind
Source§impl<'de> Deserialize<'de> for FragmentKind
impl<'de> Deserialize<'de> for FragmentKind
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 Eq for FragmentKind
Source§impl FromStr for FragmentKind
impl FromStr for FragmentKind
Source§impl PartialEq for FragmentKind
impl PartialEq for FragmentKind
Source§impl Serialize for FragmentKind
impl Serialize for FragmentKind
impl StructuralPartialEq for FragmentKind
Auto Trait Implementations§
impl Freeze for FragmentKind
impl RefUnwindSafe for FragmentKind
impl Send for FragmentKind
impl Sync for FragmentKind
impl Unpin for FragmentKind
impl UnsafeUnpin for FragmentKind
impl UnwindSafe for FragmentKind
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