pub struct AgentConfig {Show 14 fields
pub openai_api_key: Option<String>,
pub anthropic_api_key: Option<String>,
pub bedrock: Option<BedrockConfig>,
pub bedrock_configured: Option<bool>,
pub default_provider: String,
pub default_model: Option<String>,
pub profiles: HashMap<String, Profile>,
pub active_profile: Option<String>,
pub openai_profiles: HashMap<String, OpenAIProfile>,
pub openai_active_profile: Option<String>,
pub anthropic_profiles: HashMap<String, AnthropicProfile>,
pub anthropic_active_profile: Option<String>,
pub bedrock_profiles: HashMap<String, BedrockConfig>,
pub bedrock_active_profile: Option<String>,
}Expand description
Agent/Chat configuration
Fields§
§openai_api_key: Option<String>OpenAI API key (legacy, use profiles instead)
anthropic_api_key: Option<String>Anthropic API key (legacy, use profiles instead)
bedrock: Option<BedrockConfig>AWS Bedrock configuration (legacy, use profiles instead)
bedrock_configured: Option<bool>AWS Bedrock configured flag (legacy)
default_provider: StringDefault provider (openai, anthropic, or bedrock)
default_model: Option<String>Default model
profiles: HashMap<String, Profile>Named profiles containing all provider settings
active_profile: Option<String>Currently active profile name
openai_profiles: HashMap<String, OpenAIProfile>§openai_active_profile: Option<String>§anthropic_profiles: HashMap<String, AnthropicProfile>§anthropic_active_profile: Option<String>§bedrock_profiles: HashMap<String, BedrockConfig>§bedrock_active_profile: Option<String>Trait Implementations§
Source§impl Clone for AgentConfig
impl Clone for AgentConfig
Source§fn clone(&self) -> AgentConfig
fn clone(&self) -> AgentConfig
Returns a duplicate of the value. Read more
1.0.0 · 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 AgentConfig
impl Debug for AgentConfig
Source§impl Default for AgentConfig
impl Default for AgentConfig
Source§fn default() -> AgentConfig
fn default() -> AgentConfig
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for AgentConfig
impl<'de> Deserialize<'de> for AgentConfig
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 AgentConfig
impl RefUnwindSafe for AgentConfig
impl Send for AgentConfig
impl Sync for AgentConfig
impl Unpin for AgentConfig
impl UnwindSafe for AgentConfig
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<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreCreates a shared type from an unshared type.