pub enum ModelCapability {
Vision,
VideoUnderstanding,
DocumentUnderstanding,
AudioUnderstanding,
ImageUrl,
VideoUrl,
ReasoningRequired,
ReasoningForeignUnsupported,
}Expand description
Model capabilities that influence tool and media behavior.
Variants§
Vision
Model can process images.
VideoUnderstanding
Model can process video content.
DocumentUnderstanding
Model can process documents.
AudioUnderstanding
Model can process audio content.
ImageUrl
Model supports images by URL.
VideoUrl
Model supports videos by URL.
ReasoningRequired
Provider requires reasoning content in assistant messages.
ReasoningForeignUnsupported
Provider rejects foreign-provider reasoning content.
Trait Implementations§
Source§impl Clone for ModelCapability
impl Clone for ModelCapability
Source§fn clone(&self) -> ModelCapability
fn clone(&self) -> ModelCapability
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 moreSource§impl Debug for ModelCapability
impl Debug for ModelCapability
Source§impl<'de> Deserialize<'de> for ModelCapability
impl<'de> Deserialize<'de> for ModelCapability
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 ModelCapability
Source§impl Ord for ModelCapability
impl Ord for ModelCapability
Source§fn cmp(&self, other: &ModelCapability) -> Ordering
fn cmp(&self, other: &ModelCapability) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for ModelCapability
impl PartialEq for ModelCapability
Source§impl PartialOrd for ModelCapability
impl PartialOrd for ModelCapability
Source§impl Serialize for ModelCapability
impl Serialize for ModelCapability
impl StructuralPartialEq for ModelCapability
Auto Trait Implementations§
impl Freeze for ModelCapability
impl RefUnwindSafe for ModelCapability
impl Send for ModelCapability
impl Sync for ModelCapability
impl Unpin for ModelCapability
impl UnsafeUnpin for ModelCapability
impl UnwindSafe for ModelCapability
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