pub struct Memory {Show 17 fields
pub id: String,
pub scope: String,
pub kind: String,
pub content: String,
pub metadata: HashMap<String, Value>,
pub source_session_id: Option<String>,
pub created_at: String,
pub updated_at: String,
pub expires_at: Option<String>,
pub source_content: Option<String>,
pub document_date: Option<String>,
pub event_dates: Vec<String>,
pub importance: f64,
pub access_count: i64,
pub last_accessed_at: Option<String>,
pub superseded_at: Option<String>,
pub superseded_by_id: Option<String>,
}Expand description
One durable, account-scoped memory (POST/GET /v1/memory).
Fields§
§id: String§scope: String§kind: String§content: String§metadata: HashMap<String, Value>§source_session_id: Option<String>§created_at: String§updated_at: String§expires_at: Option<String>§source_content: Option<String>§document_date: Option<String>§event_dates: Vec<String>§importance: f64§access_count: i64§last_accessed_at: Option<String>§superseded_at: Option<String>§superseded_by_id: Option<String>Trait Implementations§
Source§impl<'de> Deserialize<'de> for Memory
impl<'de> Deserialize<'de> for Memory
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 Memory
impl RefUnwindSafe for Memory
impl Send for Memory
impl Sync for Memory
impl Unpin for Memory
impl UnsafeUnpin for Memory
impl UnwindSafe for Memory
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