pub struct Spec {Show 27 fields
pub id: String,
pub metadata_model_id: String,
pub object: String,
pub created: i64,
pub owned_by: String,
pub kind: String,
pub display_name: String,
pub name: String,
pub version: String,
pub description: String,
pub input_token_limit: i64,
pub output_token_limit: i64,
pub supported_generation_methods: Vec<String>,
pub context_length: i64,
pub max_context_length: i64,
pub max_completion_tokens: i64,
pub supported_parameters: Vec<String>,
pub supported_input_modalities: Vec<String>,
pub supported_output_modalities: Vec<String>,
pub thinking: Option<ThinkingSupport>,
pub support_configuration_update: bool,
pub supports_web_search: bool,
pub is_compat: bool,
pub user_defined: bool,
pub explicit_thinking: bool,
pub explicit_input_modalities: bool,
pub native_web_search: Option<bool>,
}Expand description
One model definition (Go registry.ModelInfo), typed for rendering.
Fields§
§id: String§metadata_model_id: String§object: String§created: i64§owned_by: String§kind: String§display_name: String§name: String§version: String§description: String§input_token_limit: i64§output_token_limit: i64§supported_generation_methods: Vec<String>§context_length: i64§max_context_length: i64§max_completion_tokens: i64§supported_parameters: Vec<String>§supported_input_modalities: Vec<String>§supported_output_modalities: Vec<String>§thinking: Option<ThinkingSupport>§support_configuration_update: bool§supports_web_search: boolGo SupportsWebSearch (Antigravity models whose upstream lists web search).
is_compat: bool§user_defined: bool§explicit_thinking: boolGo ExplicitThinking: a config model that set thinking (the Codex client
catalog lets it narrow the advertised reasoning levels).
explicit_input_modalities: boolGo ExplicitInputModalities: an OpenAI-compatible model that set
input-modalities.
native_web_search: Option<bool>Go NativeCapabilities.WebSearch from the static catalog (native_capabilities),
None when unknown.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Spec
impl<'de> Deserialize<'de> for Spec
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<Spec, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<Spec, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for Spec
Auto Trait Implementations§
impl Forget for Spec
impl Freeze for Spec
impl Move for Spec
impl RefUnwindSafe for Spec
impl Send for Spec
impl Sync for Spec
impl Unpin for Spec
impl UnsafeUnpin for Spec
impl UnwindSafe for Spec
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
impl<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more