pub struct TurnCheckpoint {
pub history_len: usize,
pub signals_len: usize,
pub task_state: Option<TaskState>,
}Expand description
Snapshot of context lengths captured just before each LLM call. Used internally to restore state on rollback.
Fields§
§history_len: usize§signals_len: usize§task_state: Option<TaskState>Trait Implementations§
Source§impl Clone for TurnCheckpoint
impl Clone for TurnCheckpoint
Source§fn clone(&self) -> TurnCheckpoint
fn clone(&self) -> TurnCheckpoint
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 TurnCheckpoint
impl Debug for TurnCheckpoint
Source§impl Default for TurnCheckpoint
impl Default for TurnCheckpoint
Source§fn default() -> TurnCheckpoint
fn default() -> TurnCheckpoint
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for TurnCheckpoint
impl RefUnwindSafe for TurnCheckpoint
impl Send for TurnCheckpoint
impl Sync for TurnCheckpoint
impl Unpin for TurnCheckpoint
impl UnsafeUnpin for TurnCheckpoint
impl UnwindSafe for TurnCheckpoint
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