pub enum Tool {
Function {
name: String,
description: Option<String>,
parameters: Option<Value>,
strict: Option<bool>,
},
WebSearch,
}Expand description
A tool the model may call while generating a response.
Variants§
Function
A user-defined function.
Fields
§
name: StringThe name of the function. Must be non-empty, at most 128
characters, and match ^[a-zA-Z0-9_-]+$; names must be unique.
WebSearch
A server-side web search tool.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Tool
impl RefUnwindSafe for Tool
impl Send for Tool
impl Sync for Tool
impl Unpin for Tool
impl UnsafeUnpin for Tool
impl UnwindSafe for Tool
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