pub struct StaticModelPolicy { /* private fields */ }Implementations§
Trait Implementations§
Source§impl Clone for StaticModelPolicy
impl Clone for StaticModelPolicy
Source§fn clone(&self) -> StaticModelPolicy
fn clone(&self) -> StaticModelPolicy
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 StaticModelPolicy
impl Debug for StaticModelPolicy
Source§impl ProviderModelPolicy for StaticModelPolicy
impl ProviderModelPolicy for StaticModelPolicy
fn default_model(&self) -> &str
fn supported_variants(&self, _model: &str) -> &'static [&'static str]
fn default_model_variant(&self, _model: &str) -> Option<&'static str>
fn request_variant_config( &self, _model: &str, variant: &str, ) -> Option<VariantRequestConfig>
fn default_agent_model(&self, _tier: &str) -> Option<AgentModelSelection>
fn resolve_model(&self, model: &str) -> String
fn context_lookup_model(&self, model: &str) -> String
fn input_usage_excludes_cached_tokens(&self) -> bool
Auto Trait Implementations§
impl Freeze for StaticModelPolicy
impl RefUnwindSafe for StaticModelPolicy
impl Send for StaticModelPolicy
impl Sync for StaticModelPolicy
impl Unpin for StaticModelPolicy
impl UnsafeUnpin for StaticModelPolicy
impl UnwindSafe for StaticModelPolicy
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