pub struct Tools {
pub function_declarations: Option<Vec<FunctionDeclaration>>,
pub google_search: Option<GoogleSearchTool>,
pub code_execution: Option<CodeExecutionTool>,
}
Expand description
Tool details that the model may use to generate response
A Tool
is a piece of code that enables the system to interact with external systems to perform
an action, or set of actions, outside of knowledge and scope of the model.
Fields§
§function_declarations: Option<Vec<FunctionDeclaration>>
§google_search: Option<GoogleSearchTool>
§code_execution: Option<CodeExecutionTool>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Tools
impl RefUnwindSafe for Tools
impl Send for Tools
impl Sync for Tools
impl Unpin for Tools
impl UnwindSafe for Tools
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