Skip to main content
The Python SDK and docs are currently in beta. Report issues on GitHub.
Event emitted when a response has failed

Fields

FieldTypeRequiredDescriptionExample
typecomponents.TypeResponseFailed:heavy_check_mark:N/A
responsecomponents.OpenResponsesNonStreamingResponse:heavy_check_mark:Complete non-streaming response from the Responses API{"id": "resp-abc123","object": "response","created_at": 1704067200,"model": "gpt-4","status": "completed","output": [{"type": "message","id": "msg-abc123","status": "completed","role": "assistant","content": [{"type": "output_text","text": "Hello! How can I help you today?","annotations": []}
]
}
],
“usage”: {"input_tokens": 10,"output_tokens": 25,"total_tokens": 35,"input_tokens_details": {"cached_tokens": 0},
“output_tokens_details”: {"reasoning_tokens": 0}
},
“tools”: [],
“tool_choice”: “auto”,
“parallel_tool_calls”: true,
“error”: null,
“incomplete_details”: null,
“temperature”: null,
“top_p”: null,
“max_output_tokens”: null,
“metadata”: null,
“instructions”: null<br/>}
sequence_numberfloat:heavy_check_mark:N/A