pub enum McpToolCallError {
ProtocolError {
code: i64,
message: String,
},
ToolExecutionError {
content: Value,
},
HttpError {
code: i64,
message: String,
},
}Expand description
Structured mcp_call.error: a type-tagged union of protocol,
tool-execution, and HTTP failures. OpenAI removed the legacy plain-string
shape from the wire; stored/replayed string errors still deserialize via
[mcp_call_error_compat].
Variants§
Implementations§
Trait Implementations§
Source§impl Clone for McpToolCallError
impl Clone for McpToolCallError
Source§fn clone(&self) -> McpToolCallError
fn clone(&self) -> McpToolCallError
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 McpToolCallError
impl Debug for McpToolCallError
Source§impl<'de> Deserialize<'de> for McpToolCallError
impl<'de> Deserialize<'de> for McpToolCallError
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 JsonSchema for McpToolCallError
impl JsonSchema for McpToolCallError
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl PartialEq for McpToolCallError
impl PartialEq for McpToolCallError
Source§impl Serialize for McpToolCallError
impl Serialize for McpToolCallError
impl StructuralPartialEq for McpToolCallError
Auto Trait Implementations§
impl Freeze for McpToolCallError
impl RefUnwindSafe for McpToolCallError
impl Send for McpToolCallError
impl Sync for McpToolCallError
impl Unpin for McpToolCallError
impl UnsafeUnpin for McpToolCallError
impl UnwindSafe for McpToolCallError
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