🗺 Agents and Workflows
Agents and Workflows is 14.7% of CCDV-F, roughly eight of 53 items. That makes it the third-largest domain and worth real study time, but nowhere near the third of the exam that Applications and Integration takes. Budget accordingly: deep on mechanics here, deeper still there.
Items are pitched at the implementer. Expect to be asked what your code does when a response comes back with a tool-use stop reason, where tool results belong in the message list, which pattern fits a described task, why a loop never terminates, and what a growing conversation costs you. Expect very few items asking you to justify agents to a stakeholder; that is the architect's exam, not this one.
The idea that unlocks the domain: an agent is a loop, not a product category. The model proposes an action, your code executes it, you append the result to the conversation and call the model again, until a stopping condition fires. Prompt chaining, routing, parallelization, orchestrator-worker, evaluator-optimizer and subagents are all named arrangements of that same loop. Choose the simplest arrangement that solves the task, and never ship a loop whose ending you cannot name.
messages plus tools; if stop_reason is tool_use, append the assistant message verbatim (including its tool_use blocks), execute the tools, then send a user message whose content is tool_result blocks. Repeat until stop_reason is end_turn.tool_result carries the tool_use_id of the block it answers. Match by id, not by order or name.tool_use blocks. Execute them concurrently, then return all results in a single following user message.tool_choice: auto lets the model decide, any forces some tool, naming a specific tool forces that one. Use forcing for the first hop, then release to auto.end_turn, a turn cap, a token or cost budget, an explicit completion tool the model must call, or a no-progress detector. A loop with none of these is a bug, not an agent.tool_use block with no matching tool_result in the immediately following user message is rejected. If you skip, batch across turns, or reorder messages, the request fails.tool_result content with is_error set true. The model can then retry or route around it. Throwing kills the loop; returning nothing makes the model invent an outcome.max_tokens mid-block, the tool input JSON is incomplete. Branch on stop_reason before parsing, and treat max_tokens as a failure, never as completion.PILOT — the order in which you actually build an agentic loop.
stop_reason, append the assistant message verbatim, execute every tool_use block, return every tool_result keyed by tool_use_id in one user message, call again.Under exam pressure, PILOT also tells you where a described system is broken: a missing P means the wrong pattern, a missing O means a loop that never ends, a missing T means an agent that acts when it should have asked.
Practise this domain with original, exam-style questions.
Start practising free