pub struct BotConfigBuilder { /* private fields */ }Expand description
Builder for BotConfig
Implementations§
Source§impl BotConfigBuilder
impl BotConfigBuilder
Sourcepub fn temperature(self, temperature: f32) -> Self
pub fn temperature(self, temperature: f32) -> Self
Set the temperature
Sourcepub fn max_tokens(self, max_tokens: usize) -> Self
pub fn max_tokens(self, max_tokens: usize) -> Self
Set the maximum tokens
Sourcepub fn max_retries(self, max_retries: u32) -> Self
pub fn max_retries(self, max_retries: u32) -> Self
Set the maximum retries
Sourcepub fn enable_logging(self, enable: bool) -> Self
pub fn enable_logging(self, enable: bool) -> Self
Enable or disable logging
Sourcepub fn enable_cost_tracking(self, enable: bool) -> Self
pub fn enable_cost_tracking(self, enable: bool) -> Self
Enable or disable cost tracking
Sourcepub fn context_config(self, config: ContextConfig) -> Self
pub fn context_config(self, config: ContextConfig) -> Self
Set the context configuration
Sourcepub fn pipeline_config(self, config: PipelineConfig) -> Self
pub fn pipeline_config(self, config: PipelineConfig) -> Self
Set the pipeline configuration
Sourcepub fn plugin_config(self, config: PluginConfig) -> Self
pub fn plugin_config(self, config: PluginConfig) -> Self
Set the plugin configuration
Trait Implementations§
Source§impl Default for BotConfigBuilder
impl Default for BotConfigBuilder
Source§fn default() -> BotConfigBuilder
fn default() -> BotConfigBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for BotConfigBuilder
impl RefUnwindSafe for BotConfigBuilder
impl Send for BotConfigBuilder
impl Sync for BotConfigBuilder
impl Unpin for BotConfigBuilder
impl UnwindSafe for BotConfigBuilder
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