pub struct ModelSpec {
pub id: String,
pub context_window: Option<u64>,
pub max_output: Option<u32>,
pub reasoning_levels: Option<Vec<String>>,
pub input_types: Option<Vec<String>>,
}Expand description
A model with what the engine should know about it beyond its id.
context_window and max_output are applied to the model’s calls;
reasoning_levels and input_types are kept and reported; nothing in
the engine decides by them.
Fields§
§id: String§context_window: Option<u64>§max_output: Option<u32>The most max_tokens a call to this model is sent with, and the most
a reply cut off at its limit is retried with. Unset, the model’s
documented limit, looked up by its id.
reasoning_levels: Option<Vec<String>>§input_types: Option<Vec<String>>Trait Implementations§
Source§impl<'de> Deserialize<'de> for ModelSpec
impl<'de> Deserialize<'de> for ModelSpec
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 ModelSpec
impl JsonSchema for ModelSpec
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 moreimpl StructuralPartialEq for ModelSpec
Auto Trait Implementations§
impl Forget for ModelSpec
impl Freeze for ModelSpec
impl Move for ModelSpec
impl RefUnwindSafe for ModelSpec
impl Send for ModelSpec
impl Sync for ModelSpec
impl Unpin for ModelSpec
impl UnsafeUnpin for ModelSpec
impl UnwindSafe for ModelSpec
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