pub struct CognitiveStateUpdate {Show 16 fields
pub input: Option<String>,
pub stream_outputs: Option<HashMap<String, LobeOutput>>,
pub synthesis_result: Option<Option<String>>,
pub budget_tokens: Option<Option<u32>>,
pub loaded_memories: Option<Vec<String>>,
pub working_notes: Option<Vec<WorkingNote>>,
pub current_plan: Option<Option<String>>,
pub confidence: Option<f64>,
pub quality_trend: Option<Vec<f64>>,
pub error_history: Option<Vec<String>>,
pub signals: Option<Vec<CognitiveSignal>>,
pub negative_knowledge: Option<Vec<NegativeKnowledge>>,
pub failure_records: Option<Vec<FailureRecord>>,
pub replace_working_notes: Option<Vec<WorkingNote>>,
pub replace_failure_records: Option<Vec<FailureRecord>>,
pub replace_negative_knowledge: Option<Vec<NegativeKnowledge>>,
}Expand description
Partial update for CognitiveState.
Each field is Option<T> — None means “no change”, Some(v) means “apply v”.
input,synthesis_result,budget_tokens: last-value-wins (replace).stream_outputs: merge — new entries overwrite existing keys, old keys preserved.loaded_memories: append — new memories are added to the existing list.
Fields§
§input: Option<String>Replace the input prompt.
stream_outputs: Option<HashMap<String, LobeOutput>>Merge lobe outputs — new keys overwrite, existing keys preserved.
synthesis_result: Option<Option<String>>Replace the synthesis result.
budget_tokens: Option<Option<u32>>Replace the token budget.
loaded_memories: Option<Vec<String>>Append to loaded memories.
working_notes: Option<Vec<WorkingNote>>Append working notes.
current_plan: Option<Option<String>>Replace current plan.
confidence: Option<f64>Replace confidence.
quality_trend: Option<Vec<f64>>Append quality scores.
error_history: Option<Vec<String>>Append error history entries.
signals: Option<Vec<CognitiveSignal>>Append cognitive signals.
negative_knowledge: Option<Vec<NegativeKnowledge>>Append negative knowledge entries.
failure_records: Option<Vec<FailureRecord>>Append failure records.
replace_working_notes: Option<Vec<WorkingNote>>Replace working notes entirely (used by meditate/consolidation).
When Some, the entire working_notes vector is replaced (not appended).
Takes precedence over working_notes if both are set.
replace_failure_records: Option<Vec<FailureRecord>>Replace failure records entirely (used by meditate/consolidation).
When Some, the entire failure_records vector is replaced.
Takes precedence over failure_records if both are set.
replace_negative_knowledge: Option<Vec<NegativeKnowledge>>Replace negative knowledge entirely (used by meditate/consolidation).
When Some, the entire negative_knowledge vector is replaced.
Takes precedence over negative_knowledge if both are set.
Trait Implementations§
Source§impl Clone for CognitiveStateUpdate
impl Clone for CognitiveStateUpdate
Source§fn clone(&self) -> CognitiveStateUpdate
fn clone(&self) -> CognitiveStateUpdate
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more