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 text(text: impl Into<String>) -> MemoryBankQuery
pub fn text(text: impl Into<String>) -> MemoryBankQuery
Create a query from free text.
Sourcepub fn with_limit(self, limit: usize) -> MemoryBankQuery
pub fn with_limit(self, limit: usize) -> MemoryBankQuery
Set result limit.
Sourcepub fn with_scope(self, scope: MemoryScope) -> MemoryBankQuery
pub fn with_scope(self, scope: MemoryScope) -> MemoryBankQuery
Restrict to a specific memory scope.
Sourcepub fn with_memory_type(self, memory_type: MemoryType) -> MemoryBankQuery
pub fn with_memory_type(self, memory_type: MemoryType) -> MemoryBankQuery
Restrict to a specific memory type.
Sourcepub fn with_session(self, session_id: impl Into<String>) -> MemoryBankQuery
pub fn with_session(self, session_id: impl Into<String>) -> MemoryBankQuery
Restrict to a specific session.
Sourcepub fn with_task(self, task_id: impl Into<String>) -> MemoryBankQuery
pub fn with_task(self, task_id: impl Into<String>) -> MemoryBankQuery
Restrict to a specific task.
Sourcepub fn with_directive(self, directive_id: impl Into<String>) -> MemoryBankQuery
pub fn with_directive(self, directive_id: impl Into<String>) -> MemoryBankQuery
Restrict to a specific directive.
Sourcepub fn with_agent(self, agent_id: impl Into<String>) -> MemoryBankQuery
pub fn with_agent(self, agent_id: impl Into<String>) -> MemoryBankQuery
Restrict to a specific agent.
Sourcepub fn with_category(self, category: impl Into<String>) -> MemoryBankQuery
pub fn with_category(self, category: impl Into<String>) -> MemoryBankQuery
Restrict to a specific category.
Require at least one of the supplied tags.
Sourcepub fn with_min_confidence(self, confidence: f32) -> MemoryBankQuery
pub fn with_min_confidence(self, confidence: f32) -> MemoryBankQuery
Require a minimum confidence value.
Sourcepub fn include_archived(self) -> MemoryBankQuery
pub fn include_archived(self) -> MemoryBankQuery
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 moreSource§impl Debug for MemoryBankQuery
impl Debug for MemoryBankQuery
Source§impl Default for MemoryBankQuery
impl Default for MemoryBankQuery
Source§fn default() -> MemoryBankQuery
fn default() -> MemoryBankQuery
Auto Trait Implementations§
impl Freeze for MemoryBankQuery
impl RefUnwindSafe for MemoryBankQuery
impl Send for MemoryBankQuery
impl Sync for MemoryBankQuery
impl Unpin for MemoryBankQuery
impl UnwindSafe for MemoryBankQuery
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.§impl<T> DowncastSync for T
impl<T> DowncastSync for T
§impl<S> FromSample<S> for S
impl<S> FromSample<S> for S
fn from_sample_(s: S) -> S
§impl<T> FutureExt for T
impl<T> FutureExt for T
§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request§impl<L> LayerExt<L> for L
impl<L> LayerExt<L> for L
§fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
Layered].§impl<T> NoneValue for Twhere
T: Default,
impl<T> NoneValue for Twhere
T: Default,
type NoneType = T
§fn null_value() -> T
fn null_value() -> T
§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<R, P> ReadPrimitive<R> for P
impl<R, P> ReadPrimitive<R> for P
Source§fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
ReadEndian::read_from_little_endian().