mirror of
https://github.com/wassname/openrouter-python-sdk-retry-errors.git
synced 2026-07-29 11:23:49 +08:00
15 lines
5.3 KiB
Plaintext
15 lines
5.3 KiB
Plaintext
---
|
|
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 | | |