> ## 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.

# OpenResponsesResult - Python SDK

> OpenResponsesResult method reference

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

Complete non-streaming response from the Responses API

## Fields

| Field                  | Type                                                                                                                        | Required             | Description                                                                                                                                                  | Example                                                                                                                                                                                                                                                                                                         |
| ---------------------- | --------------------------------------------------------------------------------------------------------------------------- | -------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------ | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `background`           | *OptionalNullable\[bool]*                                                                                                   | :heavy\_minus\_sign: | N/A                                                                                                                                                          |                                                                                                                                                                                                                                                                                                                 |
| `completed_at`         | *Nullable\[int]*                                                                                                            | :heavy\_check\_mark: | N/A                                                                                                                                                          |                                                                                                                                                                                                                                                                                                                 |
| `created_at`           | *int*                                                                                                                       | :heavy\_check\_mark: | N/A                                                                                                                                                          |                                                                                                                                                                                                                                                                                                                 |
| `error`                | [Nullable\[components.ResponsesErrorField\]](../components/responseserrorfield.md)                                          | :heavy\_check\_mark: | Error information returned from the API                                                                                                                      | `{"code": "rate_limit_exceeded","message": "Rate limit exceeded. Please try again later."}`                                                                                                                                                                                                                     |
| `frequency_penalty`    | *Nullable\[float]*                                                                                                          | :heavy\_check\_mark: | N/A                                                                                                                                                          |                                                                                                                                                                                                                                                                                                                 |
| `id`                   | *str*                                                                                                                       | :heavy\_check\_mark: | N/A                                                                                                                                                          |                                                                                                                                                                                                                                                                                                                 |
| `incomplete_details`   | [Nullable\[components.IncompleteDetails\]](../components/incompletedetails.md)                                              | :heavy\_check\_mark: | N/A                                                                                                                                                          | `{"reason": "max_output_tokens"}`                                                                                                                                                                                                                                                                               |
| `instructions`         | [Nullable\[components.BaseInputsUnion\]](../components/baseinputsunion.md)                                                  | :heavy\_check\_mark: | N/A                                                                                                                                                          | \[<br />`{"content": "What is the weather today?","role": "user"}`<br />]                                                                                                                                                                                                                                       |
| `max_output_tokens`    | *OptionalNullable\[int]*                                                                                                    | :heavy\_minus\_sign: | N/A                                                                                                                                                          |                                                                                                                                                                                                                                                                                                                 |
| `max_tool_calls`       | *OptionalNullable\[int]*                                                                                                    | :heavy\_minus\_sign: | N/A                                                                                                                                                          |                                                                                                                                                                                                                                                                                                                 |
| `metadata`             | Dict\[str, *str*]                                                                                                           | :heavy\_check\_mark: | Metadata key-value pairs for the request. Keys must be ≤64 characters and cannot contain brackets. Values must be ≤512 characters. Maximum 16 pairs allowed. | `{"session_id": "abc-def-ghi","user_id": "123"}`                                                                                                                                                                                                                                                                |
| `model`                | *str*                                                                                                                       | :heavy\_check\_mark: | N/A                                                                                                                                                          |                                                                                                                                                                                                                                                                                                                 |
| `object`               | [components.OpenResponsesResultObject](/client-sdks/python/api-reference/components/openresponsesresultobject)              | :heavy\_check\_mark: | N/A                                                                                                                                                          |                                                                                                                                                                                                                                                                                                                 |
| `output`               | List\[[components.OutputItems](/client-sdks/python/api-reference/components/outputitems)]                                   | :heavy\_check\_mark: | N/A                                                                                                                                                          |                                                                                                                                                                                                                                                                                                                 |
| `output_text`          | *Optional\[str]*                                                                                                            | :heavy\_minus\_sign: | N/A                                                                                                                                                          |                                                                                                                                                                                                                                                                                                                 |
| `parallel_tool_calls`  | *bool*                                                                                                                      | :heavy\_check\_mark: | N/A                                                                                                                                                          |                                                                                                                                                                                                                                                                                                                 |
| `presence_penalty`     | *Nullable\[float]*                                                                                                          | :heavy\_check\_mark: | N/A                                                                                                                                                          |                                                                                                                                                                                                                                                                                                                 |
| `previous_response_id` | *OptionalNullable\[str]*                                                                                                    | :heavy\_minus\_sign: | N/A                                                                                                                                                          |                                                                                                                                                                                                                                                                                                                 |
| `prompt`               | [OptionalNullable\[components.StoredPromptTemplate\]](../components/storedprompttemplate.md)                                | :heavy\_minus\_sign: | N/A                                                                                                                                                          | `{"id": "prompt-abc123","variables": {"name": "John"}`<br />}                                                                                                                                                                                                                                                   |
| `prompt_cache_key`     | *OptionalNullable\[str]*                                                                                                    | :heavy\_minus\_sign: | N/A                                                                                                                                                          |                                                                                                                                                                                                                                                                                                                 |
| `reasoning`            | [OptionalNullable\[components.BaseReasoningConfig\]](../components/basereasoningconfig.md)                                  | :heavy\_minus\_sign: | N/A                                                                                                                                                          | `{"effort": "medium","summary": "auto"}`                                                                                                                                                                                                                                                                        |
| `safety_identifier`    | *OptionalNullable\[str]*                                                                                                    | :heavy\_minus\_sign: | N/A                                                                                                                                                          |                                                                                                                                                                                                                                                                                                                 |
| `service_tier`         | *OptionalNullable\[str]*                                                                                                    | :heavy\_minus\_sign: | N/A                                                                                                                                                          |                                                                                                                                                                                                                                                                                                                 |
| `status`               | [components.OpenAIResponsesResponseStatus](/client-sdks/python/api-reference/components/openairesponsesresponsestatus)      | :heavy\_check\_mark: | N/A                                                                                                                                                          | completed                                                                                                                                                                                                                                                                                                       |
| `store`                | *Optional\[bool]*                                                                                                           | :heavy\_minus\_sign: | N/A                                                                                                                                                          |                                                                                                                                                                                                                                                                                                                 |
| `temperature`          | *Nullable\[float]*                                                                                                          | :heavy\_check\_mark: | N/A                                                                                                                                                          |                                                                                                                                                                                                                                                                                                                 |
| `text`                 | [Optional\[components.TextExtendedConfig\]](../components/textextendedconfig.md)                                            | :heavy\_minus\_sign: | Text output configuration including format and verbosity                                                                                                     | `{"format": {"type": "text"}`,<br />"verbosity": "medium"<br />}                                                                                                                                                                                                                                                |
| `tool_choice`          | [components.OpenAIResponsesToolChoiceUnion](/client-sdks/python/api-reference/components/openairesponsestoolchoiceunion)    | :heavy\_check\_mark: | N/A                                                                                                                                                          | auto                                                                                                                                                                                                                                                                                                            |
| `tools`                | List\[[components.OpenResponsesResultToolUnion](/client-sdks/python/api-reference/components/openresponsesresulttoolunion)] | :heavy\_check\_mark: | N/A                                                                                                                                                          |                                                                                                                                                                                                                                                                                                                 |
| `top_logprobs`         | *Optional\[int]*                                                                                                            | :heavy\_minus\_sign: | N/A                                                                                                                                                          |                                                                                                                                                                                                                                                                                                                 |
| `top_p`                | *Nullable\[float]*                                                                                                          | :heavy\_check\_mark: | N/A                                                                                                                                                          |                                                                                                                                                                                                                                                                                                                 |
| `truncation`           | [OptionalNullable\[components.Truncation\]](../components/truncation.md)                                                    | :heavy\_minus\_sign: | N/A                                                                                                                                                          | auto                                                                                                                                                                                                                                                                                                            |
| `usage`                | [OptionalNullable\[components.Usage\]](../components/usage.md)                                                              | :heavy\_minus\_sign: | Token usage information for the response                                                                                                                     | `{"input_tokens": 100,"input_tokens_details": {"cached_tokens": 0}`,<br />"output\_tokens": 50,<br />"output\_tokens\_details": `{"reasoning_tokens": 0}`,<br />"total\_tokens": `150<br/>`}                                                                                                                    |
| `user`                 | *OptionalNullable\[str]*                                                                                                    | :heavy\_minus\_sign: | N/A                                                                                                                                                          |                                                                                                                                                                                                                                                                                                                 |
| `openrouter_metadata`  | [Optional\[components.OpenRouterMetadata\]](../components/openroutermetadata.md)                                            | :heavy\_minus\_sign: | N/A                                                                                                                                                          | `{"attempt": 1,"endpoints": {"available": [{"model": "openai/gpt-4o","provider": "OpenAI","selected": true}`<br />],<br />"total": `1<br/>`},<br />"is\_byok": false,<br />"region": "iad",<br />"requested": "openai/gpt-4o",<br />"strategy": "direct",<br />"summary": "available=1, selected=OpenAI"<br />} |
