pub struct RuntimeStateNode {
pub agent_id: String,
pub turn_count: u64,
pub last_extraction_at_turn: u64,
pub persona_snapshot_json: Option<String>,
pub updated_at: i64,
}Expand description
Persisted runtime state for an agent session.
Written at end of each turn; read on AinlRuntime::new (ainl-runtime) to restore state.
Fields§
§agent_id: String§turn_count: u64§last_extraction_at_turn: u64§persona_snapshot_json: Option<String>Serialized persona contribution (JSON string value) — avoids re-deriving from graph on cold start.
updated_at: i64Trait Implementations§
Source§impl Clone for RuntimeStateNode
impl Clone for RuntimeStateNode
Source§fn clone(&self) -> RuntimeStateNode
fn clone(&self) -> RuntimeStateNode
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 RuntimeStateNode
impl Debug for RuntimeStateNode
Source§impl Default for RuntimeStateNode
impl Default for RuntimeStateNode
Source§fn default() -> RuntimeStateNode
fn default() -> RuntimeStateNode
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for RuntimeStateNode
impl<'de> Deserialize<'de> for RuntimeStateNode
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
Source§impl PartialEq for RuntimeStateNode
impl PartialEq for RuntimeStateNode
Source§impl Serialize for RuntimeStateNode
impl Serialize for RuntimeStateNode
impl Eq for RuntimeStateNode
impl StructuralPartialEq for RuntimeStateNode
Auto Trait Implementations§
impl Freeze for RuntimeStateNode
impl RefUnwindSafe for RuntimeStateNode
impl Send for RuntimeStateNode
impl Sync for RuntimeStateNode
impl Unpin for RuntimeStateNode
impl UnsafeUnpin for RuntimeStateNode
impl UnwindSafe for RuntimeStateNode
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