pub struct Memories<'a> { /* private fields */ }Available on crate feature
managed-agents-preview only.Expand description
Namespace handle for memory operations on a single store.
Implementations§
Source§impl Memories<'_>
impl Memories<'_>
Sourcepub async fn create(&self, request: CreateMemoryRequest) -> Result<Memory>
pub async fn create(&self, request: CreateMemoryRequest) -> Result<Memory>
POST /v1/memory_stores/{store_id}/memories.
Sourcepub async fn retrieve(&self, memory_id: &str) -> Result<Memory>
pub async fn retrieve(&self, memory_id: &str) -> Result<Memory>
GET /v1/memory_stores/{store_id}/memories/{memory_id}.
Sourcepub async fn update(
&self,
memory_id: &str,
request: UpdateMemoryRequest,
) -> Result<Memory>
pub async fn update( &self, memory_id: &str, request: UpdateMemoryRequest, ) -> Result<Memory>
POST /v1/memory_stores/{store_id}/memories/{memory_id} (update).
Pass an UpdateMemoryRequest::precondition for safe concurrent
edits.
Auto Trait Implementations§
impl<'a> Freeze for Memories<'a>
impl<'a> !RefUnwindSafe for Memories<'a>
impl<'a> Send for Memories<'a>
impl<'a> Sync for Memories<'a>
impl<'a> Unpin for Memories<'a>
impl<'a> UnsafeUnpin for Memories<'a>
impl<'a> !UnwindSafe for Memories<'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.