Book

Building effective agents

by Erik Schluntz, Barry Zhang · 2024 · 1 reading card

AuthorErik Schluntz, Barry ZhangShelvesAgentic AI

1 card

  1. Building effective agents · 2024

    If you can draw the flowchart, build a workflow, not an agent.

    The text separates workflows (model and tools orchestrated through predefined code paths) from agents (the model directs its own process). Five workflow patterns: prompt chaining, routing, parallelisation, orchestrator–workers, evaluator–optimiser. The decision rule: if you can draw the flowchart, build the workflow — it is cheaper, testable, predictable. Move to an agent when the number of steps is unknown and the task needs the model's judgement at every step (open-ended coding, research). The agent's price: latency, spend, compounding errors. Start with the simplest thing that works and add autonomy only when measured evaluations say the workflow falls short.

    Consistently, the most successful implementations use simple, composable patterns rather than complex frameworks.

    Open the card