StreamEventsResponseOutputItemAdded - Python SDK

StreamEventsResponseOutputItemAdded method reference

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

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

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.StreamEventsResponseOutputItemAddedType✔️N/A