pub struct ToolLoopConfig {
pub max_tool_rounds: usize,
pub max_tool_calls_per_round: usize,
}Expand description
Bounds on the multi-round tool-call loop.
Fields§
§max_tool_rounds: usizeMaximum number of tool rounds before the loop fails with an error.
max_tool_calls_per_round: usizeMaximum number of tool calls accepted within a single round.
Trait Implementations§
Source§impl Clone for ToolLoopConfig
impl Clone for ToolLoopConfig
Source§fn clone(&self) -> ToolLoopConfig
fn clone(&self) -> ToolLoopConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ToolLoopConfig
Source§impl Debug for ToolLoopConfig
impl Debug for ToolLoopConfig
Source§impl Default for ToolLoopConfig
impl Default for ToolLoopConfig
impl Eq for ToolLoopConfig
Source§impl PartialEq for ToolLoopConfig
impl PartialEq for ToolLoopConfig
Source§fn eq(&self, other: &ToolLoopConfig) -> bool
fn eq(&self, other: &ToolLoopConfig) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ToolLoopConfig
Auto Trait Implementations§
impl Freeze for ToolLoopConfig
impl RefUnwindSafe for ToolLoopConfig
impl Send for ToolLoopConfig
impl Sync for ToolLoopConfig
impl Unpin for ToolLoopConfig
impl UnsafeUnpin for ToolLoopConfig
impl UnwindSafe for ToolLoopConfig
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