pub enum McpContent {
Listing {
server_name: String,
id: Option<String>,
tools: Vec<McpListedTool>,
error: Option<String>,
},
Call {
server_name: String,
call: ToolCall,
},
Result(ToolResult),
}Expand description
MCP discovery and execution history. Results reference the matching call’s server identity.
Variants§
Listing
Tools discovered on a server at this point in the conversation.
Fields
§
tools: Vec<McpListedTool>Discovered tools in the order reported by the server.
Call
A call executed by the backend’s MCP client.
Fields
Result(ToolResult)
Output from a backend-executed MCP call.
Trait Implementations§
Source§impl Clone for McpContent
impl Clone for McpContent
Source§fn clone(&self) -> McpContent
fn clone(&self) -> McpContent
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for McpContent
impl Debug for McpContent
Source§impl<'de> Deserialize<'de> for McpContent
impl<'de> Deserialize<'de> for McpContent
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for McpContent
impl PartialEq for McpContent
Source§impl Serialize for McpContent
impl Serialize for McpContent
impl StructuralPartialEq for McpContent
Auto Trait Implementations§
impl Freeze for McpContent
impl RefUnwindSafe for McpContent
impl Send for McpContent
impl Sync for McpContent
impl Unpin for McpContent
impl UnsafeUnpin for McpContent
impl UnwindSafe for McpContent
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