pub struct ResolvedModel {
pub context_window: Option<u32>,
pub max_output_tokens: Option<u32>,
pub pricing: Option<Pricing>,
pub pricing_tiers: Vec<PricingTier>,
pub supports_thinking: Option<bool>,
pub source: ResolvedSource,
}Available on crate feature
model-discovery only.Expand description
The resolved capability/pricing view of a provider/model.
Fields§
§context_window: Option<u32>Maximum total context window in tokens, if known.
max_output_tokens: Option<u32>Maximum output tokens per response, if known.
pricing: Option<Pricing>Base pricing for cost estimation, if known. Applies to a call whose
context stays inside the base band — see pricing_tiers.
pricing_tiers: Vec<PricingTier>Long-context price bands, when the source publishes them. Empty for a model priced at one flat rate (every static-table row).
supports_thinking: Option<bool>Whether the model is a reasoning/thinking model, if known.
source: ResolvedSourceWhich layer satisfied the lookup.
Trait Implementations§
Source§impl Clone for ResolvedModel
impl Clone for ResolvedModel
Source§fn clone(&self) -> ResolvedModel
fn clone(&self) -> ResolvedModel
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ResolvedModel
impl Debug for ResolvedModel
Source§impl PartialEq for ResolvedModel
impl PartialEq for ResolvedModel
impl StructuralPartialEq for ResolvedModel
Auto Trait Implementations§
impl Freeze for ResolvedModel
impl RefUnwindSafe for ResolvedModel
impl Send for ResolvedModel
impl Sync for ResolvedModel
impl Unpin for ResolvedModel
impl UnsafeUnpin for ResolvedModel
impl UnwindSafe for ResolvedModel
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