StreamEventsResponseOutputItemDone - Python SDK

StreamEventsResponseOutputItemDone method reference

The Python SDK and docs are currently in beta. Report issues on GitHub.

Event emitted when an output item is complete

Fields

FieldTypeRequiredDescriptionExample
itemcomponents.OutputItems✔️An output item from the response{"content": [{"text": "Hello! How can I help you today?","type": "output_text"}
],
“id”: “msg-abc123”,
“role”: “assistant”,
“status”: “completed”,
“type”: “message”
}
output_indexint✔️N/A
sequence_numberint✔️N/A
typecomponents.StreamEventsResponseOutputItemDoneType✔️N/A