Skip to content

Glossary: Building with LLMs Basics

Tool loop

Also written: max_turns

The cycle of calling the model, running any tool it asks for, and sending the result back until it answers. Cap the turns, since a confused model could ask for tools forever.

Where the book teaches it

Related terms

Tool useTool call