pub struct DurableMemorySession { /* private fields */ }Expand description
Exact repository and namespace supplied by the embedding host.
Implementations§
Source§impl DurableMemorySession
impl DurableMemorySession
Sourcepub async fn preview_recall(
&self,
text: &str,
) -> Result<DurableMemoryRecallPreview, MemoryRepositoryError>
pub async fn preview_recall( &self, text: &str, ) -> Result<DurableMemoryRecallPreview, MemoryRepositoryError>
Run the same pure active-only retrieval used before context assembly. This diagnostic does not record admission or use and does not inject any returned content into a model prompt.
Source§impl DurableMemorySession
impl DurableMemorySession
Sourcepub fn shadow(
repository: Arc<dyn MemoryRepository>,
namespace: MemoryNamespace,
) -> Self
pub fn shadow( repository: Arc<dyn MemoryRepository>, namespace: MemoryNamespace, ) -> Self
Create a candidate-only binding. V2 recall remains disabled.
Sourcepub fn active_recall(
repository: Arc<dyn MemoryRepository>,
namespace: MemoryNamespace,
recall_policy: DurableMemoryRecallPolicy,
) -> Self
pub fn active_recall( repository: Arc<dyn MemoryRepository>, namespace: MemoryNamespace, recall_policy: DurableMemoryRecallPolicy, ) -> Self
Create an opt-in binding that recalls only explicitly activated nodes.
Sourcepub fn with_semantic_recall(
self,
semantic_recall: DurableMemorySemanticRecall,
) -> Result<Self, DurableMemorySemanticError>
pub fn with_semantic_recall( self, semantic_recall: DurableMemorySemanticRecall, ) -> Result<Self, DurableMemorySemanticError>
Add a typed host-owned semantic generation to an Active recall binding.
pub fn repository(&self) -> &Arc<dyn MemoryRepository> ⓘ
pub fn namespace(&self) -> &MemoryNamespace
pub fn mode(&self) -> DurableMemoryMode
pub fn recall_policy(&self) -> Option<DurableMemoryRecallPolicy>
pub fn semantic_recall(&self) -> Option<&DurableMemorySemanticRecall>
Sourcepub async fn refresh_semantic_recall(
&self,
cancellation: CancellationToken,
) -> Result<DurableMemorySemanticRefreshReceipt, DurableMemorySemanticError>
pub async fn refresh_semantic_recall( &self, cancellation: CancellationToken, ) -> Result<DurableMemorySemanticRefreshReceipt, DurableMemorySemanticError>
Rebuild and verify this binding’s semantic partition from one complete current Active repository snapshot.
Sourcepub async fn refresh_semantic_recall_requiring(
&self,
required_consistency: VectorMutationConsistency,
cancellation: CancellationToken,
) -> Result<DurableMemorySemanticRefreshReceipt, DurableMemorySemanticError>
pub async fn refresh_semantic_recall_requiring( &self, required_consistency: VectorMutationConsistency, cancellation: CancellationToken, ) -> Result<DurableMemorySemanticRefreshReceipt, DurableMemorySemanticError>
Rebuild semantic recall while requiring at least the selected vector mutation ordering. An unsupported requirement fails before repository snapshot or embedding work begins.
Sourcepub fn binding(&self) -> DurableMemoryBindingV1
pub fn binding(&self) -> DurableMemoryBindingV1
Return the secret-free identity that must remain exact when a persisted session is resumed.
Sourcepub async fn activate_candidate(
&self,
activation: DurableMemoryActivation,
) -> Result<MemoryNode, MemoryRepositoryError>
pub async fn activate_candidate( &self, activation: DurableMemoryActivation, ) -> Result<MemoryNode, MemoryRepositoryError>
Activate one exact candidate revision with independent decision evidence.
Sourcepub async fn record_use(
&self,
usage: DurableMemoryUse,
) -> Result<(), MemoryRepositoryError>
pub async fn record_use( &self, usage: DurableMemoryUse, ) -> Result<(), MemoryRepositoryError>
Record an explicit use without widening this binding’s namespace.
Trait Implementations§
Source§impl Clone for DurableMemorySession
impl Clone for DurableMemorySession
Source§fn clone(&self) -> DurableMemorySession
fn clone(&self) -> DurableMemorySession
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreAuto Trait Implementations§
impl !RefUnwindSafe for DurableMemorySession
impl !UnwindSafe for DurableMemorySession
impl Freeze for DurableMemorySession
impl Send for DurableMemorySession
impl Sync for DurableMemorySession
impl Unpin for DurableMemorySession
impl UnsafeUnpin for DurableMemorySession
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
Source§fn with_current_context(self) -> WithContext<Self> ⓘ
fn with_current_context(self) -> WithContext<Self> ⓘ
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§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