pub struct ToolList { /* private fields */ }
Expand description
A list of tools that can be called by the assistant.
Implementations§
Source§impl ToolList
impl ToolList
Sourcepub fn definitions(&self) -> Vec<ToolDefinition>
pub fn definitions(&self) -> Vec<ToolDefinition>
List of tool definitions.
Sourcepub fn call(&self, tool_use: ToolUse) -> Result<ToolResult, ToolCallError>
pub fn call(&self, tool_use: ToolUse) -> Result<ToolResult, ToolCallError>
Calls a tool in this list.
Auto Trait Implementations§
impl Freeze for ToolList
impl !RefUnwindSafe for ToolList
impl !Send for ToolList
impl !Sync for ToolList
impl Unpin for ToolList
impl !UnwindSafe for ToolList
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