Agentic Patterns
Build the common agentic patterns - chaining, routing, parallelization, orchestrator-workers, and evaluator-optimizer - visually in ByteChef using flow controls and AI Agents.
Agentic systems are usually composed from a small set of patterns instead of one agent that does everything. You build each pattern on the workflow canvas by combining flow controls with the AI Agent. No framework code is required.
The five patterns below follow the taxonomy from Anthropic's Building Effective Agents. Each section names the ByteChef building blocks for the pattern.
Prompt Chaining
Split a task into a fixed sequence of steps where each step's output is the next step's input. Build it as a linear sequence of tasks on the canvas: AI Agent (or LLM) steps in order, passing data with data pills. Add a Condition between steps as a gate when a stage should only run if the previous output passes a check.
Routing
Classify an input and send it to a specialized path. Use a Condition or Branch flow control, typically after an AI Agent step that classifies the input, to send each case to its handler. Each branch can use a different model, prompt, or set of tools.
Parallelization
Run independent subtasks at the same time, then combine the results. Choose the flow control by the shape of the work:
- Each / Map - apply the same steps to every item of a list in parallel. Map collects the results.
- Parallel - run several distinct task lists concurrently.
- Fork-Join - run isolated branches in parallel, each with its own context, then join.
Orchestrator-Workers
A central agent splits a job into subtasks and delegates each one to a specialized worker. There are two ways to build it:
- Inside one agent - attach the Task tool from the Agent Utils toolset and define subagents. The agent delegates to them at run time.
- As a workflow topology - use Subflow. An orchestrating workflow starts child workflows that run in isolation and return their results.
Evaluator-Optimizer
One agent produces a result and another evaluates it and returns feedback, in a loop until the result passes. Use a Loop flow control with Loop Forever turned on and two AI Agent steps (a generator and an evaluator). Add a Condition on the evaluator's verdict that runs Loop Break when the result passes. For grading agent outputs systematically, see Agent Evals.
Combining Patterns
The patterns combine: a router that sends work to parallel workers, an orchestrator whose workers each run a chain, or an evaluator-optimizer loop around any of these. All patterns use the same flow controls and agent nodes, so they nest on one canvas.
How is this guide?
Last updated on