pub struct InjectionQuery<'a> {
pub embedding: &'a [f32],
pub query_text: Option<&'a str>,
pub session_id: Option<&'a str>,
pub exclude_ids: &'a [MemoryId],
pub max_items: usize,
pub max_episodic: usize,
pub agent_id: Option<AgentId>,
}Expand description
A request for injection-ready context.
Fields§
§embedding: &'a [f32]Embedding of the prompt (plus any conversational blend).
query_text: Option<&'a str>Raw query text for the lexical half of hybrid recall.
session_id: Option<&'a str>The session issuing the query. Memories tagged session:<id> with
this ID are excluded: they are already in that session’s context.
exclude_ids: &'a [MemoryId]Memory IDs already delivered within the current context lifetime.
max_items: usizeMaximum items returned beyond pinned memories.
max_episodic: usizeMaximum verbatim episodic items within max_items.
agent_id: Option<AgentId>Restrict recall to this agent’s memories plus shared (nil owned) knowledge. None recalls globally.
Auto Trait Implementations§
impl<'a> Freeze for InjectionQuery<'a>
impl<'a> RefUnwindSafe for InjectionQuery<'a>
impl<'a> Send for InjectionQuery<'a>
impl<'a> Sync for InjectionQuery<'a>
impl<'a> Unpin for InjectionQuery<'a>
impl<'a> UnsafeUnpin for InjectionQuery<'a>
impl<'a> UnwindSafe for InjectionQuery<'a>
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