pub struct Model {
pub id: String,
pub attachment: bool,
pub cost: ModelCost,
pub limit: ModelLimit,
pub name: String,
pub options: HashMap<String, Value>,
pub reasoning: bool,
pub release_date: String,
pub temperature: bool,
pub tool_call: bool,
}Expand description
A language-model definition exposed by a provider.
Fields§
§id: StringUnique model identifier.
attachment: boolWhether the model supports file attachments.
cost: ModelCostCost information per token.
limit: ModelLimitContext and output token limits.
name: StringHuman-readable model name.
options: HashMap<String, Value>Arbitrary provider-specific options.
reasoning: boolWhether the model supports chain-of-thought reasoning.
release_date: StringISO-8601 release date.
temperature: boolWhether the model supports temperature tuning.
tool_call: boolWhether the model supports tool calling.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Model
impl<'de> Deserialize<'de> for Model
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 StructuralPartialEq for Model
Auto Trait Implementations§
impl Freeze for Model
impl RefUnwindSafe for Model
impl Send for Model
impl Sync for Model
impl Unpin for Model
impl UnwindSafe for Model
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