---
title: "StreamEventsResponseOutputItemAdded"
---

Event emitted when a new output item is added to the response


## Fields

| Field                                                                                                                                                                       | Type                                                                                                                                                                        | Required                                                                                                                                                                    | Description                                                                                                                                                                 | Example                                                                                                                                                                     |
| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `item`                                                                                                                                                                      | [components.OutputItems](../components/outputitems.mdx)                                                                                                                      | :heavy_check_mark:                                                                                                                                                          | An output item from the response                                                                                                                                            | \{<br/>"content": [<br/>\{<br/>"text": "Hello! How can I help you today?",<br/>"type": "output_text"<br/>}<br/>],<br/>"id": "msg-abc123",<br/>"role": "assistant",<br/>"status": "completed",<br/>"type": "message"<br/>} |
| `output_index`                                                                                                                                                              | *int*                                                                                                                                                                       | :heavy_check_mark:                                                                                                                                                          | N/A                                                                                                                                                                         |                                                                                                                                                                             |
| `sequence_number`                                                                                                                                                           | *int*                                                                                                                                                                       | :heavy_check_mark:                                                                                                                                                          | N/A                                                                                                                                                                         |                                                                                                                                                                             |
| `type`                                                                                                                                                                      | [components.StreamEventsResponseOutputItemAddedType](../components/streameventsresponseoutputitemaddedtype.mdx)                                                              | :heavy_check_mark:                                                                                                                                                          | N/A                                                                                                                                                                         |                                                                                                                                                                             |