pub struct MemoryReflex {Show 22 fields
pub schema_version: String,
pub stimulus_id: String,
pub stimulus_text: String,
pub role: Option<String>,
pub scope: MemoryScope,
pub kind: MemoryReflexKind,
pub action: MemoryAction,
pub topic: String,
pub salience: f32,
pub salience_label: String,
pub salience_confidence: f32,
pub confidence: f32,
pub propositions: MemoryPropositions,
pub gate: ReflexGate,
pub companions: Vec<MemoryAction>,
pub recall: Option<MemoryRecallRequest>,
pub find: Option<MemoryFindRequest>,
pub aggregate: Option<MemoryAggregateRequest>,
pub persist: Option<MemoryPersistHint>,
pub decider_id: String,
pub checkpoint: Option<String>,
pub metadata: Map<String, Value>,
}Expand description
Bus envelope for one stimulus.
Runnable payloads are present only when kind is MemoryReflexKind::Dispatch.
companions names extra operations whose propositions also cleared the floor,
so one message can say “recall, and also persist” without a second publish.
Fields§
§schema_version: String§stimulus_id: String§stimulus_text: String§role: Option<String>§scope: MemoryScope§kind: MemoryReflexKind§action: MemoryAction§topic: String§salience: f32§salience_label: String§salience_confidence: f32§confidence: f32§propositions: MemoryPropositions§gate: ReflexGate§companions: Vec<MemoryAction>§recall: Option<MemoryRecallRequest>§find: Option<MemoryFindRequest>§aggregate: Option<MemoryAggregateRequest>§persist: Option<MemoryPersistHint>§decider_id: String§checkpoint: Option<String>§metadata: Map<String, Value>Trait Implementations§
Source§impl Clone for MemoryReflex
impl Clone for MemoryReflex
Source§fn clone(&self) -> MemoryReflex
fn clone(&self) -> MemoryReflex
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 MemoryReflex
impl Debug for MemoryReflex
Source§impl From<MemoryReflex> for MemoryReflexResponseDto
impl From<MemoryReflex> for MemoryReflexResponseDto
Source§fn from(value: MemoryReflex) -> Self
fn from(value: MemoryReflex) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for MemoryReflex
impl RefUnwindSafe for MemoryReflex
impl Send for MemoryReflex
impl Sync for MemoryReflex
impl Unpin for MemoryReflex
impl UnsafeUnpin for MemoryReflex
impl UnwindSafe for MemoryReflex
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