AI Architectures: A Layer-by-Layer Guide for Buyers
An AI architecture is the set of components in an AI system, what each does, and how data and decisions flow between them. A vendor-neutral layer map built from Microsoft, Google Cloud, Anthropic and the MCP specification, with the supplier questions and EU AI Act dates to plan around.
Article
An AI architecture is the set of components in an AI system, the job each one does, and how data, model calls and decisions move between them. In practice that means a client and API, an orchestration layer, memory, a model for inference, a knowledge layer for retrieval and a tools layer that takes actions. The useful question for a buyer is not which diagram looks modern, but who owns each layer and how it is logged.
This piece is a buyer's guide to that question. Our AI Architectures hub covers the systems we build; here the aim is narrower: a vendor-neutral map that a technical lead can hold up against a supplier's proposal, with the sources named next to each claim and our own analysis marked as ours.
What "AI architecture" means, and what it gets confused with
Search for the term and the pages that come up define it in several incompatible ways: as a general blueprint, as the internal design of an agent, or as a governance framework. Each is part of the picture. None is enough on its own.
The working definition we use is plain: the components, their responsibilities, and the flows of data and decisions between them. The point of that definition is that it forces one distinction early. Every step in an AI system is either a fixed rule written in code, a model call whose output is probabilistic, or a human decision. A good architecture diagram makes it obvious which is which. A weak one draws all of them as identical boxes.
The layers of a production AI system
Microsoft's Azure Well-Architected guidance on AI workloads splits an intelligent application into a client layer, an intelligence layer (API, orchestration and agent compute, conversation management), an inferencing layer, a knowledge layer and a tools layer. It is one vendor's view written around Azure, not a standard, but the layering is general enough to reuse. The table below is our reading of it, with the risk we see in each layer and the question we would put to a supplier.
| Layer | What it does | Where risk builds up (our analysis) | Question for a supplier |
|---|---|---|---|
| Client and API | The only public entry point | Authentication, rate limits, prompt injection arriving from users | Which endpoints are exposed, and who can call them? |
| Orchestration and agent compute | Decides which step runs next | A single point of failure; hidden loops that add cost | Is the control flow fixed code, or does the model choose it? |
| Conversation memory | Keeps state between turns | Retention of personal data is a GDPR question | How long is each conversation kept, and where? |
| Inference | Runs the model | Data leaving the region; model changes without notice | Hosted API, private cloud or on-premise, and how is the model pinned? |
| Knowledge (retrieval) | Finds the documents a model answers from | Returning documents a user is not allowed to see | Is retrieval permission-aware, and are sources logged? |
| Tools | Takes actions in other systems | Irreversible real-world effects | Which actions need human approval? |
| Training and fine-tuning | Adapts a model to the task | Cost and data handling for something often unnecessary | Why is training needed at all here? |
Microsoft is direct about the tools and training rows. It says the tools layer "carries the highest risk because actions can have real-world consequences that are potentially irreversible", and recommends human approval steps for high-risk operations. It also says training and fine-tuning components are optional when a workload uses only pretrained models. Our view is that the training row is where scope quietly grows; it is worth asking for the reason in writing.
The knowledge layer has the longest pedigree. The 2020 paper by Lewis et al. that named retrieval-augmented generation described it as a way to "combine pre-trained parametric and non-parametric memory": the model's own weights on one side, an external index of documents on the other. That framing still explains the main trade-off. Retrieval grounds answers in documents that can be updated and cited; it reduces the room for invented answers but does not remove it. Our comparison of RAG vs fine-tuning goes further into when each fits.
Workflows before agents: choosing a pattern
The orchestration layer is where most architectural argument happens, and the clearest framing comes from Anthropic's engineering post Building effective agents (19 December 2024). It separates workflows, "systems where LLMs and tools are orchestrated through predefined code paths", from agents, where the model directs its own process and tool use. It lists five workflow patterns: prompt chaining, routing, parallelisation, orchestrator-workers and evaluator-optimiser. Its headline advice is to find "the simplest solution possible, and only increasing complexity when needed."
Google Cloud's Architecture Center reaches a similar place from the other direction. Its guide to choosing a design pattern for an agentic AI system catalogues multi-agent patterns (sequential, parallel, loop, review and critique, coordinator, hierarchical task decomposition, swarm), and still recommends that teams early in agent development start with a single agent.
Our reading: the patterns are a menu, not a ladder to climb. A fixed workflow is easier to test, cheaper per task because it makes fewer model calls, and easier to explain to an auditor. Each move towards an autonomous agent, and then towards several agents, buys flexibility at the cost of more calls, more failure paths and harder evaluation. Before approving a multi-agent design we ask what the single-agent version failed to do, how the agents' hand-offs are logged, and how the whole system is evaluated end to end rather than agent by agent. Our page on multi-agent systems covers where the extra cost is worth it.
The connectors: MCP and REST
Microsoft's guidance notes that tools or agents can be called "in a standardized way, whether that's through MCP," an agent-to-agent protocol, or OpenAPI/REST. The Model Context Protocol specification (version 2025-11-25) describes MCP as an open protocol connecting LLM applications to external data sources and tools.
The specification is blunt about risk: "Tools represent arbitrary code execution and must be treated with appropriate caution." Our analysis is that this should shape the diagram, not just the code. Each tool server should run with the narrowest permissions it needs, its descriptions should be treated as untrusted input, and each connector should be replaceable so that a model or vendor change does not mean rebuilding the tools layer. More on this in our Model Context Protocol explainer.
Governance built into the architecture
Governance that lives only in a policy document does not survive the first incident. It has to appear as components. Microsoft recommends recording "which sources were retrieved for each response through audit trails" so that decisions can be explained and investigated later. We would extend that to every tool call and every human approval.
A recent academic contribution points the same way. A reference architecture for integrating agentic AI into enterprise software organises the architectural capabilities it identifies into ten responsibilities. We have not reproduced the list here because the abstract does not enumerate it, but the framing (responsibilities rather than products) is the right unit for a buyer.
External frameworks are worth mapping the layers against. The NIST AI Risk Management Framework, AI RMF 1.0, was released on 26 January 2023 for voluntary use, and NIST followed it with a Generative AI Profile (NIST-AI-600-1) on 26 July 2024. In the EU, the European Commission's AI Act page states that the Act entered into force on 1 August 2024 and became applicable in August 2026, with some exceptions; under the AI Omnibus, high-risk deadlines moved to December 2027 for Annex III systems and August 2028 for Annex I systems. These dates have already moved once, so check the Commission's page before relying on them, and treat this as orientation, not legal advice. Our EU AI Act page tracks the obligations in more detail.
What this means for your project
Drawn from our own service pages, this is how the map turns into work:
- Retrieval first, if the problem is answering from documents. Our RAG Systems service covers ingestion, permissions, retrieval, source citations, evaluation and production deployment. The permissions and citation pieces are the ones that matter for the knowledge-layer row above.
- Orchestration built for the workload. Custom LLM Orchestration is routing, tool use and multi-step reasoning across models. In line with Anthropic's and Google's advice, we would start with a fixed workflow or a single agent and justify each step up.
- Audit as a component. Secure Data Pipelines handles ingestion, permissions and audit for regulated or confidential data, which is where the audit trails Microsoft recommends actually get built.
The practical deliverable is the same in each case: an architecture diagram in which every layer has a named owner, a log and a documented way to swap it out.
What to ask a supplier for
A short list we would put in any request for proposal:
- A diagram that marks each step as rule, model call or human decision, with an owner and a log for every layer.
- Data residency for each layer separately, since inference, memory and the vector store can sit in different places.
- An evaluation and observability plan that covers the whole system, not only the model.
- An exit plan for the model and the vector store.
- A reason in writing for any training, fine-tuning or extra agent.
If it would help to put a current proposal against this map, our AI Architectures hub explains how we scope that work, and a short call is usually enough to see which layers need attention.
- Microsoft's layer model
- Microsoft's Azure Well-Architected guidance splits an intelligent AI application into client, intelligence (API, orchestration and agent compute, conversation management), inferencing, knowledge and tools layers.
- Highest-risk layer
- Microsoft names the tools layer as the highest-risk layer, because actions can be irreversible, and recommends human approval steps for high-risk operations.
- Workflows versus agents
- Anthropic separates workflows, where LLMs and tools follow predefined code paths, from agents, where the model directs its own process and tool use, and advises starting with the simplest solution.
- Start with a single agent
- Google Cloud's Architecture Center recommends that teams early in agent development start with a single agent before adopting multi-agent patterns.
- MCP tools need consent
- The Model Context Protocol specification (2025-11-25) says tools represent arbitrary code execution and that hosts must obtain user consent before invoking a tool.
- EU AI Act timing
- The European Commission says the AI Act entered into force on 1 August 2024 and became applicable in August 2026, with some exceptions; the AI Omnibus moved high-risk deadlines to December 2027 (Annex III) and August 2028 (Annex I).
Questions about this project.
What are the main layers of an AI architecture?
Microsoft's Azure Well-Architected guidance describes a client layer, an intelligence layer (API, orchestration and agent compute, conversation management), an inferencing layer, a knowledge layer and a tools layer. It notes that training and fine-tuning components are optional when only pretrained models are used. It is one vendor's model, but the layering transfers well to other platforms.
Should an AI system be built as a workflow or as an agent?
Anthropic defines workflows as LLMs and tools orchestrated through predefined code paths, and agents as systems where the model directs its own process. Anthropic advises the simplest solution that works, and Google Cloud recommends starting with a single agent. Our view is that a fixed workflow is easier to test and explain, and each step towards autonomy should be justified by something the simpler design could not do.
Which layer of an AI system carries the most risk?
Microsoft names the tools layer, because actions in other systems can have irreversible consequences, and recommends human approval for high-risk operations. The Model Context Protocol specification similarly treats tools as arbitrary code execution that needs user consent before it runs.
Does retrieval-augmented generation stop a model making things up?
No. The original RAG paper by Lewis et al. describes combining a model's parametric memory with a non-parametric document index. Retrieval grounds answers in documents that can be updated and cited, which reduces the room for invented answers, but it does not remove it. Evaluation and source logging are still needed.
Which EU AI Act dates matter for an AI architecture?
According to the European Commission, the Act entered into force on 1 August 2024 and became applicable in August 2026, with some exceptions. Under the AI Omnibus, high-risk deadlines moved to December 2027 for Annex III systems and August 2028 for Annex I systems. These dates have moved before, so check the Commission's page; this is orientation, not legal advice.