pub struct ModelConfiguration {
pub version: Option<String>,
pub models: Vec<ModelSpec>,
pub providers: HashMap<String, ProviderConfig>,
}Expand description
Top-level deserialised model catalog: every known model plus every provider’s settings.
ModelConfiguration is the result of merging the embedded
src/templates/models.yaml with any optional user
(~/.omni-dev/models.yaml) and project (./.omni-dev/models.yaml)
overrides, in that precedence order. See
ADR-0022 for the layered loader and
merge semantics. The canonical entry point that produces a fully merged
instance — and wraps it in lookup indices — is ModelRegistry::load;
the raw configuration is reachable from there via
ModelRegistry::config.
Fields§
§version: Option<String>Schema version declared by the source YAML, if any.
models: Vec<ModelSpec>List of all available models.
providers: HashMap<String, ProviderConfig>Provider-specific configurations.
Trait Implementations§
Source§impl Clone for ModelConfiguration
impl Clone for ModelConfiguration
Source§fn clone(&self) -> ModelConfiguration
fn clone(&self) -> ModelConfiguration
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 ModelConfiguration
impl Debug for ModelConfiguration
Source§impl<'de> Deserialize<'de> for ModelConfiguration
impl<'de> Deserialize<'de> for ModelConfiguration
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
Auto Trait Implementations§
impl Freeze for ModelConfiguration
impl RefUnwindSafe for ModelConfiguration
impl Send for ModelConfiguration
impl Sync for ModelConfiguration
impl Unpin for ModelConfiguration
impl UnsafeUnpin for ModelConfiguration
impl UnwindSafe for ModelConfiguration
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