#[non_exhaustive]pub enum MissingCapability {
StructuredOutput {
required: Vec<StructuredOutputCapability>,
declared: StructuredOutputCapability,
},
ToolCalling,
Streaming,
Vision,
Documents,
ContextWindow {
required: u64,
declared: Option<u64>,
},
}Expand description
One capability a provider lacks.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
StructuredOutput
The declared structured-output transport is not in the accepted set.
Fields
§
required: Vec<StructuredOutputCapability>Transports that would have been accepted.
§
declared: StructuredOutputCapabilityWhat the profile declares.
ToolCalling
Tools are needed but the model declares none.
Streaming
Streaming is needed but not declared.
Vision
Vision is needed but not declared.
Documents
A document part is present but document input is not declared.
ContextWindow
The declared context window is unknown or too small.
Trait Implementations§
Source§impl Clone for MissingCapability
impl Clone for MissingCapability
Source§impl Debug for MissingCapability
impl Debug for MissingCapability
Source§impl<'de> Deserialize<'de> for MissingCapability
impl<'de> Deserialize<'de> for MissingCapability
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
Source§impl Display for MissingCapability
impl Display for MissingCapability
impl Eq for MissingCapability
Source§impl Hash for MissingCapability
impl Hash for MissingCapability
Source§impl PartialEq for MissingCapability
impl PartialEq for MissingCapability
Source§impl Serialize for MissingCapability
impl Serialize for MissingCapability
impl StructuralPartialEq for MissingCapability
Auto Trait Implementations§
impl Freeze for MissingCapability
impl RefUnwindSafe for MissingCapability
impl Send for MissingCapability
impl Sync for MissingCapability
impl Unpin for MissingCapability
impl UnsafeUnpin for MissingCapability
impl UnwindSafe for MissingCapability
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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.