pub struct StructuredOutputProgress {Show 16 fields
pub phase: StructuredOutputPhase,
pub generated_token_count: usize,
pub consumed_token_count: usize,
pub delimiter_token_count: Option<usize>,
pub delimiter_prefix_token_count: usize,
pub reasoning_token_count: Option<usize>,
pub boundary_forced: bool,
pub budget: Option<StructuredOutputBudgetPlan>,
pub grammar_token_count: usize,
pub trailing_token_class: Option<StructuredOutputTokenClass>,
pub trailing_token_class_count: usize,
pub trailing_token_id: Option<u32>,
pub trailing_identical_token_count: usize,
pub liveness_identical_token_limit: usize,
pub liveness_intervention_count: usize,
pub accepting: bool,
}Expand description
Terminal/debug snapshot that distinguishes activation failures from an incomplete grammar without retaining generated text.
Fields§
§phase: StructuredOutputPhase§generated_token_count: usize§consumed_token_count: usize§delimiter_token_count: Option<usize>§delimiter_prefix_token_count: usize§reasoning_token_count: Option<usize>§boundary_forced: bool§budget: Option<StructuredOutputBudgetPlan>§grammar_token_count: usize§trailing_token_class: Option<StructuredOutputTokenClass>§trailing_token_class_count: usize§trailing_token_id: Option<u32>§trailing_identical_token_count: usize§liveness_identical_token_limit: usize§liveness_intervention_count: usize§accepting: boolTrait Implementations§
Source§impl Clone for StructuredOutputProgress
impl Clone for StructuredOutputProgress
Source§fn clone(&self) -> StructuredOutputProgress
fn clone(&self) -> StructuredOutputProgress
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 moreimpl Copy for StructuredOutputProgress
Source§impl Debug for StructuredOutputProgress
impl Debug for StructuredOutputProgress
impl Eq for StructuredOutputProgress
Source§impl PartialEq for StructuredOutputProgress
impl PartialEq for StructuredOutputProgress
impl StructuralPartialEq for StructuredOutputProgress
Auto Trait Implementations§
impl Freeze for StructuredOutputProgress
impl RefUnwindSafe for StructuredOutputProgress
impl Send for StructuredOutputProgress
impl Sync for StructuredOutputProgress
impl Unpin for StructuredOutputProgress
impl UnsafeUnpin for StructuredOutputProgress
impl UnwindSafe for StructuredOutputProgress
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,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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.