pub struct ToolOptions<'a> {
pub extra: Option<&'a [ToolExtra]>,
pub rank: Option<usize>,
pub description_chars: Option<usize>,
pub multi: bool,
pub max_error: Option<f64>,
pub selection: MultiOptions<'a>,
}Expand description
Tool routing options. Definitions are normalized and validated by the server.
Fields§
§extra: Option<&'a [ToolExtra]>Non-tool choices appended to definitions. None keeps the server default (all three for a single tool,
none in multi mode); Some(&[]) sends no non-tool choice.
rank: Option<usize>Number of ranked candidates.
description_chars: Option<usize>Tool-description truncation cap. None keeps the server default (300); Some(0) disables truncation.
multi: boolSelect a set of tools.
max_error: Option<f64>Certified error target.
selection: MultiOptions<'a>Multi selection rules, only valid in multi mode.
Trait Implementations§
Source§impl<'a> Clone for ToolOptions<'a>
impl<'a> Clone for ToolOptions<'a>
impl<'a> Copy for ToolOptions<'a>
Source§impl<'a> Debug for ToolOptions<'a>
impl<'a> Debug for ToolOptions<'a>
Auto Trait Implementations§
impl<'a> Freeze for ToolOptions<'a>
impl<'a> RefUnwindSafe for ToolOptions<'a>
impl<'a> Send for ToolOptions<'a>
impl<'a> Sync for ToolOptions<'a>
impl<'a> Unpin for ToolOptions<'a>
impl<'a> UnsafeUnpin for ToolOptions<'a>
impl<'a> UnwindSafe for ToolOptions<'a>
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