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
Source§fn clone(&self) -> StreamIntegrity
fn clone(&self) -> StreamIntegrity
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 StreamIntegrity
Source§impl Debug for StreamIntegrity
impl Debug for StreamIntegrity
Source§impl Default for StreamIntegrity
impl Default for StreamIntegrity
Source§fn default() -> StreamIntegrity
fn default() -> StreamIntegrity
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for StreamIntegrity
impl<'de> Deserialize<'de> for StreamIntegrity
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<StreamIntegrity, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<StreamIntegrity, <__D as Deserializer<'de>>::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
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
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.