pub struct FoldedRun {
pub identity: RunIdentity,
pub meta: RunMeta,
pub context: ContextSnapshot,
pub messages: Vec<MessageRecord>,
pub inference_count: usize,
pub tool_call_count: usize,
pub pending_batch: Option<PendingToolBatch>,
}Expand description
The state reconstructed from a run journal - enough to resume or inspect the run at its latest recorded point.
Fields§
§identity: RunIdentityThe run’s current owner/identity.
meta: RunMetaThe latest run metadata.
context: ContextSnapshotThe reconstructed current context window.
messages: Vec<MessageRecord>The recorded inbound messages, in order.
inference_count: usizeNumber of inferences recorded.
tool_call_count: usizeNumber of tool calls recorded.
pending_batch: Option<PendingToolBatch>A dispatched tool batch whose results never made it into the context
window (the run crashed mid-batch). None when the run has no batch in
flight or the batch’s turn already landed in context.
Trait Implementations§
impl StructuralPartialEq for FoldedRun
Auto Trait Implementations§
impl Freeze for FoldedRun
impl RefUnwindSafe for FoldedRun
impl Send for FoldedRun
impl Sync for FoldedRun
impl Unpin for FoldedRun
impl UnsafeUnpin for FoldedRun
impl UnwindSafe for FoldedRun
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