Question 1. A retail company is building a Claude-powered order support agent. In a test run, Claude responds with a request to call the lookup_order tool, and the API response has stop_reason set to tool_use. What should the application’s agentic loop do next?
- AExecute lookup_order, append the tool result to the conversation history, and send the updated history back to Claude for the next iteration.
- BTreat the tool request as Claude’s final answer because the assistant has already selected the correct tool.
- CExecute lookup_order, store the result in an application log only, and ask Claude to answer from the original conversation.
- DAsk Claude to summarize why it wanted the tool before executing the tool, then continue only if the summary contains the word "necessary."
Show the answer
Correct answer: A. Execute lookup_order, append the tool result to the conversation history, and send the updated history back to Claude for the next iteration.
tool_use means the loop should execute the requested tool, add the result to context, and call Claude again.