Skip to main content
Language reference / max_tokens_total

Meaning and placement

agent

Cumulative token budget across every turn of the loop · the SPEND ceiling, where max_turns is the step ceiling. Default is engine-configurable (spec/02-verbs.md §agent). In the same object: max_turns · model · prompt · schema · skills · system · temperature · tools Schema source (use the pointer above)

In a source template

Excerpt from templates/agent-loop.nika.yaml, source lines 108–117. This is a fragment, not a runnable workflow.
illustration

Templates containing this field

These are literal key occurrences in the source files, not an execution or conformance claim. How to instantiate a template.

Contract and implementation

This page projects the named specification revision. Check released engine status and the validation workflow before running a file. An optional field is not evidence that every engine supports every value. Canonical identity: language:word:max_tokens_total. Spec revision: c5ebbb7b862b. How documentation stays connected.