#[non_exhaustive]pub enum ModelWarning {
LossyEncode {
field: String,
detail: String,
},
UnknownStopReason {
raw: String,
},
UnsupportedCapability {
capability: String,
detail: String,
},
ProviderExtensionIgnored {
vendor: String,
},
}Expand description
One non-fatal advisory from a codec or transport. Carried in
ModelResponse::warnings and surfaced via observability.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
LossyEncode
The codec could not preserve every IR field on the wire. The vendor will not see (or will see a coerced version of) the named field.
Fields
UnknownStopReason
The provider returned a stop reason this codec does not yet model;
the IR carries it as StopReason::Other.
UnsupportedCapability
The IR requested a feature the model doesn’t support (e.g. tools on a vision-only model). The codec proceeded with a degraded request.
Fields
ProviderExtensionIgnored
The IR carries a ProviderExtensions
entry for a vendor different from the active codec — the
codec ignored the foreign knobs because the wire format
cannot express them. Operators that route the same request
across multiple codecs see one of these warnings per inactive
vendor that had ext set.
Trait Implementations§
Source§impl Clone for ModelWarning
impl Clone for ModelWarning
Source§fn clone(&self) -> ModelWarning
fn clone(&self) -> ModelWarning
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ModelWarning
impl Debug for ModelWarning
Source§impl<'de> Deserialize<'de> for ModelWarning
impl<'de> Deserialize<'de> for ModelWarning
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>,
Source§impl PartialEq for ModelWarning
impl PartialEq for ModelWarning
Source§fn eq(&self, other: &ModelWarning) -> bool
fn eq(&self, other: &ModelWarning) -> bool
self and other values to be equal, and is used by ==.Source§impl Serialize for ModelWarning
impl Serialize for ModelWarning
impl Eq for ModelWarning
impl StructuralPartialEq for ModelWarning
Auto Trait Implementations§
impl Freeze for ModelWarning
impl RefUnwindSafe for ModelWarning
impl Send for ModelWarning
impl Sync for ModelWarning
impl Unpin for ModelWarning
impl UnsafeUnpin for ModelWarning
impl UnwindSafe for ModelWarning
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
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§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.