pub struct McpToolCallResponse {
pub content: Vec<Content5Inner>,
pub metadata: Option<Option<McpToolCallMetadata>>,
}Expand description
McpToolCallResponse : Response from calling an MCP tool. We override mcp_types.CallToolResult because: - Models only support content, not structuredContent at top level - Downstream consumers (le-chat, etc.) need structuredContent/isError/_meta via metadata SYNC: Keep in sync with Harmattan (orchestrator) for harmonized tool result processing.
Fields§
§content: Vec<Content5Inner>§metadata: Option<Option<McpToolCallMetadata>>Implementations§
Source§impl McpToolCallResponse
impl McpToolCallResponse
Sourcepub fn new(content: Vec<Content5Inner>) -> McpToolCallResponse
pub fn new(content: Vec<Content5Inner>) -> McpToolCallResponse
Response from calling an MCP tool. We override mcp_types.CallToolResult because: - Models only support content, not structuredContent at top level - Downstream consumers (le-chat, etc.) need structuredContent/isError/_meta via metadata SYNC: Keep in sync with Harmattan (orchestrator) for harmonized tool result processing.
Trait Implementations§
Source§impl Clone for McpToolCallResponse
impl Clone for McpToolCallResponse
Source§fn clone(&self) -> McpToolCallResponse
fn clone(&self) -> McpToolCallResponse
Returns a duplicate of the value. Read more
1.0.0 · 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 McpToolCallResponse
impl Debug for McpToolCallResponse
Source§impl Default for McpToolCallResponse
impl Default for McpToolCallResponse
Source§fn default() -> McpToolCallResponse
fn default() -> McpToolCallResponse
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for McpToolCallResponse
impl<'de> Deserialize<'de> for McpToolCallResponse
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 McpToolCallResponse
impl PartialEq for McpToolCallResponse
Source§impl Serialize for McpToolCallResponse
impl Serialize for McpToolCallResponse
impl StructuralPartialEq for McpToolCallResponse
Auto Trait Implementations§
impl Freeze for McpToolCallResponse
impl RefUnwindSafe for McpToolCallResponse
impl Send for McpToolCallResponse
impl Sync for McpToolCallResponse
impl Unpin for McpToolCallResponse
impl UnsafeUnpin for McpToolCallResponse
impl UnwindSafe for McpToolCallResponse
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