pub struct ConversationConfigBuilder { /* private fields */ }Expand description
Builder for creating conversation configurations.
Implementations§
Source§impl ConversationConfigBuilder
impl ConversationConfigBuilder
Sourcepub fn max_tokens(self, max_tokens: u32) -> Self
pub fn max_tokens(self, max_tokens: u32) -> Self
Set the maximum tokens per response.
Sourcepub fn tool_choice(self, tool_choice: ToolChoice) -> Self
pub fn tool_choice(self, tool_choice: ToolChoice) -> Self
Set the tool choice strategy.
Sourcepub fn auto_execute_tools(self, enabled: bool) -> Self
pub fn auto_execute_tools(self, enabled: bool) -> Self
Enable or disable automatic tool execution.
Sourcepub fn execution_config(self, config: ToolExecutionConfig) -> Self
pub fn execution_config(self, config: ToolExecutionConfig) -> Self
Set the tool execution configuration.
Sourcepub fn build(self) -> ConversationConfig
pub fn build(self) -> ConversationConfig
Build the configuration.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ConversationConfigBuilder
impl RefUnwindSafe for ConversationConfigBuilder
impl Send for ConversationConfigBuilder
impl Sync for ConversationConfigBuilder
impl Unpin for ConversationConfigBuilder
impl UnsafeUnpin for ConversationConfigBuilder
impl UnwindSafe for ConversationConfigBuilder
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