pub struct Checkpoint {Show 27 fields
pub schema_version: String,
pub run_definition_schema: String,
pub run_definition: Value,
pub checkpoint_key: String,
pub task_id: String,
pub root_run_id: String,
pub trace_id: String,
pub run_definition_digest: String,
pub resume_attempt: u64,
pub cycle_index: u64,
pub status: CheckpointStatus,
pub messages: Vec<Message>,
pub cycles: Vec<CycleRecord>,
pub model_calls: Vec<ModelCallRecord>,
pub shared_state: BTreeMap<String, Value>,
pub budget_usage: Option<BudgetUsageSnapshot>,
pub event_cursor: Option<EventCursor>,
pub event_outbox: Vec<EventOutboxEntry>,
pub extension_state: BTreeMap<String, ExtensionStateEntry>,
pub model_call_journal: Vec<OperationJournalEntry>,
pub tool_journal: Vec<OperationJournalEntry>,
pub revision: u64,
pub claim_token: Option<String>,
pub claimed_cycle: Option<u64>,
pub lease_expires_at_ms: Option<u64>,
pub terminal_result: Option<Value>,
pub terminal_acknowledged: bool,
}Fields§
§schema_version: String§run_definition_schema: String§run_definition: Value§checkpoint_key: String§task_id: String§root_run_id: String§trace_id: String§run_definition_digest: String§resume_attempt: u64§cycle_index: u64§status: CheckpointStatus§messages: Vec<Message>§cycles: Vec<CycleRecord>§model_calls: Vec<ModelCallRecord>§budget_usage: Option<BudgetUsageSnapshot>§event_cursor: Option<EventCursor>§event_outbox: Vec<EventOutboxEntry>§extension_state: BTreeMap<String, ExtensionStateEntry>§model_call_journal: Vec<OperationJournalEntry>§tool_journal: Vec<OperationJournalEntry>§revision: u64§claim_token: Option<String>§claimed_cycle: Option<u64>§lease_expires_at_ms: Option<u64>§terminal_result: Option<Value>§terminal_acknowledged: boolImplementations§
Source§impl Checkpoint
impl Checkpoint
pub fn validate(&self) -> CheckpointResult<()>
pub fn active_cycle(&self) -> CheckpointResult<u64>
pub fn has_ambiguous_operation(&self) -> bool
pub fn is_operator_abort_terminal(&self) -> bool
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 Default for Checkpoint
impl Default for Checkpoint
Source§impl PartialEq for Checkpoint
impl PartialEq 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreCreates a shared type from an unshared type.