ChatGPT · Schema
ResponseOutputItem
AgentsAIChatGPTEmbeddingsFine-TuningGPT-4GPT-5Language ModelOpenAIRealtime
Properties
| Name | Type | Description |
|---|---|---|
| type | string | The type of the output item. |
| id | string | The unique ID of the output item. |
| role | string | The role of the output item. |
| status | string | The status of the output item. |
| content | array | The content of the output message. Present when type is message. |
| name | string | The name of the function being called. Present when type is function_call. |
| call_id | string | The unique ID of the function call. Present when type is function_call. |
| arguments | string | The arguments to the function call in JSON format. Present when type is function_call. |
| summary | array | A summary of the reasoning performed by the model. Present when type is reasoning. |
JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "#/components/schemas/ResponseOutputItem",
"title": "ResponseOutputItem",
"type": "object",
"required": [
"type"
],
"properties": {
"type": {
"type": "string",
"description": "The type of the output item.",
"enum": [
"message",
"function_call",
"web_search_call",
"file_search_call",
"computer_call",
"code_interpreter_call",
"reasoning",
"mcp_call",
"image_generation_call",
"mcp_list_tools",
"mcp_approval_request"
],
"example": "message"
},
"id": {
"type": "string",
"description": "The unique ID of the output item.",
"example": "abc123"
},
"role": {
"type": "string",
"description": "The role of the output item.",
"enum": [
"assistant"
],
"example": "assistant"
},
"status": {
"type": "string",
"description": "The status of the output item.",
"enum": [
"completed",
"in_progress",
"incomplete"
],
"example": "completed"
},
"content": {
"type": "array",
"description": "The content of the output message. Present when type\nis message.\n",
"items": {
"$ref": "#/components/schemas/ResponseOutputContentPart"
},
"example": []
},
"name": {
"type": "string",
"description": "The name of the function being called. Present when type\nis function_call.\n",
"example": "Example Title"
},
"call_id": {
"type": "string",
"description": "The unique ID of the function call. Present when type is\nfunction_call.\n",
"example": "500123"
},
"arguments": {
"type": "string",
"description": "The arguments to the function call in JSON format. Present\nwhen type is function_call.\n",
"example": "example_value"
},
"summary": {
"type": "array",
"description": "A summary of the reasoning performed by the model. Present\nwhen type is reasoning.\n",
"items": {
"type": "object",
"properties": {
"type": {
"type": "string",
"enum": [
"summary_text"
]
},
"text": {
"type": "string"
}
}
},
"example": []
}
}
}