pub struct ConversationConfig {
pub max_turns: usize,
pub model: String,
pub max_tokens: u32,
pub tool_choice: Option<ToolChoice>,
pub auto_execute_tools: bool,
pub execution_config: ToolExecutionConfig,
}
Expand description
Configuration for tool conversations.
Fields§
§max_turns: usize
Maximum number of conversation turns.
model: String
Model to use for the conversation.
max_tokens: u32
Maximum tokens per response.
tool_choice: Option<ToolChoice>
Tool choice strategy.
auto_execute_tools: bool
Whether to automatically execute tools.
execution_config: ToolExecutionConfig
Tool execution configuration.
Trait Implementations§
Source§impl Clone for ConversationConfig
impl Clone for ConversationConfig
Source§fn clone(&self) -> ConversationConfig
fn clone(&self) -> ConversationConfig
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 ConversationConfig
impl Debug for ConversationConfig
Auto Trait Implementations§
impl Freeze for ConversationConfig
impl RefUnwindSafe for ConversationConfig
impl Send for ConversationConfig
impl Sync for ConversationConfig
impl Unpin for ConversationConfig
impl UnwindSafe for ConversationConfig
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