Rubric
Contents — domains, guide and mocks

Workflow, agent or augmented LLM

CCAR-P 1.312 min read · checked 21 September 2026

Task statementSelect appropriate architectural patterns (workflow, agentic, augmented LLM)

The ladder of autonomy

more autonomy, cost and latency ↓

  1. Augmented LLMone call with retrieval, tools, memory
  2. Workflowyour code fixes the path; Claude does each step
  3. AgentClaude chooses the next step in a loop
  4. Multi-agent systemseveral agents coordinated (see 1.4)
Each rung adds flexibility and adds cost, latency and unpredictability. Climb only as far as the task needs — and measure before each step up.

The definitions that everything rests on

Anthropic’s “Building effective agents” draws the line that this task statement uses. Workflows are systems where LLMs and tools are orchestrated through predefined code paths. Agents are systems where the LLM dynamically directs its own process and tool use, keeping control over how it accomplishes the task. Both are built from the same block: the augmented LLM, a model enhanced with retrieval, tools and memory that it can use actively — writing its own search queries, choosing tools, deciding what to remember.

The augmented LLM

Claudeone request
  • Retrievalsearch the knowledge base
  • Toolsquery or act on systems
  • Memorynotes kept across turns
  • Instructionssystem prompt, examples
The building block of every pattern. On its own it is often the whole solution: one call that retrieves what it needs, uses a tool or two and answers.

The five workflow patterns

When one call is not enough but the path can be written down, a workflow keeps control in your code. Anthropic describes five recurring shapes. Learn each one with the signal that points to it, because items often describe the signal and not the name.

PatternHow it worksChoose it whenEnterprise example
Prompt chainingFixed sequence of calls; code gates between stepsThe task splits cleanly into known stepsDraft a policy summary, check it against a rule list, then translate
RoutingClassify the input, send it to a specialised pathDistinct input types need different handlingSend billing, fraud and technical tickets to different prompts or models
ParallelizationRun calls at once: independent sections, or votesSubtasks are independent, or you want several opinionsScreen a contract for five risk types at once; vote on a fraud flag
Orchestrator-workersA model splits the task at run time and delegatesYou cannot predict the subtasks in advanceUpdate every affected clause across a set of contracts
Evaluator-optimizerOne call drafts, another critiques, loopClear criteria exist and feedback measurably helpsRefine a regulator letter until it meets a style and content rubric

Two distinctions are worth holding onto. Parallelization and orchestrator-workers both fan out, but in parallelization your code fixed the subtasks beforehand, while the orchestrator decides them from the input. And routing is also a cost lever: the article notes that easy queries can go to a smaller, cheaper model and hard ones to a more capable one. Anthropic’s ticket-routing guide adds a practical twist — with more than about twenty categories, a hierarchy of classifiers can beat one flat classifier.

A routing workflow: code owns the pathpython
ROUTES = {
    "billing":   {"model": FAST_MODEL,    "system": BILLING_PROMPT},
    "fraud":     {"model": CAPABLE_MODEL, "system": FRAUD_PROMPT},
    "technical": {"model": FAST_MODEL,    "system": TECH_PROMPT},
}

def handle(ticket: str) -> str:
    # Step 1: one small call classifies the ticket.
    label = classify(ticket)            # returns "billing" | "fraud" | "technical"
    route = ROUTES.get(label)
    if route is None:
        return send_to_human(ticket)    # unknown label: fail safe, not creative

    # Step 2: the specialised prompt handles it. Code, not the model, chose this path.
    reply = client.messages.create(
        model=route["model"], max_tokens=1024,
        system=route["system"],
        messages=[{"role": "user", "content": ticket}],
    )
    return reply.content[0].text

When an agent is worth it

Anthropic’s guidance is to reach for agents on open-ended problems where the number of steps cannot be predicted and a fixed path cannot be hard-coded. An agent is, at heart, a model using tools in a loop and checking the results against the real environment at each step. That makes it powerful for work like resolving an IT incident or investigating an account anomaly, where each finding changes what to look at next.

The article is equally clear about the price. Agentic systems trade latency and cost for task performance; autonomy brings higher cost and the potential for compounding errors, so agents need extensive testing in sandboxed environments and appropriate guardrails. Two domains fit especially well: customer support, which combines conversation with actions such as looking up orders or issuing refunds, and coding, where automated tests give the agent objective feedback.

Choosing a pattern

What does the task need?
  • One judgement, known inputs
    Augmented LLMsingle call, retrieval, tools
  • Known steps, fixed order
    Workflowchain, route, parallelize, evaluate
  • Subtasks depend on input
    Orchestrator and workersmodel plans, code bounds it
  • Open-ended, unknown steps
    Agentloop, guardrails, checkpoints
Ask the questions in this order. Most enterprise processes stop at the first or second branch.

Workflow versus agent at a glance

Workflow

  • Path fixed in code; predictable and repeatable
  • Cost and latency known per request
  • Easy to test step by step and to audit
  • Breaks on inputs the designer did not foresee

Agent

  • Model chooses tools and steps at run time
  • Cost and latency vary per task
  • Needs sandbox testing, guardrails and stop rules
  • Adapts to inputs nobody anticipated

How you build it follows from the pattern

The article recommends starting with direct API calls — many patterns are a few lines of code — and adopting a framework only when you understand what it does underneath, since abstractions can hide the prompts and responses you need to debug. For agentic patterns, Anthropic offers three routes. With the Client SDK you call the API and implement the tool loop yourself. The Agent SDK is a Python and TypeScript library that runs the agent loop for you, with the same built-in tools, context management, hooks, subagents, permissions and MCP support as Claude Code. Managed Agents is a separate hosted API where Anthropic runs the agent and its sandbox, for long-running or asynchronous agents without your own infrastructure.

PatternUsual implementationWhat the architect still owns
Augmented LLMMessages API call with retrieval and toolsContext selection, output contract
WorkflowYour code calling the API step by stepGates between steps, error paths, routing rules
AgentAgent SDK, or a hand-written loop; Managed Agents if hostedTool permissions, stop conditions, human checkpoints

Traps the wrong answers are built from

Tempting but wrongDo this instead
Defaulting to an agent because the stakeholder said “agent”Match autonomy to the task: use an agent only when the steps cannot be predicted.
Forcing a rigid chain onto open-ended investigative workUse orchestrator-workers or an agent where the next step depends on what was just found.
Calling any system with a loop an “agent”If code fixes the roles and the exit, it is a workflow (for example, evaluator-optimizer).
Adopting a heavy framework before understanding the patternStart with direct API calls or a well-understood SDK, and know what it does underneath.
Shipping an agent without sandbox testing, guardrails or stop rulesConstrain tools and permissions, set limits and add human checkpoints before production.

You should now be able to

  • Define workflow, agent and augmented LLM, and explain how they relate.
  • Recognise the five workflow patterns from a scenario’s signals and name when each fits.
  • Decide when the unpredictability of a task justifies an agent’s extra cost and risk.
  • Assign different patterns to different processes within one engagement and justify each in business terms.
  • Choose between direct API calls, the Agent SDK and Managed Agents for an agentic design.

Practice questions

Original questions written for this lesson, in the exam’s style. Answer first, then open the reasoning — every option is explained, including why the wrong ones are tempting.

  1. Question 1

    A retailer receives supplier invoices in varied layouts. Every invoice goes through the same steps: extract fields, match to a purchase order in the ERP, flag mismatches, and post matched invoices.

    Which architecture is most appropriate?

    1. AAn autonomous agent with ERP tools that decides how to process each invoice.
    2. BA multi-agent system with an agent per step coordinating through a supervisor.
    3. CA prompt-chaining workflow: Claude extracts, code matches and gates, Claude explains mismatches.
    4. DA single call that returns the posted journal entry directly.
    Show answer and reasoning
    1. AIncorrect. The steps are identical every time; letting a model choose them adds cost and unpredictability for no gain.
    2. BIncorrect. Several agents multiply cost and coordination effort for a sequence that code can simply run.
    3. CCorrect. The path is fixed and known, so a workflow gives predictable cost and auditability, with code handling the exact matching.
    4. DIncorrect. Posting needs the deterministic PO match and a gate; one call cannot safely replace those steps.
  2. Question 2

    An internal IT team wants help resolving employee incidents. Tickets range from password resets to intermittent network faults whose cause takes several rounds of log searching, config checks and tests to find.

    For the hard, open-ended incidents, which pattern fits best?

    1. AAn agent with read-only diagnostic tools, a turn limit and engineer approval before any change.
    2. BA fixed prompt chain that always checks logs, then config, then network.
    3. CA single augmented call that reads the ticket and proposes a fix.
    4. DA parallel vote of five calls that each guess the root cause from the ticket.
    Show answer and reasoning
    1. ACorrect. The steps cannot be predicted in advance, so an agent fits; bounded tools, limits and a human checkpoint manage the compounding-error risk.
    2. BIncorrect. A rigid sequence cannot follow the investigation where the evidence leads, which is the nature of these incidents.
    3. CIncorrect. One call cannot gather the evidence across several systems that these incidents require.
    4. DIncorrect. Voting on a guess does not replace gathering evidence; the problem is missing information, not uncertain judgement.
  3. Question 3

    Which situations are signals for the evaluator-optimizer workflow? (Select 2.)

    1. AThere are clear criteria a second call can check a draft against.
    2. BThe number of steps cannot be predicted in advance.
    3. CHuman feedback on drafts has been shown to improve them measurably.
    4. DInputs fall into distinct categories that need different handling.
    5. ELatency must be as low as possible for a live customer.
    Show answer and reasoning
    1. ACorrect. Evaluator-optimizer depends on criteria the evaluator can apply to produce useful feedback.
    2. BIncorrect. That is the signal for an agent (or orchestrator-workers), not a draft-and-critique loop.
    3. CCorrect. If articulated feedback improves output, an LLM evaluator can often provide similar feedback automatically.
    4. DIncorrect. Distinct categories point to routing.
    5. EIncorrect. Iterative refinement adds round trips, so tight latency budgets argue against it.
  4. Question 4

    A bank’s architecture review board rejects a proposal for an agent that answers customers’ questions about fee schedules. The questions are varied, but every answer comes from one published fee document.

    What is the strongest basis for the board’s decision?

    1. AAgents cannot be used in regulated industries such as banking.
    2. BAgents always cost more than multi-agent systems, so neither should be used.
    3. CThe Agent SDK only supports coding tasks, not customer-facing ones.
    4. DA single retrieval-grounded call meets the need at lower cost and risk.
    Show answer and reasoning
    1. AIncorrect. There is no such blanket rule; agents can be used with appropriate controls when the task warrants them.
    2. BIncorrect. Multi-agent systems typically cost more than single agents, and cost alone is not the argument.
    3. CIncorrect. The Agent SDK is a general agent library; the objection is about pattern fit, not tool support.
    4. DCorrect. Varied questions do not make the path unpredictable: each needs one grounded answer from one source, so the simplest pattern wins.

Sources

Drafted with AI assistance and checked against the sources above; expert review is in progress. Spotted an error? Tell us and it gets fixed, dated and listed on how this is written.