pub struct StreamCheckpoint {
pub run_id: String,
pub thread_id: String,
pub upstream_model: String,
pub partial_text: String,
pub completed_tool_calls: Vec<ToolCall>,
pub in_flight_tool: Option<InFlightTool>,
pub updated_at_ms: u64,
}Expand description
A persisted snapshot of in-flight stream accumulator state for a run.
Fields§
§run_id: StringIdentifier of the run this checkpoint belongs to. Uniquely keys the checkpoint in storage.
thread_id: StringIdentifier of the containing thread. Carried for operator inspection and for scoped bulk deletion (per-thread cleanup).
upstream_model: StringUpstream model the interrupted attempt targeted.
partial_text: StringText content accumulated before interruption.
completed_tool_calls: Vec<ToolCall>Tool calls whose arguments parsed cleanly before interruption. On resume these are replayed as completed; the model does not re-emit them.
in_flight_tool: Option<InFlightTool>The open tool whose arguments had not finished arriving. Used to surface a cancelled-tool hint on resume, same as R2.
updated_at_ms: u64Wall-clock millis when the writer last updated the checkpoint. Used to bound staleness on read.
Trait Implementations§
Source§impl Clone for StreamCheckpoint
impl Clone for StreamCheckpoint
Source§fn clone(&self) -> StreamCheckpoint
fn clone(&self) -> StreamCheckpoint
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 StreamCheckpoint
impl Debug for StreamCheckpoint
Source§impl<'de> Deserialize<'de> for StreamCheckpoint
impl<'de> Deserialize<'de> for StreamCheckpoint
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<StreamCheckpoint, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<StreamCheckpoint, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for StreamCheckpoint
impl Serialize for StreamCheckpoint
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl Freeze for StreamCheckpoint
impl RefUnwindSafe for StreamCheckpoint
impl Send for StreamCheckpoint
impl Sync for StreamCheckpoint
impl Unpin for StreamCheckpoint
impl UnsafeUnpin for StreamCheckpoint
impl UnwindSafe for StreamCheckpoint
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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