Skip to content

Glossary: AI Agents Basics

max_steps

Also written: max_cost, budget

The loop's two safety limits: max_steps caps model calls per customer turn and max_cost caps dollars for the whole conversation. Hitting either stops the run, and the case goes to a person.

Where the book teaches it

Related terms

Stop reason