pub struct MemoryVersions<'a> { /* private fields */ }Available on crate feature
managed-agents-preview only.Expand description
Namespace handle for memory-version (history) operations on a store.
Implementations§
Source§impl MemoryVersions<'_>
impl MemoryVersions<'_>
Sourcepub async fn list(
&self,
params: ListMemoryVersionsParams,
) -> Result<Paginated<MemoryVersion>>
pub async fn list( &self, params: ListMemoryVersionsParams, ) -> Result<Paginated<MemoryVersion>>
GET /v1/memory_stores/{store_id}/memory_versions.
Sourcepub async fn retrieve(&self, version_id: &str) -> Result<MemoryVersion>
pub async fn retrieve(&self, version_id: &str) -> Result<MemoryVersion>
GET /v1/memory_stores/{store_id}/memory_versions/{version_id}.
Sourcepub async fn redact(&self, version_id: &str) -> Result<MemoryVersion>
pub async fn redact(&self, version_id: &str) -> Result<MemoryVersion>
POST /v1/memory_stores/{store_id}/memory_versions/{version_id}/redact.
Scrubs content while preserving the audit trail. Cannot redact
the head version of a live memory; write a new version or
delete the memory first.
Auto Trait Implementations§
impl<'a> Freeze for MemoryVersions<'a>
impl<'a> !RefUnwindSafe for MemoryVersions<'a>
impl<'a> Send for MemoryVersions<'a>
impl<'a> Sync for MemoryVersions<'a>
impl<'a> Unpin for MemoryVersions<'a>
impl<'a> UnsafeUnpin for MemoryVersions<'a>
impl<'a> !UnwindSafe for MemoryVersions<'a>
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
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>
Converts
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>
Converts
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 moreCreates a shared type from an unshared type.