ChatGPT · Schema

ResponseInputItem

AgentsAIChatGPTEmbeddingsFine-TuningGPT-4GPT-5Language ModelOpenAIRealtime

Properties

Name Type Description
role string The role of the input item.
content object The content of the input item. Can be a string or an array of content parts for multimodal input.
type string The type of the input item. Typically message for conversation messages, or specialized types like function_call_output.
id string The unique ID of the input item. Used for item_reference type.
call_id string The ID of the function call this output corresponds to. Required for function_call_output type.
output string The output of the function call. Required for function_call_output type.
status string The status of the input item.
View JSON Schema on GitHub

JSON Schema

chatgpt-responseinputitem-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/ResponseInputItem",
  "title": "ResponseInputItem",
  "type": "object",
  "required": [
    "role"
  ],
  "properties": {
    "role": {
      "type": "string",
      "description": "The role of the input item.",
      "enum": [
        "user",
        "assistant",
        "system",
        "developer"
      ],
      "example": "user"
    },
    "content": {
      "description": "The content of the input item. Can be a string or an array\nof content parts for multimodal input.\n",
      "oneOf": [
        {
          "type": "string"
        },
        {
          "type": "array",
          "items": {
            "$ref": "#/components/schemas/ResponseInputContentPart"
          }
        }
      ],
      "example": "example_value"
    },
    "type": {
      "type": "string",
      "description": "The type of the input item. Typically message for\nconversation messages, or specialized types like\nfunction_call_output.\n",
      "enum": [
        "message",
        "function_call_output",
        "item_reference"
      ],
      "example": "message"
    },
    "id": {
      "type": "string",
      "description": "The unique ID of the input item. Used for item_reference type.\n",
      "example": "abc123"
    },
    "call_id": {
      "type": "string",
      "description": "The ID of the function call this output corresponds to.\nRequired for function_call_output type.\n",
      "example": "500123"
    },
    "output": {
      "type": "string",
      "description": "The output of the function call. Required for\nfunction_call_output type.\n",
      "example": "example_value"
    },
    "status": {
      "type": "string",
      "description": "The status of the input item.",
      "enum": [
        "completed",
        "incomplete"
      ],
      "example": "completed"
    }
  }
}