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

# TaskBudget - Go SDK

> TaskBudget type definition

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

Task budget for an agentic turn. The model sees a countdown of remaining tokens and uses it to prioritize work and wind down gracefully. Advisory — does not enforce a hard cap.

## Fields

| Field       | Type                                                                     | Required             | Description |
| ----------- | ------------------------------------------------------------------------ | -------------------- | ----------- |
| `Remaining` | optionalnullable.OptionalNullable\[`int64`]                              | :heavy\_minus\_sign: | N/A         |
| `Total`     | `int64`                                                                  | :heavy\_check\_mark: | N/A         |
| `Type`      | [components.TypeTokens](/client-sdks/go/api-reference/models/typetokens) | :heavy\_check\_mark: | N/A         |
