pub enum ModelSource {
Cli,
Env,
ProviderConfig,
RootDefaultTextModel,
RootModel,
ProviderDefault,
}Expand description
Where the resolved runtime model id came from.
This mirrors the precedence chain in
ConfigToml::resolve_runtime_options_with_secrets so diagnostics can say
why a model was chosen instead of presenting a built-in default as if the
user had asked for it. Self::ProviderDefault is the only variant that
means “nothing was configured”.
Variants§
Cli
--model on the command line.
Env
A CODEWHALE_* environment variable.
ProviderConfig
[providers.<name>].model.
RootDefaultTextModel
The root default_text_model key, which is DeepSeek-scoped.
RootModel
The provider-neutral root model key.
ProviderDefault
Nothing was configured; this is the built-in default for the provider.
Implementations§
Source§impl ModelSource
impl ModelSource
Trait Implementations§
Source§impl Clone for ModelSource
impl Clone for ModelSource
Source§fn clone(&self) -> ModelSource
fn clone(&self) -> ModelSource
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 moreimpl Copy for ModelSource
Source§impl Debug for ModelSource
impl Debug for ModelSource
impl Eq for ModelSource
Source§impl PartialEq for ModelSource
impl PartialEq for ModelSource
impl StructuralPartialEq for ModelSource
Auto Trait Implementations§
impl Freeze for ModelSource
impl RefUnwindSafe for ModelSource
impl Send for ModelSource
impl Sync for ModelSource
impl Unpin for ModelSource
impl UnsafeUnpin for ModelSource
impl UnwindSafe for ModelSource
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.