The tool use loop
Swipe to change step
Step 1 of 9. A user asks What is the weather in Lisbon? Your app owns the conversation: the API is stateless, so every request carries the full history. User. Your app (holds the conversation). Claude (Messages API). arrow from User to Your app, labelled question. arrow from Your app to Claude, labelled messages + tools. a question moving along question.
In this chapter
Chapter check
Already know this? Score 80% or more and you can skip ahead. Each attempt draws 4 questions from 12.
Loading check…