CCAR-F practice question / AI & Anthropic Fundamentals
You are building a customer-support agent using the Claude Messages API with client-executed tools. After Claude...
Question 1
AI & Anthropic FundamentalsShow the answer and explanation
Correct answer: B. Preserve the assistant's tool_use message, return the matching tool_result in a user message, and send the next request; continue client-tool handling when requested and handle the eventual stop reason explicitly.
For client-executed tools in the Messages API, the application runs each requested operation and returns its output in a tool_result block associated with that tool_use ID. The next request preserves the assistant's tool-use message and follows it with the user message containing the results. Claude can then reason about those results. Continue when the response requests another client tool; an end_turn response indicates the model has finished its turn, while other stop reasons need their own handling. Keyword matching and a fixed action sequence do not implement this protocol, and an iteration cap alone does not establish successful completion. This manual client-tool loop is distinct from the higher-level Agent SDK, which supplies an agent loop and tool execution.
Related objective
Agentic architecture: choose and test the control loop | CertLabsThese are original practice questions, not official exam questions. Practice results do not predict an exam outcome.