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

# Field - Go SDK

> Field type definition

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

## Example Usage

```go lines theme={null}
import (
	"github.com/OpenRouterTeam/go-sdk/models/components"
)

value := components.FieldModel

// Open enum: custom values can be created with a direct type cast
custom := components.Field("custom_value")
```

## Values

| Name                    | Value              |
| ----------------------- | ------------------ |
| `FieldModel`            | model              |
| `FieldProvider`         | provider           |
| `FieldSessionID`        | session\_id        |
| `FieldUserID`           | user\_id           |
| `FieldAPIKeyName`       | api\_key\_name     |
| `FieldFinishReason`     | finish\_reason     |
| `FieldInput`            | input              |
| `FieldOutput`           | output             |
| `FieldTotalCost`        | total\_cost        |
| `FieldTotalTokens`      | total\_tokens      |
| `FieldPromptTokens`     | prompt\_tokens     |
| `FieldCompletionTokens` | completion\_tokens |
