pub struct CheckpointContext<'a> {
pub reason: CheckpointReason,
pub assistant_text: &'a str,
pub turn: usize,
pub message_count: usize,
pub context: &'a ContextCheckpoint,
pub tool_surface_hash: &'a str,
pub has_background_tasks: bool,
pub window: &'a ContextWindowSnapshot,
}Expand description
Structured checkpoint payload emitted from the runtime.
Fields§
§reason: CheckpointReasonWhy this checkpoint was emitted.
assistant_text: &'a strAssistant text produced in the current turn before this checkpoint.
turn: usizeCurrent turn number (1-indexed within the agent loop).
message_count: usizeNumber of recent conversation messages currently in memory.
context: &'a ContextCheckpointStructured runtime context after the latest turn mutations.
tool_surface_hash: &'a strHash of the currently exposed tool surface.
has_background_tasks: boolWhether background work is still active.
window: &'a ContextWindowSnapshotStructured snapshot of the currently assembled context window.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for CheckpointContext<'a>
impl<'a> RefUnwindSafe for CheckpointContext<'a>
impl<'a> Send for CheckpointContext<'a>
impl<'a> Sync for CheckpointContext<'a>
impl<'a> Unpin for CheckpointContext<'a>
impl<'a> UnsafeUnpin for CheckpointContext<'a>
impl<'a> UnwindSafe for CheckpointContext<'a>
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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 more