pub struct BatchStoreMemoryRequest {
pub agent_id: String,
pub memories: Vec<BatchStoreMemoryItem>,
}Expand description
Request for POST /v1/memories/store/batch
Accepts up to 1000 memories per call. All memories are embedded in a single ONNX inference call and upserted in one storage write, with HNSW invalidation happening exactly once at the end — yielding ≥5× throughput vs. N sequential single-store calls.
Fields§
§agent_id: String§memories: Vec<BatchStoreMemoryItem>Trait Implementations§
Source§impl Debug for BatchStoreMemoryRequest
impl Debug for BatchStoreMemoryRequest
Source§impl<'de> Deserialize<'de> for BatchStoreMemoryRequest
impl<'de> Deserialize<'de> for BatchStoreMemoryRequest
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for BatchStoreMemoryRequest
impl RefUnwindSafe for BatchStoreMemoryRequest
impl Send for BatchStoreMemoryRequest
impl Sync for BatchStoreMemoryRequest
impl Unpin for BatchStoreMemoryRequest
impl UnsafeUnpin for BatchStoreMemoryRequest
impl UnwindSafe for BatchStoreMemoryRequest
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