pub struct CallTool { /* private fields */ }
Expand description
A tool used to call specific tool on Unifai server.
Implementations§
Trait Implementations§
Source§impl Tool for CallTool
impl Tool for CallTool
Source§type Args = CallToolArgs
type Args = CallToolArgs
The arguments type of the tool.
Source§async fn definition(&self, _prompt: String) -> ToolDefinition
async fn definition(&self, _prompt: String) -> ToolDefinition
A method returning the tool definition. The user prompt can be used to
tailor the definition to the specific use case.
Auto Trait Implementations§
impl Freeze for CallTool
impl !RefUnwindSafe for CallTool
impl Send for CallTool
impl Sync for CallTool
impl Unpin for CallTool
impl !UnwindSafe for CallTool
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