pub struct AgentCheckpointState {
pub execution_id: String,
pub agent: String,
pub model: ModelRef,
pub transcript: Vec<Message>,
pub turns: u32,
pub tool_calls: u32,
pub delegations: u32,
pub usage: Usage,
pub phase: AgentCheckpointPhase,
pub durable_conversation: Option<DurableConversationCheckpoint>,
}Expand description
Versioned Agent state stored in a domain-neutral checkpoint envelope.
Fields§
§execution_id: StringStable logical execution identity used for callable idempotency.
agent: StringAgent identity expected during recovery.
model: ModelRefModel identity expected during recovery.
transcript: Vec<Message>Canonical transcript at the last stable boundary.
turns: u32Completed model turns.
tool_calls: u32Completed local tool attempts.
delegations: u32Completed successful delegations.
usage: UsageShared usage snapshot at persistence time.
phase: AgentCheckpointPhaseCurrent recovery phase.
durable_conversation: Option<DurableConversationCheckpoint>Atomic conversation commit metadata, when this is a durable turn.
Trait Implementations§
Source§impl Clone for AgentCheckpointState
impl Clone for AgentCheckpointState
Source§fn clone(&self) -> AgentCheckpointState
fn clone(&self) -> AgentCheckpointState
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 AgentCheckpointState
impl Debug for AgentCheckpointState
Source§impl<'de> Deserialize<'de> for AgentCheckpointState
impl<'de> Deserialize<'de> for AgentCheckpointState
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 AgentCheckpointState
impl PartialEq for AgentCheckpointState
Source§impl Serialize for AgentCheckpointState
impl Serialize for AgentCheckpointState
impl StructuralPartialEq for AgentCheckpointState
Auto Trait Implementations§
impl Freeze for AgentCheckpointState
impl RefUnwindSafe for AgentCheckpointState
impl Send for AgentCheckpointState
impl Sync for AgentCheckpointState
impl Unpin for AgentCheckpointState
impl UnsafeUnpin for AgentCheckpointState
impl UnwindSafe for AgentCheckpointState
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