pub struct AiConfig {
pub default_provider: String,
pub default_max_output_tokens: Option<u32>,
pub sampling: SamplingConfig,
pub providers: HashMap<String, AiProviderConfig>,
pub tool_models: HashMap<String, ToolModelSettings>,
pub mcp: McpConfig,
pub history: HistoryConfig,
}Available on crate feature
core only.Fields§
§default_provider: String§default_max_output_tokens: Option<u32>§sampling: SamplingConfig§providers: HashMap<String, AiProviderConfig>§tool_models: HashMap<String, ToolModelSettings>§mcp: McpConfig§history: HistoryConfigTrait Implementations§
Source§impl<'de> Deserialize<'de> for AiConfig
impl<'de> Deserialize<'de> for AiConfig
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<AiConfig, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<AiConfig, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for AiConfig
impl Serialize for AiConfig
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl Freeze for AiConfig
impl RefUnwindSafe for AiConfig
impl Send for AiConfig
impl Sync for AiConfig
impl Unpin for AiConfig
impl UnsafeUnpin for AiConfig
impl UnwindSafe for AiConfig
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