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

# OpenResponsesResult - Go SDK

> OpenResponsesResult type definition

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

Complete non-streaming response from the Responses API

## Fields

| Field                | Type                                                                                                                             | Required             | Description                                                                                                                                                  | Example                                                                                                                                                                                                                                                                                                                                                       |
| -------------------- | -------------------------------------------------------------------------------------------------------------------------------- | -------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `Background`         | optionalnullable.OptionalNullable\[`bool`]                                                                                       | :heavy\_minus\_sign: | N/A                                                                                                                                                          |                                                                                                                                                                                                                                                                                                                                                               |
| `CompletedAt`        | `*int64`                                                                                                                         | :heavy\_check\_mark: | N/A                                                                                                                                                          |                                                                                                                                                                                                                                                                                                                                                               |
| `CreatedAt`          | `int64`                                                                                                                          | :heavy\_check\_mark: | N/A                                                                                                                                                          |                                                                                                                                                                                                                                                                                                                                                               |
| `Error`              | [\*components.ResponsesErrorField](/client-sdks/go/api-reference/models/responseserrorfield)                                     | :heavy\_check\_mark: | Error information returned from the API                                                                                                                      | `{"code": "rate_limit_exceeded","message": "Rate limit exceeded. Please try again later."}`                                                                                                                                                                                                                                                                   |
| `FrequencyPenalty`   | `*float64`                                                                                                                       | :heavy\_check\_mark: | N/A                                                                                                                                                          |                                                                                                                                                                                                                                                                                                                                                               |
| `ID`                 | `string`                                                                                                                         | :heavy\_check\_mark: | N/A                                                                                                                                                          |                                                                                                                                                                                                                                                                                                                                                               |
| `IncompleteDetails`  | [\*components.IncompleteDetails](/client-sdks/go/api-reference/models/incompletedetails)                                         | :heavy\_check\_mark: | N/A                                                                                                                                                          | `{"reason": "max_output_tokens"}`                                                                                                                                                                                                                                                                                                                             |
| `Instructions`       | [\*components.BaseInputsUnion](/client-sdks/go/api-reference/models/baseinputsunion)                                             | :heavy\_check\_mark: | N/A                                                                                                                                                          | \[<br />`{"content": "What is the weather today?","role": "user"}`<br />]                                                                                                                                                                                                                                                                                     |
| `MaxOutputTokens`    | optionalnullable.OptionalNullable\[`int64`]                                                                                      | :heavy\_minus\_sign: | N/A                                                                                                                                                          |                                                                                                                                                                                                                                                                                                                                                               |
| `MaxToolCalls`       | optionalnullable.OptionalNullable\[`int64`]                                                                                      | :heavy\_minus\_sign: | N/A                                                                                                                                                          |                                                                                                                                                                                                                                                                                                                                                               |
| `Metadata`           | map\[string]`string`                                                                                                             | :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`              | `string`                                                                                                                         | :heavy\_check\_mark: | N/A                                                                                                                                                          |                                                                                                                                                                                                                                                                                                                                                               |
| `Object`             | [components.OpenResponsesResultObject](/client-sdks/go/api-reference/models/openresponsesresultobject)                           | :heavy\_check\_mark: | N/A                                                                                                                                                          |                                                                                                                                                                                                                                                                                                                                                               |
| `Output`             | \[][components.OutputItems](/client-sdks/go/api-reference/models/outputitems)                                                    | :heavy\_check\_mark: | N/A                                                                                                                                                          |                                                                                                                                                                                                                                                                                                                                                               |
| `OutputText`         | `*string`                                                                                                                        | :heavy\_minus\_sign: | N/A                                                                                                                                                          |                                                                                                                                                                                                                                                                                                                                                               |
| `ParallelToolCalls`  | `bool`                                                                                                                           | :heavy\_check\_mark: | N/A                                                                                                                                                          |                                                                                                                                                                                                                                                                                                                                                               |
| `PresencePenalty`    | `*float64`                                                                                                                       | :heavy\_check\_mark: | N/A                                                                                                                                                          |                                                                                                                                                                                                                                                                                                                                                               |
| `PreviousResponseID` | optionalnullable.OptionalNullable\[`string`]                                                                                     | :heavy\_minus\_sign: | N/A                                                                                                                                                          |                                                                                                                                                                                                                                                                                                                                                               |
| `Prompt`             | optionalnullable.OptionalNullable\[[components.StoredPromptTemplate](/client-sdks/go/api-reference/models/storedprompttemplate)] | :heavy\_minus\_sign: | N/A                                                                                                                                                          | `{"id": "prompt-abc123","variables": {"name": "John"}`<br />}                                                                                                                                                                                                                                                                                                 |
| `PromptCacheKey`     | optionalnullable.OptionalNullable\[`string`]                                                                                     | :heavy\_minus\_sign: | N/A                                                                                                                                                          |                                                                                                                                                                                                                                                                                                                                                               |
| `Reasoning`          | optionalnullable.OptionalNullable\[[components.BaseReasoningConfig](/client-sdks/go/api-reference/models/basereasoningconfig)]   | :heavy\_minus\_sign: | N/A                                                                                                                                                          | `{"effort": "medium","summary": "auto"}`                                                                                                                                                                                                                                                                                                                      |
| `SafetyIdentifier`   | optionalnullable.OptionalNullable\[`string`]                                                                                     | :heavy\_minus\_sign: | N/A                                                                                                                                                          |                                                                                                                                                                                                                                                                                                                                                               |
| `ServiceTier`        | optionalnullable.OptionalNullable\[`string`]                                                                                     | :heavy\_minus\_sign: | N/A                                                                                                                                                          |                                                                                                                                                                                                                                                                                                                                                               |
| `Status`             | [components.OpenAIResponsesResponseStatus](/client-sdks/go/api-reference/models/openairesponsesresponsestatus)                   | :heavy\_check\_mark: | N/A                                                                                                                                                          | completed                                                                                                                                                                                                                                                                                                                                                     |
| `Store`              | `*bool`                                                                                                                          | :heavy\_minus\_sign: | N/A                                                                                                                                                          |                                                                                                                                                                                                                                                                                                                                                               |
| `Temperature`        | `*float64`                                                                                                                       | :heavy\_check\_mark: | N/A                                                                                                                                                          |                                                                                                                                                                                                                                                                                                                                                               |
| `Text`               | [\*components.TextExtendedConfig](/client-sdks/go/api-reference/models/textextendedconfig)                                       | :heavy\_minus\_sign: | Text output configuration including format and verbosity                                                                                                     | `{"format": {"type": "text"}`<br />}                                                                                                                                                                                                                                                                                                                          |
| `ToolChoice`         | [components.OpenAIResponsesToolChoiceUnion](/client-sdks/go/api-reference/models/openairesponsestoolchoiceunion)                 | :heavy\_check\_mark: | N/A                                                                                                                                                          | auto                                                                                                                                                                                                                                                                                                                                                          |
| `Tools`              | \[][components.OpenResponsesResultToolUnion](/client-sdks/go/api-reference/models/openresponsesresulttoolunion)                  | :heavy\_check\_mark: | N/A                                                                                                                                                          |                                                                                                                                                                                                                                                                                                                                                               |
| `TopLogprobs`        | `*int64`                                                                                                                         | :heavy\_minus\_sign: | N/A                                                                                                                                                          |                                                                                                                                                                                                                                                                                                                                                               |
| `TopP`               | `*float64`                                                                                                                       | :heavy\_check\_mark: | N/A                                                                                                                                                          |                                                                                                                                                                                                                                                                                                                                                               |
| `Truncation`         | optionalnullable.OptionalNullable\[[components.Truncation](/client-sdks/go/api-reference/models/truncation)]                     | :heavy\_minus\_sign: | N/A                                                                                                                                                          | auto                                                                                                                                                                                                                                                                                                                                                          |
| `Usage`              | optionalnullable.OptionalNullable\[[components.Usage](/client-sdks/go/api-reference/models/usage)]                               | :heavy\_minus\_sign: | Token usage information for the response                                                                                                                     | `{"cost": 0.0012,"cost_details": {"upstream_inference_cost": null,"upstream_inference_input_cost": 0.0008,"upstream_inference_output_cost": 0.0004}`,<br />"input\_tokens": 10,<br />"input\_tokens\_details": `{"cached_tokens": 0}`,<br />"output\_tokens": 25,<br />"output\_tokens\_details": `{"reasoning_tokens": 0}`,<br />"total\_tokens": `35<br/>`} |
| `User`               | optionalnullable.OptionalNullable\[`string`]                                                                                     | :heavy\_minus\_sign: | N/A                                                                                                                                                          |                                                                                                                                                                                                                                                                                                                                                               |
| `OpenrouterMetadata` | [\*components.OpenRouterMetadata](/client-sdks/go/api-reference/models/openroutermetadata)                                       | :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 />}                                               |
