pub struct ContextResetEvent {
pub thread_id: String,
pub turn_id: String,
pub trigger: ContextResetTrigger,
pub plan_preserved: bool,
pub previous_context_usage_percent: u8,
pub tool_budget_reset: bool,
}Fields§
§thread_id: StringStable thread identifier for the session.
turn_id: StringIdentifier of the turn that approved the plan.
trigger: ContextResetTriggerWhat initiated the context reset.
plan_preserved: boolWhether the approved plan and task tracker survived the reset.
previous_context_usage_percent: u8Context pressure reported before the reset, expressed as a percentage.
tool_budget_reset: boolWhether the per-turn and per-session tool budgets were reset.
Trait Implementations§
Source§impl Clone for ContextResetEvent
impl Clone for ContextResetEvent
Source§fn clone(&self) -> ContextResetEvent
fn clone(&self) -> ContextResetEvent
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 ContextResetEvent
impl Debug for ContextResetEvent
Source§impl<'de> Deserialize<'de> for ContextResetEvent
impl<'de> Deserialize<'de> for ContextResetEvent
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for ContextResetEvent
Source§impl JsonSchema for ContextResetEvent
impl JsonSchema for ContextResetEvent
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl PartialEq for ContextResetEvent
impl PartialEq for ContextResetEvent
Source§impl Serialize for ContextResetEvent
impl Serialize for ContextResetEvent
impl StructuralPartialEq for ContextResetEvent
Auto Trait Implementations§
impl Freeze for ContextResetEvent
impl RefUnwindSafe for ContextResetEvent
impl Send for ContextResetEvent
impl Sync for ContextResetEvent
impl Unpin for ContextResetEvent
impl UnsafeUnpin for ContextResetEvent
impl UnwindSafe for ContextResetEvent
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.