pub struct ModelCapabilities {
pub supports_thinking: bool,
pub supports_vision: bool,
pub supports_extended_context: bool,
pub supports_computer_use: bool,
pub supports_pdf: bool,
pub extra: HashMap<String, Value>,
}Available on crate feature
anthropic-client only.Expand description
Per-model capability flags.
Known boolean fields are typed; unknown fields are preserved in extra
for forward compatibility.
Fields§
§supports_thinking: boolWhether the model supports extended thinking.
supports_vision: boolWhether the model supports vision (image inputs).
supports_extended_context: boolWhether the model supports extended context windows.
supports_computer_use: boolWhether the model supports computer use tools.
supports_pdf: boolWhether the model supports PDF document inputs.
extra: HashMap<String, Value>Catch-all for unknown capability fields.
Trait Implementations§
Source§impl Clone for ModelCapabilities
impl Clone for ModelCapabilities
Source§fn clone(&self) -> ModelCapabilities
fn clone(&self) -> ModelCapabilities
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 ModelCapabilities
impl Debug for ModelCapabilities
Source§impl Default for ModelCapabilities
impl Default for ModelCapabilities
Source§fn default() -> ModelCapabilities
fn default() -> ModelCapabilities
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ModelCapabilities
impl<'de> Deserialize<'de> for ModelCapabilities
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<ModelCapabilities, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<ModelCapabilities, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for ModelCapabilities
impl PartialEq for ModelCapabilities
Source§fn eq(&self, other: &ModelCapabilities) -> bool
fn eq(&self, other: &ModelCapabilities) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ModelCapabilities
impl Serialize for ModelCapabilities
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 ModelCapabilities
Auto Trait Implementations§
impl Freeze for ModelCapabilities
impl RefUnwindSafe for ModelCapabilities
impl Send for ModelCapabilities
impl Sync for ModelCapabilities
impl Unpin for ModelCapabilities
impl UnsafeUnpin for ModelCapabilities
impl UnwindSafe for ModelCapabilities
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