The smallest unit: an augmented model

In one lineWhat matters is who picks the next step, not how many models run: code sets a workflow's path, while an agent picks steps from feedback.

Start with a concrete task: “Find the latest cancellation policy and tell me whether I can cancel tomorrow morning's booking.” Is one search sufficient, or must the system inspect versions, check exceptions, and ask for the exact time? The distinction is who chooses the next step, not how many models are involved.

A model can use retrieval, tools, and memory without every agent requiring all three. Workflows generally follow paths specified in code; agents let the model select subsequent steps using execution feedback. This is a useful design distinction, not the only definition of every product. Building effective agents

Five workflows and one agent

In one lineFive workflows and the agent each suit a kind of task. They are not a ranking and can combine; a fixed workflow may cost more than an agent.

Structure How it works When to use it
Prompt chaining Split the task into fixed steps, each step's output is the next one's input, with checks in between The steps are clear, and a little latency is worth the accuracy
Routing Classify first, then hand off to a specialized path Inputs differ a lot and are better handled separately
Parallelization Run independent subtasks at once (sectioning), or do the same thing several times and vote (voting) Subtasks do not depend on each other, or you want a steadier result
Orchestrator-workers One model breaks the task down on the fly, hands pieces to workers, and combines the results The subtasks cannot be listed in advance, such as which files a change must touch
Evaluator-optimizer One model generates, another evaluates and gives feedback, in a loop There are clear evaluation criteria, and feedback really improves the result
Agent The model decides every step in a loop, judges progress from the environment's feedback, and stops when the stopping condition holds Open-ended tasks where the number of steps and the path are unknown in advance

These are not levels in a sophistication ranking, and they can be combined. A fixed workflow calling many models concurrently may cost more than an agent that searches once. Inspect the actual execution.

The table's voting and evaluator-optimizer are what reasoning-model work calls test-time compute: sample one problem several times and vote, or let a verifier pick one. When the extra compute pays off is covered in Test-time compute: sampling, voting, and verifiers.

Five workflows and an agent

This figure needs JavaScript.

Follow one execution before memorizing pattern names

In one lineThe model proposes and the application validates; missing the booking time, it asks instead of guessing. A timeout does not mean no policy exists.

Continue with the booking policy. This is an action record for developers, not a request for a lengthy disclosure of internal reasoning:

Step Proposed action Application responsibility Observation
1 Search cancellation rules Validate search arguments and access Two versions of a notice
2 Open the notice with the later effective date Read authorized text and retain source positions A 24-hour condition and a venue-closure exception
3 Ask for the exact booking time Pause rather than invent missing information Await the user's reply
4 Answer using the applicable rule Check the source and time calculation A conclusion or a remaining uncertainty

ReAct interleaves reasoning, actions, and environmental observations. It does not require a separate “reasoning model” and “generation model.” A tool timeout is not evidence that no policy exists. Retries need limits, or the loop simply spends money repeatedly.

What do function calling and MCP each do?

In one lineModels propose calls; executors validate and run them. MCP only connects tools. Writes need confirmation and an idempotency key.

A model's tool-call output proposes a tool name and arguments; it does not grant permission to execute. The application's executor validates and makes the call, and must prevent tool-returned text from being treated as system instructions. MCP connects external tools at the protocol layer. It does not choose the plan, grant permissions, or establish that an answer is correct. The tools, MCP, and skills guide lays out these three layers in a table using one running example.

Read-only search and booking cancellation also carry different risks. One retrieves information; the other changes external state. A cancellation tool should require confirmation and use an idempotency key so a retry after a timeout does not duplicate the operation. Remembering an action mentioned in history does not authorize executing it.

For a complete example, see tools, MCP, and skills: follow a review-only request and separate task instructions, tool protocols, and execution permissions.

Deep research adds more than report length

In one lineWith conflicting policy versions, track open questions and evidence, fill gaps, and ask the user instead of guessing. Length is not the point.

Change the question to “How have these policies changed, and which exceptions still apply?” One retrieval may not suffice. Track unanswered questions, search for missing evidence, reconcile conflicts, then write conclusions. A small evidence table helps:

Question Evidence available Next step
When did the 24-hour rule take effect? A dated official notice Check for subsequent revisions
Is venue closure an exception? An explicit clause in the current policy Retain its source location, not just a summary
Which version applies to this booking? The booking date is missing Ask the user instead of guessing

The research-workflow guide explains when questions can run in parallel, why reposts are not independent evidence, and how to report unresolved questions when the budget runs out. It also provides a question queue, evidence records, and runnable citation checks. Those local tests check the code's logic only; they are not results from a live multi-agent experiment.

How to choose

In one lineTry one call with a good prompt and retrieval, then a workflow. Use an agent only when the path cannot be fixed, with a stopping rule and a budget.

  • Try a single call with a good prompt and retrieval first; many problems stop here;
  • if it can be a workflow, make it a workflow: each step can be tested and changed on its own;
  • switch to an agent only when the path truly cannot be fixed in advance, and give it a clear stopping condition and a budget.

A framework, or the API directly

In one lineStart with direct calls, then decide on a framework. Check that it stops or recovers on timeouts, denials, conflicts, step limits and lost write replies.

Start with a small direct implementation to understand state and failure paths, then decide whether a framework's persistence, recovery, and tracing are useful. Frameworks can save substantial work; you should still be able to inspect inputs, tool arguments, and execution results.

Test more than the happy path: simulate a timeout, denied access, conflicting sources, exhausted step budget, and a write that succeeds but loses its response. Stopping or recovering correctly matters more than adding agent boxes to a diagram.