pub struct AgentProviderConfig {
pub name: String,
pub model: String,
pub base_url: Option<String>,
pub api_key: Option<String>,
pub prompt_caching: bool,
pub cascade: Option<CascadeConfig>,
}Expand description
Per-agent provider override. When set on an agent, overrides the orchestrator’s default provider for that agent only.
Fields§
§name: String§model: String§base_url: Option<String>Custom API endpoint URL (overrides the default for the provider). Useful for self-hosted models, Azure, or proxies.
api_key: Option<String>Direct API key (alternative to environment variable). Prefer env vars in production; this is for testing/local dev.
prompt_caching: boolEnable Anthropic prompt caching for this agent.
cascade: Option<CascadeConfig>Per-agent model cascading override.
Implementations§
Trait Implementations§
Source§impl Clone for AgentProviderConfig
impl Clone for AgentProviderConfig
Source§fn clone(&self) -> AgentProviderConfig
fn clone(&self) -> AgentProviderConfig
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 AgentProviderConfig
impl Debug for AgentProviderConfig
Source§impl<'de> Deserialize<'de> for AgentProviderConfig
impl<'de> Deserialize<'de> for AgentProviderConfig
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 AgentProviderConfig
impl RefUnwindSafe for AgentProviderConfig
impl Send for AgentProviderConfig
impl Sync for AgentProviderConfig
impl Unpin for AgentProviderConfig
impl UnsafeUnpin for AgentProviderConfig
impl UnwindSafe for AgentProviderConfig
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