pub struct Tools { /* private fields */ }
Implementations§
Source§impl Tools
impl Tools
pub fn add_tool(&mut self, tool: impl Tool)
pub fn list_tools(&self) -> Vec<ToolDefinition>
pub fn call_tool(&self, request: CallToolRequest) -> CallToolResponse
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