pub struct Tool {
pub tool_type: String,
pub function: FunctionTool,
}
Expand description
Represents a tool that can be used in chat
Fields§
§tool_type: String
The type of tool (e.g. “function”)
function: FunctionTool
The function definition if this is a function 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 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