pub struct ToolConfig {
pub tools: Option<Box<[Tool]>>,
pub tool_choice: Option<ToolChoice>,
pub parallel_tool_calls: Option<bool>,
}Expand description
Configuration for tool calling behavior
Fields§
§tools: Option<Box<[Tool]>>Available tools for the model to call
tool_choice: Option<ToolChoice>Strategy for choosing which tools to call
parallel_tool_calls: Option<bool>Whether to allow parallel tool calls (default: true)
Trait Implementations§
Source§impl Clone for ToolConfig
impl Clone for ToolConfig
Source§fn clone(&self) -> ToolConfig
fn clone(&self) -> ToolConfig
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 ToolConfig
impl Debug for ToolConfig
Source§impl PartialEq for ToolConfig
impl PartialEq for ToolConfig
impl StructuralPartialEq for ToolConfig
Auto Trait Implementations§
impl Freeze for ToolConfig
impl RefUnwindSafe for ToolConfig
impl Send for ToolConfig
impl Sync for ToolConfig
impl Unpin for ToolConfig
impl UnwindSafe for ToolConfig
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