pub struct MemoryIndexRequest { /* private fields */ }Expand description
One scoped semantic-memory indexing request.
The request carries the typed [MemoryIndexableContent] decision rather
than a flattened String, so the store — not the producer — owns the
include/exclude policy. An Excluded(_) request reaches the store with its
typed exclusion reason intact; the store decides what (if anything) to
index. This removes the empty-string “not indexable” convention from the
producer/store seam.
Implementations§
Source§impl MemoryIndexRequest
impl MemoryIndexRequest
pub fn new( scope: MemoryIndexScope, content: MemoryIndexableContent, metadata: MemoryMetadata, ) -> Result<Self, MemoryStoreError>
pub fn scope(&self) -> &MemoryIndexScope
Sourcepub fn content(&self) -> &MemoryIndexableContent
pub fn content(&self) -> &MemoryIndexableContent
The typed indexability decision the store owns.
Sourcepub fn indexable_text(&self) -> Option<&str>
pub fn indexable_text(&self) -> Option<&str>
Borrow the indexable text, or None when the message is excluded.
pub fn metadata(&self) -> &MemoryMetadata
pub fn into_parts( self, ) -> (MemoryIndexScope, MemoryIndexableContent, MemoryMetadata)
Trait Implementations§
Source§impl Clone for MemoryIndexRequest
impl Clone for MemoryIndexRequest
Source§fn clone(&self) -> MemoryIndexRequest
fn clone(&self) -> MemoryIndexRequest
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 moreAuto Trait Implementations§
impl Freeze for MemoryIndexRequest
impl RefUnwindSafe for MemoryIndexRequest
impl Send for MemoryIndexRequest
impl Sync for MemoryIndexRequest
impl Unpin for MemoryIndexRequest
impl UnsafeUnpin for MemoryIndexRequest
impl UnwindSafe for MemoryIndexRequest
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