pub struct StreamIntegrity {
pub invalid_args: usize,
pub orphan_args_bytes: usize,
}Expand description
Structural integrity facts about one assembled tool-call batch.
Detection is shape-based (never provider metadata — stop reasons lie): a named call whose args are non-empty but not valid JSON is wire truncation; args fragments arriving on a name-less bucket are a misplaced tail (the provider leaked them past the owning block, e.g. into a thinking block’s index).
Fields§
§invalid_args: usizeNamed tool calls with non-empty, unparseable args.
orphan_args_bytes: usizeBytes of args fragments that landed on name-less buckets.
Implementations§
Trait Implementations§
Source§impl Clone for StreamIntegrity
impl Clone for StreamIntegrity
impl Copy for StreamIntegrity
Source§impl Debug for StreamIntegrity
impl Debug for StreamIntegrity
Source§impl Default for StreamIntegrity
impl Default for StreamIntegrity
Source§impl<'de> Deserialize<'de> for StreamIntegrity
impl<'de> Deserialize<'de> for StreamIntegrity
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 StreamIntegrity
Source§impl PartialEq for StreamIntegrity
impl PartialEq for StreamIntegrity
Source§impl Serialize for StreamIntegrity
impl Serialize for StreamIntegrity
impl StructuralPartialEq for StreamIntegrity
Auto Trait Implementations§
impl Forget for StreamIntegrity
impl Freeze for StreamIntegrity
impl Move for StreamIntegrity
impl RefUnwindSafe for StreamIntegrity
impl Send for StreamIntegrity
impl Sync for StreamIntegrity
impl Unpin for StreamIntegrity
impl UnsafeUnpin for StreamIntegrity
impl UnwindSafe for StreamIntegrity
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§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.