pub struct ResponseMcpCallCompletedEvent {
pub item_id: String,
pub output_index: i64,
pub sequence_number: i64,
pub type_: ResponseMcpCallCompletedEventType,
}Expand description
Emitted when an MCP tool call has completed successfully.
JSON schema
{
"title": "ResponseMCPCallCompletedEvent",
"description": "Emitted when an MCP tool call has completed successfully.\n",
"type": "object",
"required": [
"item_id",
"output_index",
"sequence_number",
"type"
],
"properties": {
"item_id": {
"description": "The ID of the MCP tool call item that completed.",
"type": "string"
},
"output_index": {
"description": "The index of the output item that completed.",
"type": "integer"
},
"sequence_number": {
"description": "The sequence number of this event.",
"type": "integer"
},
"type": {
"description": "The type of the event. Always 'response.mcp_call.completed'.",
"type": "string",
"enum": [
"response.mcp_call.completed"
],
"x-stainless-const": true
}
},
"x-oaiMeta": {
"group": "responses",
"name": "response.mcp_call.completed"
}
}Fields§
§item_id: StringThe ID of the MCP tool call item that completed.
output_index: i64The index of the output item that completed.
sequence_number: i64The sequence number of this event.
type_: ResponseMcpCallCompletedEventTypeThe type of the event. Always ‘response.mcp_call.completed’.
Trait Implementations§
Source§impl Clone for ResponseMcpCallCompletedEvent
impl Clone for ResponseMcpCallCompletedEvent
Source§fn clone(&self) -> ResponseMcpCallCompletedEvent
fn clone(&self) -> ResponseMcpCallCompletedEvent
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<'de> Deserialize<'de> for ResponseMcpCallCompletedEvent
impl<'de> Deserialize<'de> for ResponseMcpCallCompletedEvent
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 From<ResponseMcpCallCompletedEvent> for ResponseStreamEvent
impl From<ResponseMcpCallCompletedEvent> for ResponseStreamEvent
Source§fn from(value: ResponseMcpCallCompletedEvent) -> Self
fn from(value: ResponseMcpCallCompletedEvent) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ResponseMcpCallCompletedEvent
impl RefUnwindSafe for ResponseMcpCallCompletedEvent
impl Send for ResponseMcpCallCompletedEvent
impl Sync for ResponseMcpCallCompletedEvent
impl Unpin for ResponseMcpCallCompletedEvent
impl UnsafeUnpin for ResponseMcpCallCompletedEvent
impl UnwindSafe for ResponseMcpCallCompletedEvent
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