ServerEventResponseTextDone interface
Returned when the text value of a "text" content part is done streaming. Also emitted when a Response is interrupted, incomplete, or cancelled.
- Extends
Properties
| content |
The index of the content part in the item's content array. |
| item |
The ID of the item. |
| output |
The index of the output item in the response. |
| response |
The ID of the response. |
| text | The final text content. |
| type | The event type, must be |
Inherited Properties
| event |
Property Details
contentIndex
The index of the content part in the item's content array.
contentIndex: number
Property Value
number
itemId
The ID of the item.
itemId: string
Property Value
string
outputIndex
The index of the output item in the response.
outputIndex: number
Property Value
number
responseId
The ID of the response.
responseId: string
Property Value
string
text
The final text content.
text: string
Property Value
string
type
The event type, must be response.text.done.
type: "response.text.done"
Property Value
"response.text.done"