pub struct MemoryEvent {Show 15 fields
pub id: String,
pub kind: Option<String>,
pub role: Option<String>,
pub intent: Option<String>,
pub tool: Option<String>,
pub inputs: Option<String>,
pub outputs: Option<String>,
pub content: Option<String>,
pub sent_at: Option<String>,
pub demo_label: Option<String>,
pub conversation_id: Option<String>,
pub conversation_title: Option<String>,
pub evidence: Vec<String>,
pub access_count: u64,
pub write_count: u64,
}Expand description
One recorded turn / step / tool invocation.
All fields are optional so the same record shape covers user/assistant messages, internal reasoning steps, and tool invocations without branching the schema.
Fields§
§id: String§kind: Option<String>§role: Option<String>§intent: Option<String>§tool: Option<String>§inputs: Option<String>§outputs: Option<String>§content: Option<String>§sent_at: Option<String>§demo_label: Option<String>§conversation_id: Option<String>§conversation_title: Option<String>§evidence: Vec<String>§access_count: u64How many times this event has been read back (recalled) so far.
Issue #494 asks that usage be counted on access, not inferred from
citations: recall paths call MemoryStore::record_access, and the
dreaming planner adds this count to the citation count so
frequently-read data is not evicted as “unused”.
write_count: u64How many durable writes have created or changed this event.
The first persistence is write one. Explicit substitutions and repeated stable-id assertions increment the count, allowing the dreaming retention policy to protect frequently changed knowledge as well as frequently read knowledge (issue #686).
Implementations§
Trait Implementations§
Source§impl Clone for MemoryEvent
impl Clone for MemoryEvent
Source§fn clone(&self) -> MemoryEvent
fn clone(&self) -> MemoryEvent
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for MemoryEvent
impl Debug for MemoryEvent
Source§impl Default for MemoryEvent
impl Default for MemoryEvent
Source§fn default() -> MemoryEvent
fn default() -> MemoryEvent
impl Eq for MemoryEvent
Source§impl PartialEq for MemoryEvent
impl PartialEq for MemoryEvent
impl StructuralPartialEq for MemoryEvent
Auto Trait Implementations§
impl Freeze for MemoryEvent
impl RefUnwindSafe for MemoryEvent
impl Send for MemoryEvent
impl Sync for MemoryEvent
impl Unpin for MemoryEvent
impl UnsafeUnpin for MemoryEvent
impl UnwindSafe for MemoryEvent
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.