pub struct MemoryBankQuery {Show 13 fields
pub text: Option<String>,
pub limit: usize,
pub kinds: Vec<MemoryKind>,
pub memory_types: Vec<MemoryType>,
pub scopes: Vec<MemoryScope>,
pub session_id: Option<String>,
pub task_id: Option<String>,
pub directive_id: Option<String>,
pub agent_id: Option<String>,
pub category: Option<String>,
pub tags: Vec<String>,
pub min_confidence: Option<f32>,
pub include_archived: bool,
}Expand description
Filter options for targeted memory-bank retrieval.
Fields§
§text: Option<String>Free-text query used for summary/content/tag matching.
limit: usizeMaximum number of results to return.
kinds: Vec<MemoryKind>Optional memory-kind restrictions.
memory_types: Vec<MemoryType>Optional memory-type restrictions.
scopes: Vec<MemoryScope>Optional scope restrictions.
session_id: Option<String>Optional session filter.
task_id: Option<String>Optional task filter.
directive_id: Option<String>Optional directive filter.
agent_id: Option<String>Optional agent filter.
category: Option<String>Optional category filter.
Optional tag filter (any match).
min_confidence: Option<f32>Optional minimum confidence threshold.
include_archived: boolWhether archived entries should be returned.
Implementations§
Source§impl MemoryBankQuery
impl MemoryBankQuery
Sourcepub fn with_limit(self, limit: usize) -> Self
pub fn with_limit(self, limit: usize) -> Self
Set result limit.
Sourcepub fn with_scope(self, scope: MemoryScope) -> Self
pub fn with_scope(self, scope: MemoryScope) -> Self
Restrict to a specific memory scope.
Sourcepub fn with_memory_type(self, memory_type: MemoryType) -> Self
pub fn with_memory_type(self, memory_type: MemoryType) -> Self
Restrict to a specific memory type.
Sourcepub fn with_session(self, session_id: impl Into<String>) -> Self
pub fn with_session(self, session_id: impl Into<String>) -> Self
Restrict to a specific session.
Sourcepub fn with_directive(self, directive_id: impl Into<String>) -> Self
pub fn with_directive(self, directive_id: impl Into<String>) -> Self
Restrict to a specific directive.
Sourcepub fn with_agent(self, agent_id: impl Into<String>) -> Self
pub fn with_agent(self, agent_id: impl Into<String>) -> Self
Restrict to a specific agent.
Sourcepub fn with_category(self, category: impl Into<String>) -> Self
pub fn with_category(self, category: impl Into<String>) -> Self
Restrict to a specific category.
Require at least one of the supplied tags.
Sourcepub fn with_min_confidence(self, confidence: f32) -> Self
pub fn with_min_confidence(self, confidence: f32) -> Self
Require a minimum confidence value.
Sourcepub fn include_archived(self) -> Self
pub fn include_archived(self) -> Self
Include archived entries in results.
Trait Implementations§
Source§impl Clone for MemoryBankQuery
impl Clone for MemoryBankQuery
Source§fn clone(&self) -> MemoryBankQuery
fn clone(&self) -> MemoryBankQuery
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more