pub struct BatchStoreMemoryItem {
pub content: String,
pub memory_type: MemoryType,
pub session_id: Option<String>,
pub importance: f32,
pub tags: Vec<String>,
pub metadata: Option<Value>,
pub ttl_seconds: Option<u64>,
pub expires_at: Option<u64>,
pub id: Option<String>,
}Expand description
A single memory entry within a BatchStoreMemoryRequest.
Mirrors StoreMemoryRequest but omits agent_id (supplied at the batch level).
Fields§
§content: String§memory_type: MemoryType§session_id: Option<String>§importance: f32§metadata: Option<Value>§ttl_seconds: Option<u64>§expires_at: Option<u64>§id: Option<String>Optional custom ID. Auto-generated (unique within the batch) if not provided.
Trait Implementations§
Source§impl Debug for BatchStoreMemoryItem
impl Debug for BatchStoreMemoryItem
Source§impl<'de> Deserialize<'de> for BatchStoreMemoryItem
impl<'de> Deserialize<'de> for BatchStoreMemoryItem
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 BatchStoreMemoryItem
impl RefUnwindSafe for BatchStoreMemoryItem
impl Send for BatchStoreMemoryItem
impl Sync for BatchStoreMemoryItem
impl Unpin for BatchStoreMemoryItem
impl UnsafeUnpin for BatchStoreMemoryItem
impl UnwindSafe for BatchStoreMemoryItem
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