pub struct SearchTools { /* private fields */ }
Expand description
A tool used to search tools on Unifai server.
Implementations§
Trait Implementations§
Source§impl Tool for SearchTools
impl Tool for SearchTools
Source§const NAME: &'static str = "search_services"
const NAME: &'static str = "search_services"
The name of the tool. This name should be unique.
Source§type Args = SearchToolsArgs
type Args = SearchToolsArgs
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 SearchTools
impl !RefUnwindSafe for SearchTools
impl Send for SearchTools
impl Sync for SearchTools
impl Unpin for SearchTools
impl !UnwindSafe for SearchTools
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