pub struct McpToolAdapter { /* private fields */ }Expand description
Wraps an MCP server tool as an AgentTool so it can be used by the agent.
Implementations§
Source§impl McpToolAdapter
impl McpToolAdapter
Trait Implementations§
Source§impl AgentTool for McpToolAdapter
impl AgentTool for McpToolAdapter
Source§fn description(&self) -> &str
fn description(&self) -> &str
Description for the LLM
Source§fn parameters_schema(&self) -> Value
fn parameters_schema(&self) -> Value
JSON Schema for parameters
Auto Trait Implementations§
impl Freeze for McpToolAdapter
impl !RefUnwindSafe for McpToolAdapter
impl Send for McpToolAdapter
impl Sync for McpToolAdapter
impl Unpin for McpToolAdapter
impl UnsafeUnpin for McpToolAdapter
impl !UnwindSafe for McpToolAdapter
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