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

# response.done

Returned when a Response reaches its final state. Always emitted regardless of the final state and, when avatar rendering occurred, only after `response.render.stopped`. The response includes all generated output items and omits raw audio data.

## Event fields

<ResponseField name="event_id" type="string" required>
  The unique ID of the server event.
</ResponseField>

<ResponseField name="type" type="string" required>
  Event type. Must be `response.done`.
</ResponseField>

<ResponseField name="response" type="realtime_response" required>
  The response resource.
</ResponseField>

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

<ResponseField name="response.status" type="string">
  The final response status. Clients should check this field for `completed`, `cancelled`, `failed`, or `incomplete`.
</ResponseField>

<ResponseField name="response.status_details" type="object | null">
  Additional details about the response status.
</ResponseField>

<ResponseField name="response.output" type="conversation_item[]">
  All output conversation\_items generated during the response. Raw audio/video is delivered over RTC media tracks and is not included here.
</ResponseField>

<ResponseField name="response.max_output_tokens" type="number | 'inf'">
  The maximum number of output tokens for the response.
</ResponseField>

<ResponseExample>
  ```json response.done theme={null}
  {
    "type": "response.done",
    "event_id": "event_response_done_001",
    "response": {
      "id": "resp_done_001",
      "status": "completed",
      "status_details": null,
      "output": [
        {
          "id": "item_message_001",
          "type": "message",
          "status": "completed",
          "role": "assistant",
          "content": [
            {
              "type": "text",
              "text": "Loud and clear! I can hear you perfectly. How can I help you today?"
            }
          ]
        }
      ],
      "max_output_tokens": "inf"
    }
  }
  ```
</ResponseExample>
