pub struct KnowledgeContext {
pub notes: Vec<KnowledgeNote>,
pub memories: Vec<MemoryNote>,
pub index_entries_used: usize,
}Expand description
Knowledge context injected into agent prompts.
Fields§
§notes: Vec<KnowledgeNote>Relevant knowledge notes for the query.
memories: Vec<MemoryNote>Memory entries from agent memory.
index_entries_used: usizeNumber of HNSW index entries used.
Trait Implementations§
Source§impl Clone for KnowledgeContext
impl Clone for KnowledgeContext
Source§fn clone(&self) -> KnowledgeContext
fn clone(&self) -> KnowledgeContext
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 KnowledgeContext
impl Debug for KnowledgeContext
Source§impl Default for KnowledgeContext
impl Default for KnowledgeContext
Source§fn default() -> KnowledgeContext
fn default() -> KnowledgeContext
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for KnowledgeContext
impl<'de> Deserialize<'de> for KnowledgeContext
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 KnowledgeContext
impl RefUnwindSafe for KnowledgeContext
impl Send for KnowledgeContext
impl Sync for KnowledgeContext
impl Unpin for KnowledgeContext
impl UnsafeUnpin for KnowledgeContext
impl UnwindSafe for KnowledgeContext
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