pub struct McpCall {
pub call_type: String,
pub name: String,
pub server_label: String,
pub arguments: String,
pub output: String,
pub id: Option<String>,
pub error: Option<String>,
pub status: Option<String>,
}Expand description
The output of a MCP tool call.
Fields§
§call_type: StringThe type of the MCP tool call. Always mcp_call.
name: StringThe name of the tool that was run.
server_label: StringThe label of the MCP server running the tool.
arguments: StringA JSON string of the arguments passed to the tool.
output: StringThe output of the MCP tool call.
id: Option<String>The unique ID of the MCP tool call.
error: Option<String>The error message of the MCP tool call.
status: Option<String>The status of the MCP tool call.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for McpCall
impl<'de> Deserialize<'de> for McpCall
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
impl StructuralPartialEq for McpCall
Auto Trait Implementations§
impl Freeze for McpCall
impl RefUnwindSafe for McpCall
impl Send for McpCall
impl Sync for McpCall
impl Unpin for McpCall
impl UnwindSafe for McpCall
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