> ## Documentation Index
> Fetch the complete documentation index at: https://friendli.ai/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Container Responses Chunk Object

> Schema reference for the streamed chunk returned by Friendli Container when streaming the responses API.

Represents a streamed chunk returned when streaming the responses API, based on the provided input.

<ResponseExample>
  ```json Response theme={null}
  event: response.created
  data: {
    "type": "response.created",
    "sequence_number": 0,
    "response": {
      "id": "resp_4b71d12c86d94e719c7e3984a7bb7941",
      "object": "response",
      "created_at": 1735722153,
      "status": "in_progress",
      "output": []
    }
  }

  event: response.in_progress
  data: {
    "type": "response.in_progress",
    "sequence_number": 1,
    "response": {
      "id": "resp_4b71d12c86d94e719c7e3984a7bb7941",
      "object": "response",
      "created_at": 1735722153,
      "status": "in_progress",
      "output": []
    }
  }

  event: response.output_item.added
  data: {
    "type": "response.output_item.added",
    "sequence_number": 2,
    "output_index": 0,
    "item": {
      "id": "msg_4b71d12c86d94e719c7e3984a7bb7941",
      "type": "message",
      "status": "in_progress",
      "role": "assistant",
      "content": []
    }
  }

  event: response.content_part.added
  data: {
    "type": "response.content_part.added",
    "sequence_number": 3,
    "item_id": "msg_4b71d12c86d94e719c7e3984a7bb7941",
    "output_index": 0,
    "content_index": 0,
    "part": { "type": "output_text", "text": "" }
  }

  event: response.output_text.delta
  data: {
    "type": "response.output_text.delta",
    "sequence_number": 4,
    "item_id": "msg_4b71d12c86d94e719c7e3984a7bb7941",
    "output_index": 0,
    "content_index": 0,
    "delta": "Hello"
  }

  ...

  event: response.output_text.done
  data: {
    "type": "response.output_text.done",
    "sequence_number": 6,
    "item_id": "msg_4b71d12c86d94e719c7e3984a7bb7941",
    "output_index": 0,
    "content_index": 0,
    "text": "Hello there, how may I assist you today?"
  }

  event: response.content_part.done
  data: {
    "type": "response.content_part.done",
    "sequence_number": 7,
    "item_id": "msg_4b71d12c86d94e719c7e3984a7bb7941",
    "output_index": 0,
    "content_index": 0,
    "part": {
      "type": "output_text",
      "text": "Hello there, how may I assist you today?"
    }
  }

  event: response.output_item.done
  data: {
    "type": "response.output_item.done",
    "sequence_number": 8,
    "output_index": 0,
    "item": {
      "id": "msg_4b71d12c86d94e719c7e3984a7bb7941",
      "type": "message",
      "status": "completed",
      "role": "assistant",
      "content": [
        {
          "type": "output_text",
          "text": "Hello there, how may I assist you today?"
        }
      ]
    }
  }

  event: response.completed
  data: {
    "type": "response.completed",
    "sequence_number": 9,
    "response": {
      "id": "resp_4b71d12c86d94e719c7e3984a7bb7941",
      "object": "response",
      "created_at": 1735722153,
      "status": "completed",
      "output": [
        {
          "id": "msg_4b71d12c86d94e719c7e3984a7bb7941",
          "type": "message",
          "status": "completed",
          "role": "assistant",
          "content": [
            {
              "type": "output_text",
              "text": "Hello there, how may I assist you today?"
            }
          ]
        }
      ],
      "usage": {
        "input_tokens": 9,
        "input_tokens_details": { "cached_tokens": 0 },
        "output_tokens": 11,
        "output_tokens_details": { "reasoning_tokens": 0 },
        "total_tokens": 20
      }
    }
  }
  ```
</ResponseExample>

## Events

### `event: response.created` chunk object

<ResponseField name="type" type="string" required="true">
  The type of the event. Always `response.created`.
</ResponseField>

<ResponseField name="response" type="object" required="true">
  The response that was created.

  <Expandable title="child attributes">
    <ResponseField name="id" type="string" required="true">
      Unique identifier for this response.
    </ResponseField>

    <ResponseField name="object" type="string" required="true">
      The object type of this resource - always set to `response`.
    </ResponseField>

    <ResponseField name="created_at" type="integer" required="true">
      Unix timestamp (in seconds) of when this response was created.
    </ResponseField>

    <ResponseField name="status" type="enum<string>" required="true">
      The status of the response generation. One of `completed`, `failed`, `in_progress`, or `incomplete`.

      Available options: `in_progress`, `completed`, `incomplete`, `failed`
    </ResponseField>

    <ResponseField name="output" type="object[]" required="true">
      An array of content items generated by the model.

      The length and order of items in the `output` array is dependent on the model's response.
    </ResponseField>

    <ResponseField name="usage" type="object | null">
      Token usage details including input tokens, output tokens, a breakdown of output tokens, and the total tokens used.

      <Expandable title="child attributes">
        <ResponseField name="input_tokens" type="integer" required="true">
          The number of input tokens.
        </ResponseField>

        <ResponseField name="input_tokens_details" type="object" required="true">
          A detailed breakdown of the input tokens.

          <Expandable title="child attributes">
            <ResponseField name="cached_tokens" type="integer" required="true">
              The number of tokens that were retrieved from the cache.
            </ResponseField>
          </Expandable>
        </ResponseField>

        <ResponseField name="output_tokens" type="integer" required="true">
          The number of output tokens.
        </ResponseField>

        <ResponseField name="output_tokens_details" type="object" required="true">
          A detailed breakdown of the output tokens.

          <Expandable title="child attributes">
            <ResponseField name="reasoning_tokens" type="integer" required="true">
              The number of reasoning tokens.
            </ResponseField>
          </Expandable>
        </ResponseField>

        <ResponseField name="total_tokens" type="integer" required="true">
          The total number of tokens used.
        </ResponseField>
      </Expandable>
    </ResponseField>

    <ResponseField name="incomplete_details" type="object | null">
      Details about why the response is incomplete.

      <Expandable title="child attributes">
        <ResponseField name="reason" type="enum<string>">
          The reason why the response is incomplete.

          Available options: `max_output_tokens`, `content_filter`
        </ResponseField>
      </Expandable>
    </ResponseField>

    <ResponseField name="model" type="string | null">
      The model used to generate the response.
    </ResponseField>
  </Expandable>
</ResponseField>

<ResponseField name="sequence_number" type="integer" required="true">
  The sequence number for this event.
</ResponseField>

### `event: response.in_progress` chunk object

<ResponseField name="type" type="string" required="true">
  The type of the event. Always `response.in_progress`.
</ResponseField>

<ResponseField name="response" type="object" required="true">
  The response that is in progress.

  <Expandable title="child attributes">
    <ResponseField name="id" type="string" required="true">
      Unique identifier for this response.
    </ResponseField>

    <ResponseField name="object" type="string" required="true">
      The object type of this resource - always set to `response`.
    </ResponseField>

    <ResponseField name="created_at" type="integer" required="true">
      Unix timestamp (in seconds) of when this response was created.
    </ResponseField>

    <ResponseField name="status" type="enum<string>" required="true">
      The status of the response generation. One of `completed`, `failed`, `in_progress`, or `incomplete`.

      Available options: `in_progress`, `completed`, `incomplete`, `failed`
    </ResponseField>

    <ResponseField name="output" type="object[]" required="true">
      An array of content items generated by the model.

      The length and order of items in the `output` array is dependent on the model's response.
    </ResponseField>

    <ResponseField name="usage" type="object | null">
      Token usage details including input tokens, output tokens, a breakdown of output tokens, and the total tokens used.

      <Expandable title="child attributes">
        <ResponseField name="input_tokens" type="integer" required="true">
          The number of input tokens.
        </ResponseField>

        <ResponseField name="input_tokens_details" type="object" required="true">
          A detailed breakdown of the input tokens.

          <Expandable title="child attributes">
            <ResponseField name="cached_tokens" type="integer" required="true">
              The number of tokens that were retrieved from the cache.
            </ResponseField>
          </Expandable>
        </ResponseField>

        <ResponseField name="output_tokens" type="integer" required="true">
          The number of output tokens.
        </ResponseField>

        <ResponseField name="output_tokens_details" type="object" required="true">
          A detailed breakdown of the output tokens.

          <Expandable title="child attributes">
            <ResponseField name="reasoning_tokens" type="integer" required="true">
              The number of reasoning tokens.
            </ResponseField>
          </Expandable>
        </ResponseField>

        <ResponseField name="total_tokens" type="integer" required="true">
          The total number of tokens used.
        </ResponseField>
      </Expandable>
    </ResponseField>

    <ResponseField name="incomplete_details" type="object | null">
      Details about why the response is incomplete.

      <Expandable title="child attributes">
        <ResponseField name="reason" type="enum<string>">
          The reason why the response is incomplete.

          Available options: `max_output_tokens`, `content_filter`
        </ResponseField>
      </Expandable>
    </ResponseField>

    <ResponseField name="model" type="string | null">
      The model used to generate the response.
    </ResponseField>
  </Expandable>
</ResponseField>

<ResponseField name="sequence_number" type="integer" required="true">
  The sequence number of this event.
</ResponseField>

### `event: response.completed` chunk object

<ResponseField name="type" type="string" required="true">
  The type of the event. Always `response.completed`.
</ResponseField>

<ResponseField name="response" type="object" required="true">
  Properties of the completed response.

  <Expandable title="child attributes">
    <ResponseField name="id" type="string" required="true">
      Unique identifier for this response.
    </ResponseField>

    <ResponseField name="object" type="string" required="true">
      The object type of this resource - always set to `response`.
    </ResponseField>

    <ResponseField name="created_at" type="integer" required="true">
      Unix timestamp (in seconds) of when this response was created.
    </ResponseField>

    <ResponseField name="status" type="enum<string>" required="true">
      The status of the response generation. One of `completed`, `failed`, `in_progress`, or `incomplete`.

      Available options: `in_progress`, `completed`, `incomplete`, `failed`
    </ResponseField>

    <ResponseField name="output" type="object[]" required="true">
      An array of content items generated by the model.

      The length and order of items in the `output` array is dependent on the model's response.
    </ResponseField>

    <ResponseField name="usage" type="object | null">
      Token usage details including input tokens, output tokens, a breakdown of output tokens, and the total tokens used.

      <Expandable title="child attributes">
        <ResponseField name="input_tokens" type="integer" required="true">
          The number of input tokens.
        </ResponseField>

        <ResponseField name="input_tokens_details" type="object" required="true">
          A detailed breakdown of the input tokens.

          <Expandable title="child attributes">
            <ResponseField name="cached_tokens" type="integer" required="true">
              The number of tokens that were retrieved from the cache.
            </ResponseField>
          </Expandable>
        </ResponseField>

        <ResponseField name="output_tokens" type="integer" required="true">
          The number of output tokens.
        </ResponseField>

        <ResponseField name="output_tokens_details" type="object" required="true">
          A detailed breakdown of the output tokens.

          <Expandable title="child attributes">
            <ResponseField name="reasoning_tokens" type="integer" required="true">
              The number of reasoning tokens.
            </ResponseField>
          </Expandable>
        </ResponseField>

        <ResponseField name="total_tokens" type="integer" required="true">
          The total number of tokens used.
        </ResponseField>
      </Expandable>
    </ResponseField>

    <ResponseField name="incomplete_details" type="object | null">
      Details about why the response is incomplete.

      <Expandable title="child attributes">
        <ResponseField name="reason" type="enum<string>">
          The reason why the response is incomplete.

          Available options: `max_output_tokens`, `content_filter`
        </ResponseField>
      </Expandable>
    </ResponseField>

    <ResponseField name="model" type="string | null">
      The model used to generate the response.
    </ResponseField>
  </Expandable>
</ResponseField>

<ResponseField name="sequence_number" type="integer" required="true">
  The sequence number for this event.
</ResponseField>

### `event: response.failed` chunk object

<ResponseField name="type" type="string" required="true">
  The type of the event. Always `response.failed`.
</ResponseField>

<ResponseField name="response" type="object" required="true">
  The response that failed.

  <Expandable title="child attributes">
    <ResponseField name="id" type="string" required="true">
      Unique identifier for this response.
    </ResponseField>

    <ResponseField name="object" type="string" required="true">
      The object type of this resource - always set to `response`.
    </ResponseField>

    <ResponseField name="created_at" type="integer" required="true">
      Unix timestamp (in seconds) of when this response was created.
    </ResponseField>

    <ResponseField name="status" type="enum<string>" required="true">
      The status of the response generation. One of `completed`, `failed`, `in_progress`, or `incomplete`.

      Available options: `in_progress`, `completed`, `incomplete`, `failed`
    </ResponseField>

    <ResponseField name="output" type="object[]" required="true">
      An array of content items generated by the model.

      The length and order of items in the `output` array is dependent on the model's response.
    </ResponseField>

    <ResponseField name="usage" type="object | null">
      Token usage details including input tokens, output tokens, a breakdown of output tokens, and the total tokens used.

      <Expandable title="child attributes">
        <ResponseField name="input_tokens" type="integer" required="true">
          The number of input tokens.
        </ResponseField>

        <ResponseField name="input_tokens_details" type="object" required="true">
          A detailed breakdown of the input tokens.

          <Expandable title="child attributes">
            <ResponseField name="cached_tokens" type="integer" required="true">
              The number of tokens that were retrieved from the cache.
            </ResponseField>
          </Expandable>
        </ResponseField>

        <ResponseField name="output_tokens" type="integer" required="true">
          The number of output tokens.
        </ResponseField>

        <ResponseField name="output_tokens_details" type="object" required="true">
          A detailed breakdown of the output tokens.

          <Expandable title="child attributes">
            <ResponseField name="reasoning_tokens" type="integer" required="true">
              The number of reasoning tokens.
            </ResponseField>
          </Expandable>
        </ResponseField>

        <ResponseField name="total_tokens" type="integer" required="true">
          The total number of tokens used.
        </ResponseField>
      </Expandable>
    </ResponseField>

    <ResponseField name="incomplete_details" type="object | null">
      Details about why the response is incomplete.

      <Expandable title="child attributes">
        <ResponseField name="reason" type="enum<string>">
          The reason why the response is incomplete.

          Available options: `max_output_tokens`, `content_filter`
        </ResponseField>
      </Expandable>
    </ResponseField>

    <ResponseField name="model" type="string | null">
      The model used to generate the response.
    </ResponseField>
  </Expandable>
</ResponseField>

<ResponseField name="sequence_number" type="integer" required="true">
  The sequence number of this event.
</ResponseField>

### `event: response.incomplete` chunk object

<ResponseField name="type" type="string" required="true">
  The type of the event. Always `response.incomplete`.
</ResponseField>

<ResponseField name="response" type="object" required="true">
  The response that was incomplete.

  <Expandable title="child attributes">
    <ResponseField name="id" type="string" required="true">
      Unique identifier for this response.
    </ResponseField>

    <ResponseField name="object" type="string" required="true">
      The object type of this resource - always set to `response`.
    </ResponseField>

    <ResponseField name="created_at" type="integer" required="true">
      Unix timestamp (in seconds) of when this response was created.
    </ResponseField>

    <ResponseField name="status" type="enum<string>" required="true">
      The status of the response generation. One of `completed`, `failed`, `in_progress`, or `incomplete`.

      Available options: `in_progress`, `completed`, `incomplete`, `failed`
    </ResponseField>

    <ResponseField name="output" type="object[]" required="true">
      An array of content items generated by the model.

      The length and order of items in the `output` array is dependent on the model's response.
    </ResponseField>

    <ResponseField name="usage" type="object | null">
      Token usage details including input tokens, output tokens, a breakdown of output tokens, and the total tokens used.

      <Expandable title="child attributes">
        <ResponseField name="input_tokens" type="integer" required="true">
          The number of input tokens.
        </ResponseField>

        <ResponseField name="input_tokens_details" type="object" required="true">
          A detailed breakdown of the input tokens.

          <Expandable title="child attributes">
            <ResponseField name="cached_tokens" type="integer" required="true">
              The number of tokens that were retrieved from the cache.
            </ResponseField>
          </Expandable>
        </ResponseField>

        <ResponseField name="output_tokens" type="integer" required="true">
          The number of output tokens.
        </ResponseField>

        <ResponseField name="output_tokens_details" type="object" required="true">
          A detailed breakdown of the output tokens.

          <Expandable title="child attributes">
            <ResponseField name="reasoning_tokens" type="integer" required="true">
              The number of reasoning tokens.
            </ResponseField>
          </Expandable>
        </ResponseField>

        <ResponseField name="total_tokens" type="integer" required="true">
          The total number of tokens used.
        </ResponseField>
      </Expandable>
    </ResponseField>

    <ResponseField name="incomplete_details" type="object | null">
      Details about why the response is incomplete.

      <Expandable title="child attributes">
        <ResponseField name="reason" type="enum<string>">
          The reason why the response is incomplete.

          Available options: `max_output_tokens`, `content_filter`
        </ResponseField>
      </Expandable>
    </ResponseField>

    <ResponseField name="model" type="string | null">
      The model used to generate the response.
    </ResponseField>
  </Expandable>
</ResponseField>

<ResponseField name="sequence_number" type="integer" required="true">
  The sequence number of this event.
</ResponseField>

### `event: response.output_item.added` chunk object

<ResponseField name="type" type="string" required="true">
  The type of the event. Always `response.output_item.added`.
</ResponseField>

<ResponseField name="output_index" type="integer" required="true">
  The index of the output item that was added.
</ResponseField>

<ResponseField name="item" type="object" required="true">
  The output item that was added.

  <Expandable title="message">
    An output message from the model.

    <ResponseField name="id" type="string" required="true">
      The unique ID of the output message.
    </ResponseField>

    <ResponseField name="content" type="object[]" required="true">
      The content of the output message.

      <Expandable title="child attributes">
        <ResponseField name="type" type="enum<string>" required="true">
          The type of the output text. Always `output_text`.

          Available options: `output_text`
        </ResponseField>

        <ResponseField name="text" type="string" required="true">
          The text output from the model.
        </ResponseField>
      </Expandable>
    </ResponseField>

    <ResponseField name="role" type="enum<string>" required="true">
      The role of the output message. Always `assistant`.

      Available options: `assistant`
    </ResponseField>

    <ResponseField name="status" type="enum<string>" required="true">
      The status of the message input. One of `in_progress`, `completed`, or `incomplete`. Populated when input items are returned via API.

      Available options: `in_progress`, `completed`, `incomplete`
    </ResponseField>

    <ResponseField name="type" type="enum<string>" required="true">
      The type of the output message. Always `message`.

      Available options: `message`
    </ResponseField>
  </Expandable>

  <Expandable title="reasoning">
    A description of the chain of thought used by a reasoning model while generating a response. Be sure to include these items in your `input` to the Responses API for subsequent turns of a conversation if you are manually managing context.

    <ResponseField name="id" type="string" required="true">
      The unique identifier of the reasoning content.
    </ResponseField>

    <ResponseField name="content" type="object[]">
      Reasoning text content.

      <Expandable title="child attributes">
        <ResponseField name="type" type="enum<string>" required="true">
          The type of the reasoning text. Always `reasoning_text`.

          Available options: `reasoning_text`
        </ResponseField>

        <ResponseField name="text" type="string" required="true">
          The reasoning text from the model.
        </ResponseField>
      </Expandable>
    </ResponseField>

    <ResponseField name="status" type="enum<string>">
      The status of the item. One of `in_progress`, `completed`, or `incomplete`. Populated when items are returned via API.

      Available options: `in_progress`, `completed`, `incomplete`
    </ResponseField>

    <ResponseField name="type" type="enum<string>" required="true">
      The type of the object. Always `reasoning`.

      Available options: `reasoning`
    </ResponseField>
  </Expandable>

  <Expandable title="function_call">
    A tool call to run a function.

    <ResponseField name="arguments" type="string" required="true">
      A JSON string of the arguments to pass to the function.
    </ResponseField>

    <ResponseField name="call_id" type="string" required="true">
      The unique ID of the function tool call generated by the model.
    </ResponseField>

    <ResponseField name="name" type="string" required="true">
      The name of the function to run.
    </ResponseField>

    <ResponseField name="type" type="enum<string>" required="true">
      The type of the function tool call. Always `function_call`.

      Available options: `function_call`
    </ResponseField>

    <ResponseField name="id" type="string">
      The unique ID of the function tool call.
    </ResponseField>

    <ResponseField name="status" type="enum<string>">
      The status of the item. One of `in_progress`, `completed`, or `incomplete`. Populated when items are returned via API.

      Available options: `in_progress`, `completed`, `incomplete`
    </ResponseField>
  </Expandable>
</ResponseField>

<ResponseField name="sequence_number" type="integer" required="true">
  The sequence number of this event.
</ResponseField>

### `event: response.output_item.done` chunk object

<ResponseField name="type" type="string" required="true">
  The type of the event. Always `response.output_item.done`.
</ResponseField>

<ResponseField name="output_index" type="integer" required="true">
  The index of the output item that was marked done.
</ResponseField>

<ResponseField name="item" type="object" required="true">
  The output item that was marked done.

  <Expandable title="message">
    An output message from the model.

    <ResponseField name="id" type="string" required="true">
      The unique ID of the output message.
    </ResponseField>

    <ResponseField name="content" type="object[]" required="true">
      The content of the output message.

      <Expandable title="child attributes">
        <ResponseField name="type" type="enum<string>" required="true">
          The type of the output text. Always `output_text`.

          Available options: `output_text`
        </ResponseField>

        <ResponseField name="text" type="string" required="true">
          The text output from the model.
        </ResponseField>
      </Expandable>
    </ResponseField>

    <ResponseField name="role" type="enum<string>" required="true">
      The role of the output message. Always `assistant`.

      Available options: `assistant`
    </ResponseField>

    <ResponseField name="status" type="enum<string>" required="true">
      The status of the message input. One of `in_progress`, `completed`, or `incomplete`. Populated when input items are returned via API.

      Available options: `in_progress`, `completed`, `incomplete`
    </ResponseField>

    <ResponseField name="type" type="enum<string>" required="true">
      The type of the output message. Always `message`.

      Available options: `message`
    </ResponseField>
  </Expandable>

  <Expandable title="reasoning">
    A description of the chain of thought used by a reasoning model while generating a response. Be sure to include these items in your `input` to the Responses API for subsequent turns of a conversation if you are manually managing context.

    <ResponseField name="id" type="string" required="true">
      The unique identifier of the reasoning content.
    </ResponseField>

    <ResponseField name="content" type="object[]">
      Reasoning text content.

      <Expandable title="child attributes">
        <ResponseField name="type" type="enum<string>" required="true">
          The type of the reasoning text. Always `reasoning_text`.

          Available options: `reasoning_text`
        </ResponseField>

        <ResponseField name="text" type="string" required="true">
          The reasoning text from the model.
        </ResponseField>
      </Expandable>
    </ResponseField>

    <ResponseField name="status" type="enum<string>">
      The status of the item. One of `in_progress`, `completed`, or `incomplete`. Populated when items are returned via API.

      Available options: `in_progress`, `completed`, `incomplete`
    </ResponseField>

    <ResponseField name="type" type="enum<string>" required="true">
      The type of the object. Always `reasoning`.

      Available options: `reasoning`
    </ResponseField>
  </Expandable>

  <Expandable title="function_call">
    A tool call to run a function.

    <ResponseField name="arguments" type="string" required="true">
      A JSON string of the arguments to pass to the function.
    </ResponseField>

    <ResponseField name="call_id" type="string" required="true">
      The unique ID of the function tool call generated by the model.
    </ResponseField>

    <ResponseField name="name" type="string" required="true">
      The name of the function to run.
    </ResponseField>

    <ResponseField name="type" type="enum<string>" required="true">
      The type of the function tool call. Always `function_call`.

      Available options: `function_call`
    </ResponseField>

    <ResponseField name="id" type="string">
      The unique ID of the function tool call.
    </ResponseField>

    <ResponseField name="status" type="enum<string>">
      The status of the item. One of `in_progress`, `completed`, or `incomplete`. Populated when items are returned via API.

      Available options: `in_progress`, `completed`, `incomplete`
    </ResponseField>
  </Expandable>
</ResponseField>

<ResponseField name="sequence_number" type="integer" required="true">
  The sequence number of this event.
</ResponseField>

### `event: response.content_part.added` chunk object

<ResponseField name="type" type="string" required="true">
  The type of the event. Always `response.content_part.added`.
</ResponseField>

<ResponseField name="item_id" type="string" required="true">
  The ID of the output item that the content part was added to.
</ResponseField>

<ResponseField name="output_index" type="integer" required="true">
  The index of the output item that the content part was added to.
</ResponseField>

<ResponseField name="content_index" type="integer" required="true">
  The index of the content part that was added.
</ResponseField>

<ResponseField name="part" type="object" required="true">
  The content part that was added.

  <Expandable title="output_text">
    A text output from the model.

    <ResponseField name="type" type="enum<string>" required="true">
      The type of the output text. Always `output_text`.

      Available options: `output_text`
    </ResponseField>

    <ResponseField name="text" type="string" required="true">
      The text output from the model.
    </ResponseField>
  </Expandable>

  <Expandable title="reasoning_text">
    Reasoning text from the model.

    <ResponseField name="type" type="enum<string>" required="true">
      The type of the reasoning text. Always `reasoning_text`.

      Available options: `reasoning_text`
    </ResponseField>

    <ResponseField name="text" type="string" required="true">
      The reasoning text from the model.
    </ResponseField>
  </Expandable>
</ResponseField>

<ResponseField name="sequence_number" type="integer" required="true">
  The sequence number of this event.
</ResponseField>

### `event: response.content_part.done` chunk object

<ResponseField name="type" type="string" required="true">
  The type of the event. Always `response.content_part.done`.
</ResponseField>

<ResponseField name="item_id" type="string" required="true">
  The ID of the output item that the content part was added to.
</ResponseField>

<ResponseField name="output_index" type="integer" required="true">
  The index of the output item that the content part was added to.
</ResponseField>

<ResponseField name="content_index" type="integer" required="true">
  The index of the content part that is done.
</ResponseField>

<ResponseField name="part" type="object" required="true">
  The content part that is done.

  <Expandable title="output_text">
    A text output from the model.

    <ResponseField name="type" type="enum<string>" required="true">
      The type of the output text. Always `output_text`.

      Available options: `output_text`
    </ResponseField>

    <ResponseField name="text" type="string" required="true">
      The text output from the model.
    </ResponseField>
  </Expandable>

  <Expandable title="reasoning_text">
    Reasoning text from the model.

    <ResponseField name="type" type="enum<string>" required="true">
      The type of the reasoning text. Always `reasoning_text`.

      Available options: `reasoning_text`
    </ResponseField>

    <ResponseField name="text" type="string" required="true">
      The reasoning text from the model.
    </ResponseField>
  </Expandable>
</ResponseField>

<ResponseField name="sequence_number" type="integer" required="true">
  The sequence number of this event.
</ResponseField>

### `event: response.output_text.delta` chunk object

<ResponseField name="type" type="string" required="true">
  The type of the event. Always `response.output_text.delta`.
</ResponseField>

<ResponseField name="item_id" type="string" required="true">
  The ID of the output item that the text delta was added to.
</ResponseField>

<ResponseField name="output_index" type="integer" required="true">
  The index of the output item that the text delta was added to.
</ResponseField>

<ResponseField name="content_index" type="integer" required="true">
  The index of the content part that the text delta was added to.
</ResponseField>

<ResponseField name="delta" type="string" required="true">
  The text delta that was added.
</ResponseField>

<ResponseField name="sequence_number" type="integer" required="true">
  The sequence number for this event.
</ResponseField>

### `event: response.output_text.done` chunk object

<ResponseField name="type" type="string" required="true">
  The type of the event. Always `response.output_text.done`.
</ResponseField>

<ResponseField name="item_id" type="string" required="true">
  The ID of the output item that the text content is finalized.
</ResponseField>

<ResponseField name="output_index" type="integer" required="true">
  The index of the output item that the text content is finalized.
</ResponseField>

<ResponseField name="content_index" type="integer" required="true">
  The index of the content part that the text content is finalized.
</ResponseField>

<ResponseField name="text" type="string" required="true">
  The text content that is finalized.
</ResponseField>

<ResponseField name="sequence_number" type="integer" required="true">
  The sequence number for this event.
</ResponseField>

### `event: response.function_call_arguments.delta` chunk object

<ResponseField name="type" type="string" required="true">
  The type of the event. Always `response.function_call_arguments.delta`.
</ResponseField>

<ResponseField name="item_id" type="string" required="true">
  The ID of the output item that the function-call arguments delta is added to.
</ResponseField>

<ResponseField name="output_index" type="integer" required="true">
  The index of the output item that the function-call arguments delta is added to.
</ResponseField>

<ResponseField name="delta" type="string" required="true">
  The function-call arguments delta that is added.
</ResponseField>

<ResponseField name="sequence_number" type="integer" required="true">
  The sequence number of this event.
</ResponseField>

### `event: response.function_call_arguments.done` chunk object

<ResponseField name="type" type="string" required="true">
  The type of the event. Always `response.function_call_arguments.done`.
</ResponseField>

<ResponseField name="item_id" type="string" required="true">
  The ID of the item.
</ResponseField>

<ResponseField name="output_index" type="integer" required="true">
  The index of the output item.
</ResponseField>

<ResponseField name="arguments" type="string" required="true">
  The function-call arguments.
</ResponseField>

<ResponseField name="name" type="string" required="true">
  The name of the function that was called.
</ResponseField>

<ResponseField name="sequence_number" type="integer" required="true">
  The sequence number of this event.
</ResponseField>

### `event: response.reasoning_text.delta` chunk object

<ResponseField name="type" type="string" required="true">
  The type of the event. Always `response.reasoning_text.delta`.
</ResponseField>

<ResponseField name="item_id" type="string" required="true">
  The ID of the item this reasoning text delta is associated with.
</ResponseField>

<ResponseField name="output_index" type="integer" required="true">
  The index of the output item this reasoning text delta is associated with.
</ResponseField>

<ResponseField name="content_index" type="integer" required="true">
  The index of the reasoning content part this delta is associated with.
</ResponseField>

<ResponseField name="delta" type="string" required="true">
  The text delta that was added to the reasoning content.
</ResponseField>

<ResponseField name="sequence_number" type="integer" required="true">
  The sequence number of this event.
</ResponseField>

### `event: response.reasoning_text.done` chunk object

<ResponseField name="type" type="string" required="true">
  The type of the event. Always `response.reasoning_text.done`.
</ResponseField>

<ResponseField name="item_id" type="string" required="true">
  The ID of the item this reasoning text is associated with.
</ResponseField>

<ResponseField name="output_index" type="integer" required="true">
  The index of the output item this reasoning text is associated with.
</ResponseField>

<ResponseField name="content_index" type="integer" required="true">
  The index of the reasoning content part.
</ResponseField>

<ResponseField name="text" type="string" required="true">
  The full text of the completed reasoning content.
</ResponseField>

<ResponseField name="sequence_number" type="integer" required="true">
  The sequence number of this event.
</ResponseField>
