pub struct ModelTier {
pub model: Option<String>,
pub service: Option<String>,
pub window: Option<u64>,
pub fallback: Option<String>,
pub pricing: Option<Pricing>,
}Expand description
One named model tier.
Fields§
§model: Option<String>The wire model name sent to the provider. Required.
service: Option<String>A services: entry of kind: intelligence supplying the endpoint,
auth and tags. Absent ⇒ the top-level intelligence endpoint.
window: Option<u64>This model’s context window, so compaction stops guessing from the model NAME (a substring match that is wrong for every provider whose naming does not happen to match).
fallback: Option<String>The tier to fall back to when this one is unavailable or the budget is squeezed — a degradation ladder that walks DOWN instead of failing.
pricing: Option<Pricing>Trait Implementations§
Source§impl<'de> Deserialize<'de> for ModelTier
impl<'de> Deserialize<'de> for ModelTier
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
impl StructuralPartialEq for ModelTier
Auto Trait Implementations§
impl Freeze for ModelTier
impl RefUnwindSafe for ModelTier
impl Send for ModelTier
impl Sync for ModelTier
impl Unpin for ModelTier
impl UnsafeUnpin for ModelTier
impl UnwindSafe for ModelTier
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