pub enum ContextSourceKind {
Memory,
ToolResult,
Resource,
File,
Reasoning,
Instruction,
UserInput,
Other(String),
}Expand description
Provider-neutral category for a piece of context that may enter a model window.
The enum names where the item came from without coupling the kernel to a concrete backend such as Memvid, MCP, a vector database, or a provider SDK.
Variants§
Memory
Long-term memory, episodic recall, summaries, or structured memory cards.
ToolResult
Result returned by a tool call.
Resource
Resource lookup such as a graph, baseline, policy, or document store.
File
File or document content selected for the task.
Reasoning
Working notes, plans, hypotheses, or other non-durable reasoning state.
Instruction
System, developer, or application instructions carried into context.
UserInput
Current user input or task text.
Other(String)
Caller-defined source kind.
Trait Implementations§
Source§impl Clone for ContextSourceKind
impl Clone for ContextSourceKind
Source§fn clone(&self) -> ContextSourceKind
fn clone(&self) -> ContextSourceKind
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 ContextSourceKind
impl Debug for ContextSourceKind
Source§impl<'de> Deserialize<'de> for ContextSourceKind
impl<'de> Deserialize<'de> for ContextSourceKind
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 ContextSourceKind
impl Hash for ContextSourceKind
Source§impl PartialEq for ContextSourceKind
impl PartialEq for ContextSourceKind
Source§fn eq(&self, other: &ContextSourceKind) -> bool
fn eq(&self, other: &ContextSourceKind) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ContextSourceKind
impl Serialize for ContextSourceKind
impl Eq for ContextSourceKind
impl StructuralPartialEq for ContextSourceKind
Auto Trait Implementations§
impl Freeze for ContextSourceKind
impl RefUnwindSafe for ContextSourceKind
impl Send for ContextSourceKind
impl Sync for ContextSourceKind
impl Unpin for ContextSourceKind
impl UnsafeUnpin for ContextSourceKind
impl UnwindSafe for ContextSourceKind
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