pub struct AvailableModel {
pub name: String,
pub display_name: Option<String>,
pub max_tokens: u64,
pub tool_override: Option<String>,
pub max_output_tokens: Option<u64>,
pub default_temperature: Option<f32>,
pub extra_beta_headers: Vec<String>,
pub mode: Option<ModelMode>,
}
Fields§
§name: String
The model’s name in the Anthropic API. e.g. claude-3-5-sonnet-latest, claude-3-opus-20240229, etc
display_name: Option<String>
The model’s name in Zed’s UI, such as in the model selector dropdown menu in the assistant panel.
max_tokens: u64
The model’s context window size.
tool_override: Option<String>
A model name
to substitute when calling tools, in case the primary model doesn’t support tool calling.
max_output_tokens: Option<u64>
Configuration of Anthropic’s caching API.
default_temperature: Option<f32>
§extra_beta_headers: Vec<String>
§mode: Option<ModelMode>
The model’s mode (e.g. thinking)
Trait Implementations§
Source§impl Clone for AvailableModel
impl Clone for AvailableModel
Source§fn clone(&self) -> AvailableModel
fn clone(&self) -> AvailableModel
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 AvailableModel
impl Debug for AvailableModel
Source§impl<'de> Deserialize<'de> for AvailableModel
impl<'de> Deserialize<'de> for AvailableModel
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 JsonSchema for AvailableModel
impl JsonSchema for AvailableModel
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref
keyword. Read moreSource§impl PartialEq for AvailableModel
impl PartialEq for AvailableModel
Source§impl Serialize for AvailableModel
impl Serialize for AvailableModel
impl StructuralPartialEq for AvailableModel
Auto Trait Implementations§
impl Freeze for AvailableModel
impl RefUnwindSafe for AvailableModel
impl Send for AvailableModel
impl Sync for AvailableModel
impl Unpin for AvailableModel
impl UnwindSafe for AvailableModel
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