pub struct CheckpointV2 {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 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,
pub unknown_fields: BTreeMap<String, Value>,
}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>§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: bool§unknown_fields: BTreeMap<String, Value>Implementations§
Source§impl CheckpointV2
impl CheckpointV2
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 CheckpointV2
impl Clone for CheckpointV2
Source§fn clone(&self) -> CheckpointV2
fn clone(&self) -> CheckpointV2
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 CheckpointV2
impl Debug for CheckpointV2
Source§impl Default for CheckpointV2
impl Default for CheckpointV2
Source§impl PartialEq for CheckpointV2
impl PartialEq for CheckpointV2
impl StructuralPartialEq for CheckpointV2
Auto Trait Implementations§
impl Freeze for CheckpointV2
impl RefUnwindSafe for CheckpointV2
impl Send for CheckpointV2
impl Sync for CheckpointV2
impl Unpin for CheckpointV2
impl UnsafeUnpin for CheckpointV2
impl UnwindSafe for CheckpointV2
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.