Skip to main content
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:heavy_check_mark: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:heavy_check_mark:N/A
sequence_numberint:heavy_check_mark:N/A
typecomponents.StreamEventsResponseOutputItemAddedType:heavy_check_mark:N/A