pub struct MemoryQuery {
pub text: String,
pub kinds: Option<Vec<ChunkKind>>,
pub since: Option<DateTime<Utc>>,
pub until: Option<DateTime<Utc>>,
pub session_id: Option<String>,
pub caller_scope: CallerScope,
pub project_root_prefix: Option<String>,
pub k: usize,
pub include_rollups: bool,
pub min_importance: Option<f32>,
pub profile: RetrievalProfile,
pub caller_id: String,
}Expand description
A retrieval query — the input to crate::MemoryProvider::retrieve.
Fields§
§text: StringFree-text query. Embedded for vector search and tokenized for FTS.
kinds: Option<Vec<ChunkKind>>Optional kind filter. None means all kinds.
since: Option<DateTime<Utc>>Optional lower bound on created_at.
until: Option<DateTime<Utc>>Optional upper bound on created_at.
session_id: Option<String>Restrict to chunks in this session.
caller_scope: CallerScopeMulti-agent visibility scope.
project_root_prefix: Option<String>Restrict to chunks with a project_root prefix matching this string.
k: usizeTop-k results. Default 8.
include_rollups: boolInclude rollup chunks (ChunkKind::Rollup). Default true.
min_importance: Option<f32>Minimum importance to include. None means no floor.
profile: RetrievalProfileRetrieval profile selecting hybrid weights and per-caller defaults.
caller_id: StringIdentifier of the caller performing the retrieval — used to enforce
CallerScope::Own and to log access for relevance feedback.
Trait Implementations§
Source§impl Clone for MemoryQuery
impl Clone for MemoryQuery
Source§fn clone(&self) -> MemoryQuery
fn clone(&self) -> MemoryQuery
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 MemoryQuery
impl Debug for MemoryQuery
Source§impl<'de> Deserialize<'de> for MemoryQuery
impl<'de> Deserialize<'de> for MemoryQuery
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 PartialEq for MemoryQuery
impl PartialEq for MemoryQuery
Source§fn eq(&self, other: &MemoryQuery) -> bool
fn eq(&self, other: &MemoryQuery) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for MemoryQuery
impl Serialize for MemoryQuery
impl StructuralPartialEq for MemoryQuery
Auto Trait Implementations§
impl Freeze for MemoryQuery
impl RefUnwindSafe for MemoryQuery
impl Send for MemoryQuery
impl Sync for MemoryQuery
impl Unpin for MemoryQuery
impl UnsafeUnpin for MemoryQuery
impl UnwindSafe for MemoryQuery
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