TaskBudget
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.
Documentation Index
Fetch the complete documentation index at: /docs/llms.txt
Use this file to discover all available pages before exploring further.
import { TaskBudget } from "@openrouter/sdk/models";
let value: TaskBudget = {
total: 400000,
type: "tokens",
};
| Field | Type | Required | Description |
|---|---|---|---|
remaining | number | :heavy_minus_sign: | N/A |
total | number | :heavy_check_mark: | N/A |
type | models.TypeTokens | :heavy_check_mark: | N/A |