pub struct MemoryRef {
pub id: i64,
pub kind: String,
pub summary: String,
pub content: Value,
pub created_at: Option<String>,
}Expand description
Reference to a memory record selected for this view.
Hydrated by the memory-aware selector (PR3). PR1a builders leave this list empty.
Fields§
§id: i64Stable id of the selected memory record.
kind: StringMemory kind: “outcome”, “prior”, “failure”, “preference”.
summary: StringOne-line summary suitable for embedding in a prompt.
content: ValueRaw content payload (free text or structured JSON).
created_at: Option<String>When the memory was created (ISO-8601 string).
Trait Implementations§
Source§impl<'de> Deserialize<'de> for MemoryRef
impl<'de> Deserialize<'de> for MemoryRef
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 MemoryRef
impl RefUnwindSafe for MemoryRef
impl Send for MemoryRef
impl Sync for MemoryRef
impl Unpin for MemoryRef
impl UnsafeUnpin for MemoryRef
impl UnwindSafe for MemoryRef
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