pub struct TurnBlockedEvent {
pub message: String,
pub last_tool: Option<String>,
pub blocked_streak: usize,
pub blocked_total: usize,
pub consecutive_cap: usize,
pub total_cap: usize,
pub recovery_active: bool,
pub usage: Option<Usage>,
}Fields§
§message: StringHuman-readable explanation describing why the turn was blocked.
last_tool: Option<String>Display label of the last blocked tool call, when known.
blocked_streak: usizeConsecutive blocked tool calls observed this turn.
blocked_total: usizeTotal blocked tool calls observed this turn.
consecutive_cap: usizeConsecutive cap that was enforced.
total_cap: usizeTotal cap that was enforced.
recovery_active: boolWhether the fuse tripped while a tool-free recovery pass was active.
usage: Option<Usage>Optional token usage that was consumed before the block occurred.
Trait Implementations§
Source§impl Clone for TurnBlockedEvent
impl Clone for TurnBlockedEvent
Source§fn clone(&self) -> TurnBlockedEvent
fn clone(&self) -> TurnBlockedEvent
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 TurnBlockedEvent
impl Debug for TurnBlockedEvent
Source§impl<'de> Deserialize<'de> for TurnBlockedEvent
impl<'de> Deserialize<'de> for TurnBlockedEvent
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 TurnBlockedEvent
Source§impl JsonSchema for TurnBlockedEvent
impl JsonSchema for TurnBlockedEvent
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 TurnBlockedEvent
impl PartialEq for TurnBlockedEvent
Source§impl Serialize for TurnBlockedEvent
impl Serialize for TurnBlockedEvent
impl StructuralPartialEq for TurnBlockedEvent
Auto Trait Implementations§
impl Freeze for TurnBlockedEvent
impl RefUnwindSafe for TurnBlockedEvent
impl Send for TurnBlockedEvent
impl Sync for TurnBlockedEvent
impl Unpin for TurnBlockedEvent
impl UnsafeUnpin for TurnBlockedEvent
impl UnwindSafe for TurnBlockedEvent
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.