pub struct ModelCapability {Show 13 fields
pub model_id: String,
pub provider: String,
pub display_name: String,
pub version: Option<String>,
pub cost_per_1k_input_tokens: f64,
pub cost_per_1k_output_tokens: f64,
pub speed_score: f64,
pub intelligence_score: f64,
pub max_context_length: u32,
pub modalities: Vec<Modality>,
pub supports_function_calling: bool,
pub supports_streaming: bool,
pub metadata: Option<Value>,
}Expand description
Model capability information for intelligent selection
Fields§
§model_id: StringModel identifier
provider: StringModel provider (e.g., “openai”, “anthropic”, “google”)
display_name: StringModel display name
version: Option<String>Model version or variant
cost_per_1k_input_tokens: f64Cost per 1K input tokens (in cents)
cost_per_1k_output_tokens: f64Cost per 1K output tokens (in cents)
speed_score: f64Relative speed score (1-10, higher is faster)
intelligence_score: f64Relative intelligence score (1-10, higher is more capable)
max_context_length: u32Maximum context length
modalities: Vec<Modality>Supported modalities
supports_function_calling: boolWhether the model supports function calling
supports_streaming: boolWhether the model supports streaming
metadata: Option<Value>Additional metadata about the model
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 · 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<ModelCapability, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<ModelCapability, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for ModelCapability
impl Serialize for ModelCapability
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
Auto Trait Implementations§
impl Freeze for ModelCapability
impl RefUnwindSafe for ModelCapability
impl Send for ModelCapability
impl Sync for ModelCapability
impl Unpin 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