pub struct McpClient { /* private fields */ }Implementations§
Source§impl McpClient
impl McpClient
pub fn new(server_url: String) -> Self
pub async fn list_tools(&self) -> AgentResult<Vec<McpToolInfo>>
pub async fn call_tool( &self, tool_name: &str, arguments: &Value, ) -> AgentResult<Value>
Auto Trait Implementations§
impl Freeze for McpClient
impl !RefUnwindSafe for McpClient
impl Send for McpClient
impl Sync for McpClient
impl Unpin for McpClient
impl UnsafeUnpin for McpClient
impl !UnwindSafe for McpClient
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