pub struct MemoryEvent {
pub event_type: String,
pub agent_id: String,
pub timestamp: u64,
pub memory_id: Option<String>,
pub content: Option<String>,
pub importance: Option<f32>,
pub tags: Option<Vec<String>>,
pub session_id: Option<String>,
}Expand description
A memory lifecycle event received from the GET /v1/events/stream SSE endpoint (DASH-B).
The event_type field identifies the operation:
connected— emitted immediately on subscription;agent_idwill be an empty stringstored— a memory was stored (content, importance, tags present)recalled— a memory was recalledforgotten— a memory was deletedconsolidated— memories were mergedimportance_updated— importance score changedsession_started/session_ended— agent session lifecyclestream_lagged— consumer fell behind; some events were dropped
Use [DakeraClient::stream_memory_events] to subscribe.
Fields§
§event_type: StringEvent type. The connected handshake event uses the JSON "type" key
rather than "event_type" — the SDK normalises this automatically.
agent_id: StringAgent that owns the memory. Empty string for connected handshake events.
timestamp: u64Unix milliseconds.
memory_id: Option<String>§content: Option<String>§importance: Option<f32>§session_id: Option<String>Trait Implementations§
Source§impl Clone for MemoryEvent
impl Clone for MemoryEvent
Source§fn clone(&self) -> MemoryEvent
fn clone(&self) -> MemoryEvent
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for MemoryEvent
impl Debug for MemoryEvent
Source§impl<'de> Deserialize<'de> for MemoryEvent
impl<'de> Deserialize<'de> for MemoryEvent
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 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
Mutably borrows from an owned value. Read more