pub struct BotConfig {
pub model: String,
pub temperature: f32,
pub max_tokens: usize,
pub timeout: Duration,
pub max_retries: u32,
pub enable_logging: bool,
pub enable_cost_tracking: bool,
pub context_config: ContextConfig,
pub pipeline_config: PipelineConfig,
pub plugin_config: PluginConfig,
}Expand description
Main bot configuration
Fields§
§model: StringAI model to use for generation
temperature: f32Temperature for generation (0.0 to 1.0)
max_tokens: usizeMaximum tokens to generate
timeout: DurationRequest timeout
max_retries: u32Number of retries for failed requests
enable_logging: boolEnable request logging
enable_cost_tracking: boolEnable cost tracking
context_config: ContextConfigContext configuration
pipeline_config: PipelineConfigPipeline configuration
plugin_config: PluginConfigPlugin configuration
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for BotConfig
impl<'de> Deserialize<'de> for BotConfig
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
Source§impl<'v_a> ValidateArgs<'v_a> for BotConfig
impl<'v_a> ValidateArgs<'v_a> for BotConfig
Auto Trait Implementations§
impl Freeze for BotConfig
impl RefUnwindSafe for BotConfig
impl Send for BotConfig
impl Sync for BotConfig
impl Unpin for BotConfig
impl UnwindSafe for BotConfig
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