CCAR-F
Agentic architecture: choose and test the control loop
Key takeaways
- Distinguish the Messages API from the Agent SDK.
- Make completion, retries, and action ownership explicit.
- Practice with synthetic tools before connecting a real system.
Choose the right level of control
With client tools in the Messages API, your application executes requested operations and returns their results to the conversation. The Agent SDK provides a higher-level agent loop and tool execution. These are different integration surfaces: do not assume an SDK-managed agent requires the same manual loop as a raw API client. See how tool use works for the client/server distinction.
Exercise: a support request with a failed lookup
Build a small assistant against a synthetic order lookup. Give it three possible outcomes: return an order, report that no order exists, or report temporary unavailability. Define what the application should do for each result. A timeout must not be reported as proof that an order does not exist.
Now add a proposed refund action, but make the exercise stop at a preview. Decide where approval belongs, how the operation obtains the correct account identity, and how a repeated request would be recognized. Draw the transition from lookup to draft to approval to execution. The purpose is to explain the design, not to perform a real refund.
Decide when to delegate
Compare a single worker with separate workers for research and checking. List the information each needs, the work each owns, and the evidence needed to combine their outputs. More workers can add coordination overhead and conflicting assumptions. Choose a design because it helps your scenario rather than because it has more agents.
Introduce a contradictory tool result and explain how your design reports uncertainty. Then remove a required input and confirm that the assistant requests it instead of making up an answer.
Review your reasoning
Can you identify the component that executes each action? Can you distinguish a completed operation from a returned message about that operation? Can you recover from a lost response without repeating an irreversible action? Record the answers and repeat the exercise with a different dependency failure. These are practice checks, not an official exam scoring rubric.
Sources and review
Source links checked 2026-10-10. These exercises are independent CertLabs preparation, not official exam questions or a prediction of passing.
Continue exploring