You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"description": "Default total-token budget for an agentic task (forwarded to Anthropic as `output_config.task_budget`, with the required `task-budgets-2026-03-13` beta header attached automatically). Configurable on any Claude model — docker-agent does not gate by model name — but at the time of writing only Claude Opus 4.7 honors it. Accepts an integer token count or an object {type: tokens, total: N}.",
177
+
"oneOf": [
178
+
{
179
+
"type": "integer",
180
+
"minimum": 0,
181
+
"description": "Token budget for the full task (combined thinking, tool calls, and output)."
182
+
},
183
+
{
184
+
"type": "object",
185
+
"properties": {
186
+
"type": {
187
+
"type": "string",
188
+
"enum": ["tokens"],
189
+
"description": "Budget kind. Only \"tokens\" is supported today."
190
+
},
191
+
"total": {
192
+
"type": "integer",
193
+
"minimum": 0,
194
+
"description": "Total budget value."
195
+
}
196
+
},
197
+
"required": ["total"],
198
+
"additionalProperties": false
199
+
}
200
+
]
174
201
}
175
202
},
176
203
"additionalProperties": false
@@ -650,6 +677,38 @@
650
677
32768
651
678
]
652
679
},
680
+
"task_budget": {
681
+
"description": "Total-token budget for a full agentic task (forwarded to Anthropic as `output_config.task_budget`, with the required `task-budgets-2026-03-13` beta header attached automatically). Limits the combined tokens spent on thinking, tool calls, and output across the whole task. Configurable on any Claude model — docker-agent does not gate by model name — but at the time of writing only Claude Opus 4.7 honors it. Accepts an integer token count or an object {type: tokens, total: N}.",
682
+
"oneOf": [
683
+
{
684
+
"type": "integer",
685
+
"minimum": 0,
686
+
"description": "Total token budget for the task (e.g., 128000)."
687
+
},
688
+
{
689
+
"type": "object",
690
+
"properties": {
691
+
"type": {
692
+
"type": "string",
693
+
"enum": ["tokens"],
694
+
"description": "Budget kind. Only \"tokens\" is supported today."
695
+
},
696
+
"total": {
697
+
"type": "integer",
698
+
"minimum": 0,
699
+
"description": "Total budget value."
700
+
}
701
+
},
702
+
"required": ["total"],
703
+
"additionalProperties": false
704
+
}
705
+
],
706
+
"examples": [
707
+
64000,
708
+
128000,
709
+
{ "type": "tokens", "total": 128000 }
710
+
]
711
+
},
653
712
"routing": {
654
713
"type": "array",
655
714
"description": "Routing rules for request-based model selection. When configured, this model becomes a router that selects the best model based on the user's input. The model's provider/model fields define the fallback model.",
| `task_budget` | int/object | Default total token budget for an agentic task (forwarded to Anthropic; honored by Claude Opus 4.7 today). Integer shorthand or `{type: tokens, total: N}`. | — |
111
112
| `provider_opts` | object | Provider-specific options passed through to the client. | — |
0 commit comments