Skip to main content

AgentCheckpoint

Type Alias AgentCheckpoint 

Source
pub type AgentCheckpoint = Checkpoint;
Expand description

Agent state captured at a point in time (alias for Checkpoint).

Aliased Type§

pub struct AgentCheckpoint {
    pub id: String,
    pub agent_name: String,
    pub session_id: String,
    pub step: usize,
    pub messages: Vec<CheckpointMessage>,
    pub tool_calls: Vec<ToolCallRecord>,
    pub partial_results: Vec<String>,
    pub timestamp: u64,
    pub ttl_secs: Option<u64>,
    pub status: CheckpointStatus,
}

Fields§

§id: String

Unique checkpoint ID

§agent_name: String

Agent name/type

§session_id: String

Session ID

§step: usize

Step number (0-indexed)

§messages: Vec<CheckpointMessage>

Conversation messages so far

§tool_calls: Vec<ToolCallRecord>

Tool calls made and their results

§partial_results: Vec<String>

Partial results accumulated

§timestamp: u64

Timestamp (Unix epoch seconds)

§ttl_secs: Option<u64>

Optional TTL in seconds from timestamp.

§status: CheckpointStatus

Status of this checkpoint