pub struct CatalogModelEntry {Show 17 fields
pub provider: String,
pub model_id: String,
pub name: String,
pub protocol: CatalogProtocol,
pub source: CatalogSource,
pub base_url: Option<String>,
pub reasoning: bool,
pub supports_vision: bool,
pub cost_input: f64,
pub cost_output: f64,
pub cost_cache_read: f64,
pub cost_cache_write: f64,
pub context_window: u32,
pub max_tokens: u32,
pub input_modalities: Vec<String>,
pub release_date: Option<String>,
pub status: Option<String>,
}Expand description
Snapshot of a single model entry.
Clone is cheap (mostly strings + small numerics). Owned values rather
than &'static so consumers can hold snapshots past the catalog’s
internal lock.
Fields§
§provider: StringProvider identifier this model belongs to (e.g. "anthropic").
model_id: StringModel identifier (e.g. "claude-3-opus-20240229").
name: StringHuman-readable display name.
protocol: CatalogProtocolProtocol for this specific model. May differ from the parent provider’s protocol (per-model override; dynamic-catalog §2.2).
source: CatalogSourceWhere this entry came from.
base_url: Option<String>Model-level base URL override. None = inherit from provider.
See dynamic-catalog §2.2 (v3 — 55 models).
reasoning: boolWhether the model supports reasoning/thinking output.
supports_vision: boolWhether the model accepts image inputs.
cost_input: f64USD per million tokens. 0.0 = free or undisclosed by upstream.
cost_output: f64USD per million output tokens.
cost_cache_read: f64USD per million cache-read tokens.
cost_cache_write: f64USD per million cache-write tokens.
context_window: u32Maximum context length in tokens.
max_tokens: u32Maximum output tokens per response.
input_modalities: Vec<String>Input modalities (e.g. ["text", "image"]). Empty = unknown.
release_date: Option<String>Release date (free-form string from upstream, may be absent).
status: Option<String>Lifecycle status (e.g. "ga", "preview", "deprecated").
Trait Implementations§
Source§impl Clone for CatalogModelEntry
impl Clone for CatalogModelEntry
Source§fn clone(&self) -> CatalogModelEntry
fn clone(&self) -> CatalogModelEntry
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more