Agentic AI
Three Generations of AI Agent Architectures: From Simple Chains to Code-Based Systems
Agentic AI systems have evolved through three paradigms—chains, graphs, and code—each offering different tradeoffs between complexity, reliability, and cost for production deployments.
InfoQ
Building reliable AI agents has undergone a fundamental transformation over the past few years. What started as ad-hoc prompt sequences bundled with glue code has matured into structured execution frameworks that wrap non-deterministic language models in production-grade scaffolding. This progression reflects hard-won lessons from real-world deployments across three distinct architectural paradigms.
The Linear Era: Chains and Their Limits#
The earliest agentic systems relied on chains—simple linear workflows stringing together prompt outputs as inputs to subsequent steps. This approach was intuitive and fast to prototype: text flows from one step to the next, with minimal orchestration overhead. A typical chain might route incoming queries, retrieve relevant data via tool calls, and then generate a final response.
LinkedIn's early Hiring Assistant used this model with three sequential steps: routing decisions to classify the task, retrieval to gather information through APIs and search tools, and generation to synthesize grounded responses. The architecture was essentially the language model itself treated as a black box—feed in text, get text back.
However, simplicity came at a cost. A single error upstream cascaded through the entire flow with no recovery mechanism. Building the initial prototype was fast, but reaching production quality demanded extensive prompt engineering, evaluations, and iterative refinement to close the final quality gap. These systems epitomized "best-effort" engineering: fragile and difficult to scale with confidence.
Adding Structure: The Graph Revolution#
As use cases grew more complex, linear chains proved inadequate. Teams responded by adopting graph-based architectures, where nodes represent distinct tasks and edges define control flow. This shift paralleled similar evolutions in data pipelines and distributed systems.
The innovation wasn't simply branching—it was making control flow explicit and declarative. Rather than embedding logic in prompts, developers defined structured execution plans that could be inspected, modified, and reasoned about. This enabled conditional routing, parallel execution, retry logic, and sophisticated state management across multiple steps.
Complex tasks often required multiple specialized agents coordinated by a top-level orchestrator, spurring the adoption of agent-to-agent communication protocols like A2A. Human-in-the-loop mechanisms became critical, with agents requesting clarification or approvals at key decision points rather than running fully autonomously.

