pub struct StateUpdates {
pub model: Option<String>,
pub context_window_limit: Option<u64>,
pub usage: Option<ContextWindowUsage>,
pub reasoning_tokens: Option<i32>,
pub is_error: bool,
pub is_new_turn: bool,
}Expand description
Pure data extracted from an AgentEvent to update runtime session state.
Fields§
§model: Option<String>§context_window_limit: Option<u64>§usage: Option<ContextWindowUsage>§reasoning_tokens: Option<i32>§is_error: bool§is_new_turn: boolTrait Implementations§
Source§impl Clone for StateUpdates
impl Clone for StateUpdates
Source§fn clone(&self) -> StateUpdates
fn clone(&self) -> StateUpdates
Returns a duplicate of the value. Read more
1.0.0 · 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 StateUpdates
impl Debug for StateUpdates
Source§impl Default for StateUpdates
impl Default for StateUpdates
Source§fn default() -> StateUpdates
fn default() -> StateUpdates
Returns the “default value” for a type. Read more
Source§impl PartialEq for StateUpdates
impl PartialEq for StateUpdates
impl StructuralPartialEq for StateUpdates
Auto Trait Implementations§
impl Freeze for StateUpdates
impl RefUnwindSafe for StateUpdates
impl Send for StateUpdates
impl Sync for StateUpdates
impl Unpin for StateUpdates
impl UnwindSafe for StateUpdates
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