Enum McpContent
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§
§impl Clone for McpContent
impl Clone for McpContent
§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 more§impl Debug for McpContent
impl Debug for McpContent
§impl<'de> Deserialize<'de> for McpContent
impl<'de> Deserialize<'de> for McpContent
§fn deserialize<__D>(
__deserializer: __D,
) -> Result<McpContent, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<McpContent, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
§impl PartialEq for McpContent
impl PartialEq for McpContent
§impl Serialize for McpContent
impl Serialize for McpContent
§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
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