pub struct HomeostaticState {
pub agent_id: String,
pub operational: OperationalState,
pub cognitive: CognitiveState,
pub economic: EconomicState,
pub strategy: StrategyState,
pub eval: EvalState,
pub belief: BeliefState,
pub last_event_seq: u64,
pub last_event_ms: u64,
}Expand description
The homeostatic state for an agent session.
This is the projection state: accumulated from the event stream and used as input to the rule engine.
Fields§
§agent_id: StringAgent/session identifier.
operational: OperationalStateOperational health.
cognitive: CognitiveStateCognitive health.
economic: EconomicStateEconomic health.
strategy: StrategyStateStrategy event tracking.
eval: EvalStateEvaluation quality tracking.
belief: BeliefStateAnima belief tracking.
last_event_seq: u64Sequence number of the last event processed.
last_event_ms: u64Timestamp of the last event processed (ms since epoch).
Implementations§
Trait Implementations§
Source§impl Clone for HomeostaticState
impl Clone for HomeostaticState
Source§fn clone(&self) -> HomeostaticState
fn clone(&self) -> HomeostaticState
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 HomeostaticState
impl Debug for HomeostaticState
Source§impl Default for HomeostaticState
impl Default for HomeostaticState
Source§fn default() -> HomeostaticState
fn default() -> HomeostaticState
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for HomeostaticState
impl<'de> Deserialize<'de> for HomeostaticState
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 HomeostaticState
impl RefUnwindSafe for HomeostaticState
impl Send for HomeostaticState
impl Sync for HomeostaticState
impl Unpin for HomeostaticState
impl UnsafeUnpin for HomeostaticState
impl UnwindSafe for HomeostaticState
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