> ## Documentation Index
> Fetch the complete documentation index at: https://openrouter-d02e98a0-mintlify-5b6e02fd.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# OpenResponsesStreamEventResponseFailed - Python SDK

> OpenResponsesStreamEventResponseFailed method reference

<Warning>
  The Python SDK and docs are currently in beta.
  Report issues on [GitHub](https://github.com/OpenRouterTeam/python-sdk/issues).
</Warning>

Event emitted when a response has failed

## Fields

| Field             | Type                                                                                                             | Required             | Description                                            | Example                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      |
| ----------------- | ---------------------------------------------------------------------------------------------------------------- | -------------------- | ------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| `type`            | [components.TypeResponseFailed](/client-sdks/python/components/typeresponsefailed)                               | :heavy\_check\_mark: | N/A                                                    |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              |
| `response`        | [components.OpenResponsesNonStreamingResponse](/client-sdks/python/components/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": []}`<br />]<br />}<br />],<br />"usage": `{"input_tokens": 10,"output_tokens": 25,"total_tokens": 35,"input_tokens_details": {"cached_tokens": 0}`,<br />"output\_tokens\_details": `{"reasoning_tokens": 0}`<br />},<br />"tools": \[],<br />"tool\_choice": "auto",<br />"parallel\_tool\_calls": true,<br />"error": null,<br />"incomplete\_details": null,<br />"temperature": null,<br />"top\_p": null,<br />"max\_output\_tokens": null,<br />"metadata": null,<br />"instructions": `null<br/>`} |
| `sequence_number` | *float*                                                                                                          | :heavy\_check\_mark: | N/A                                                    |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              |
