pub struct Checkpoint {
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,
}Expand description
A checkpoint captures agent state at a point in time.
Fields§
§id: StringUnique checkpoint ID
agent_name: StringAgent name/type
session_id: StringSession ID
step: usizeStep 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: u64Timestamp (Unix epoch seconds)
ttl_secs: Option<u64>Optional TTL in seconds from timestamp.
status: CheckpointStatusStatus of this checkpoint
Trait Implementations§
Source§impl Clone for Checkpoint
impl Clone for Checkpoint
Source§fn clone(&self) -> Checkpoint
fn clone(&self) -> Checkpoint
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 Checkpoint
impl Debug for Checkpoint
Source§impl<'de> Deserialize<'de> for Checkpoint
impl<'de> Deserialize<'de> for Checkpoint
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 Display for Checkpoint
impl Display for Checkpoint
Source§impl From<&Checkpoint> for CheckpointMetadata
impl From<&Checkpoint> for CheckpointMetadata
Source§fn from(cp: &Checkpoint) -> Self
fn from(cp: &Checkpoint) -> Self
Converts to this type from the input type.
Source§impl PartialEq for Checkpoint
impl PartialEq for Checkpoint
Source§impl Serialize for Checkpoint
impl Serialize for Checkpoint
impl StructuralPartialEq for Checkpoint
Auto Trait Implementations§
impl Freeze for Checkpoint
impl RefUnwindSafe for Checkpoint
impl Send for Checkpoint
impl Sync for Checkpoint
impl Unpin for Checkpoint
impl UnsafeUnpin for Checkpoint
impl UnwindSafe for Checkpoint
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