pub struct ToolApi { /* private fields */ }Expand description
API layer for tool-related operations
Implementations§
Source§impl ToolApi
impl ToolApi
pub fn new() -> Self
Sourcepub async fn get_tool_description(&self, tool: &str) -> Result<String>
pub async fn get_tool_description(&self, tool: &str) -> Result<String>
Get description for a tool
Sourcepub async fn check_tool_availability(&self, tool: &str) -> Result<bool>
pub async fn check_tool_availability(&self, tool: &str) -> Result<bool>
Check tool availability
Sourcepub async fn get_tool_metadata(&self, tool: &str) -> Result<ToolMetadata>
pub async fn get_tool_metadata(&self, tool: &str) -> Result<ToolMetadata>
Get tool metadata
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ToolApi
impl !RefUnwindSafe for ToolApi
impl Send for ToolApi
impl Sync for ToolApi
impl Unpin for ToolApi
impl !UnwindSafe for ToolApi
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