pub struct EngineConfig {
pub default_model: String,
pub api_key: Option<String>,
pub provider_options: Option<ProviderOptions>,
pub routing_enabled: bool,
pub prefer_cost_efficient: bool,
pub fallback_models: Vec<String>,
pub excluded_models: Vec<String>,
}Expand description
LLM engine configuration.
Fields§
§default_model: StringDefault model in “provider/model” format. Empty string means no model configured — onboarding required.
api_key: Option<String>Explicit API key override (highest priority). If empty/None, falls back to oxi auth store, then env vars. Masked when serialized to API responses.
provider_options: Option<ProviderOptions>Per-provider options for fine-grained control (thinking mode, etc.).
Passed through to AgentLoopConfig::provider_options.
routing_enabled: boolEnable complexity-based model routing. When enabled, the engine can route simple tasks to cheaper models and complex tasks to more capable ones.
prefer_cost_efficient: boolPrefer cost-efficient models when routing.
fallback_models: Vec<String>Fallback models to try when the primary model fails.
excluded_models: Vec<String>Models excluded from automatic routing.
Trait Implementations§
Source§impl Clone for EngineConfig
impl Clone for EngineConfig
Source§fn clone(&self) -> EngineConfig
fn clone(&self) -> EngineConfig
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 EngineConfig
impl Debug for EngineConfig
Source§impl Default for EngineConfig
impl Default for EngineConfig
Source§impl<'de> Deserialize<'de> for EngineConfig
impl<'de> Deserialize<'de> for EngineConfig
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 EngineConfig
impl RefUnwindSafe for EngineConfig
impl Send for EngineConfig
impl Sync for EngineConfig
impl Unpin for EngineConfig
impl UnsafeUnpin for EngineConfig
impl UnwindSafe for EngineConfig
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