Chapter 5. Agent Architecture
Agents create a set of architectural challenges that traditional software design was never intended to solve. Conventional applications operate in tightly defined contexts: they take input, run through predetermined workflows, and deliver output. This model works well when problems are predictable and the rules are clear. But agents face a different reality. They must act in open-ended environments, where information may be incomplete, situations can change unexpectedly, and the next step is rarely obvious in advance.
To function effectively under these conditions, agents need capabilities that ordinary applications lack. They must be able to make autonomous decisions without constant human guidance, potentially adjust their plans dynamically as new data or constraints emerge, and collaborate with other agents in ways that are both coordinated and efficient. Just as importantly, they must sustain coherent behavior over long interactions, so that their decisions in one moment remain consistent with the goals and context established earlier. These requirements transform autonomy, adaptability, and persistence into central design considerations.
Meeting these demands requires more than incremental improvements to existing software practices. It calls for a structured approach to agent architecture—one that treats autonomy, coordination, and continuity as fundamental design principles rather than afterthoughts. This chapter introduces such an approach, ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access