Skip to content
  1. Home
  2. AI agents
  3. What is an AI agent?
  4. Anatomy of an AI agent

Plan · What is an AI agent?

Anatomy of an AI agent: the parts and where each one lives

An AI agent is built from a model, instructions, tools, knowledge, memory and the orchestration that runs the loop, with an identity, a human approval step, guardrails and observability around them. Each part lives in a named product on Microsoft, AWS and Google. Developers add skills, which package instructions for a task, and AGENTS.md files for coding agents.

In this guide: 83 pages

Key takeaways

  1. The minimum anatomy is three parts, model, tools and instructions, and the enterprise anatomy adds knowledge, memory, orchestration, identity and human approval. Each maps onto a product you can name on all three clouds.
  2. The model never runs a tool. Your runtime does, which is where policy, identity and logging belong.
  3. Identity is now part of the anatomy: AgentCore Identity has been generally available since 13 Oct 2025, Copilot Studio has created a Microsoft Entra Agent ID for every new agent since July 2026, and Google issues a SPIFFE-based identity.
  4. Skills package the instructions and files for one task so an agent loads them only when needed; AGENTS.md is the file at the root of a repository that tells coding agents how to work there. Both are now Agentic AI Foundation projects under the Linux Foundation.
One agent definition, illustrative: an order-change agentAn illustrative definition for an order-change agent, with eight fields. Model: a router that picks per request. Instructions: find the order, propose the change, never touch price or cancel. Tools: order lookup and purchase-order lookup run freely, order change needs approval. Knowledge: the order policy library with the user’s SharePoint permissions. Memory: session only, nothing kept across sessions. Orchestration: a single agent with a limit of twelve turns. Identity: a Microsoft Entra agent identity acting on behalf of the signed-in representative. Human approval: every order change, with the before and after lines shown.Agent definition: order-change-agent, version 3 (illustrative)8 fieldsModelmodel router, balanced;strong model to plan,small model to extractInstructionsfind the order, proposethe change, draft reply;never price or cancelToolsorder lookup: freePO lookup: freeorder change: approvalKnowledgeorder policy libraryon SharePoint, with theuser’s own permissionsMemorysession only;nothing kept acrosssessions in version 3Orchestrationsingle agent;max 12 turns, thenhand to a personIdentityEntra agent identity;acts on behalf of thesigned-in representativeHuman approvalevery order change;before and after linesshown to the approverOne agent definition, illustrative: an order-change agentAn illustrative definition for an order-change agent, with eight fields. Model: a router that picks per request. Instructions: find the order, propose the change, never touch price or cancel. Tools: order lookup and purchase-order lookup run freely, order change needs approval. Knowledge: the order policy library with the user’s SharePoint permissions. Memory: session only, nothing kept across sessions. Orchestration: a single agent with a limit of twelve turns. Identity: a Microsoft Entra agent identity acting on behalf of the signed-in representative. Human approval: every order change, with the before and after lines shown.order-change-agent, v3 (illustrative)Modelmodel router, balanced;strong model to plan,Instructionsfind the order, proposethe change, draft reply;Toolsorder lookup: freePO lookup: freeKnowledgeorder policy libraryon SharePoint, with theMemorysession only;nothing kept acrossOrchestrationsingle agent;max 12 turns, thenIdentityEntra agent identity;acts on behalf of theHuman approvalevery order change;before and after lines
One agent definition, illustrative: the six parts inside the agent and the two controls that every tool call passes through. Every field here corresponds to a setting in Copilot Studio, Microsoft Foundry, Amazon Bedrock AgentCore or Gemini Enterprise Agent Platform.

What are the parts of an AI agent?

Ten, if you count the controls. Inside the agent: model, instructions, tools, knowledge, memory and orchestration. Around it: runtime, identity, human approval, and observability with evaluation and a registry record. OpenAI’s minimum anatomy is the first three; Anthropic calls the model with retrieval, tools and memory added the augmented LLM.

The ten parts, the decision each one forces, and what goes wrong without it.

PartWhat it isThe decision you makeWhat goes wrong without it
ModelThe reasoning engine that reads the situation and writes the next tool callWhich model plans, which cheaper one handles routine steps, and whether a router picks per requestNo way to trade cost against quality per step
InstructionsThe system prompt: goal, rules, persona, forbidden actionsWhat the agent must never do, and how it hands offThe model fills the gaps with its own defaults
ToolsNamed operations with a description and a JSON schema the model can requestWhich tools, how many at once (vendors say under 20 active), and which need approvalWrong tool or wrong arguments, which Anthropic reports as the most common failure
KnowledgeSearch over company content, returning only what the user may seeIndexed or live retrieval, and whose permissions applyConfident answers from documents the user should never have seen
MemoryWhat the agent keeps within a session and across sessionsWhat to remember, for how long, and who can read itRepeated questions, or a memory poisoned through ordinary queries
OrchestrationThe loop, a fixed workflow, or several agentsSingle agent first; a workflow for fixed steps; multi-agent only for broad parallel workToken cost about 15 times a chat for multi-agent, and conflicting decisions between agents
RuntimeIsolated sessions, scaling and stateA managed runtime or your own containersShared sessions, and state lost after a crash
IdentityThe agent’s own login, acting for a user or as itselfDelegated or autonomous access per tool; no shared credentialsUnattributable actions, and Conditional Access that never applies
Human approvalA pause on risky steps with the tool and its arguments shownWhich tools need it, who approves, and what happens on timeoutIrreversible actions with nobody accountable, or approval fatigue
Observability, evaluation and registryTraces of every call, tests against acceptance criteria, a record with an ownerWhat to log (content off by default), what the pass bar is, who owns the agentFailures with no error signal, and an agent nobody can switch off

How do the parts work together on one request?

A request can touch every part in a single turn. The runtime starts a session under the agent’s identity, the model reads instructions, memory and the tool list, picks a tool, the call passes guardrails and policy, the runtime runs it, the result returns to the model, and the trace records all of it.

Take the illustrative order-change agent in the diagram. A service representative pastes a customer email into Teams. The runtime opens a session under the agent’s identity, acting on behalf of that representative, so every downstream call carries her permissions and no more. The model reads its instructions (find the order, propose the change, never touch price), the email, and the definitions of the tools it may call.

It asks for the order-lookup tool with the order number it extracted. Before the call runs, two checks happen outside the model: a guardrail on the tool call (is this tool allowed for this agent, with these arguments?) and the identity check at the system of record (may this representative read this order?). The runtime runs the call, appends the result, and the model proposes a change. The order-change tool is marked as needing approval, so the run pauses with the exact arguments shown to the representative. She approves, the runtime executes the change through a deterministic flow, and the trace records the model calls, the tool calls, the approval and the tokens used.

Memory decides what the next request looks like. Session memory keeps the conversation within the task. Cross-session memory, if the design allows it, would let the agent recall that this customer always ships to the same warehouse. Most first agents should run without it, because what the agent remembers is data that needs retention rules and access control, and because the MINJA paper (March 2025, revised February 2026) showed an agent’s memory can be poisoned through ordinary queries alone, with no write access.

What are agent skills and AGENTS.md?

Both are files that carry instructions for an agent. A skill is a folder with a SKILL.md file (a name, a description and instructions, plus optional scripts and reference files) that an agent loads only when a task matches its description. AGENTS.md is a Markdown file at the root of a code repository that tells coding agents how to work in that project.

Skills solve a context problem: an agent that knows many procedures would otherwise carry all of them in its prompt on every call. With skills it loads only each skill’s name and description at startup, reads the full SKILL.md when a task matches, and runs any bundled scripts as it goes; the format calls this progressive disclosure. Anthropic released the format as an open standard, and on 22 Oct 2026 the Agentic AI Foundation, under the Linux Foundation, took it in as a project alongside MCP and A2A. The platforms followed: Microsoft Foundry Toolboxes carry skills (preview), Google’s Skill Registry entered preview on 19 May 2026, AWS Agent Registry stores skills as a record type, and the AgentCore managed harness is configured with a model, tools, skills and instructions.

AGENTS.md started with OpenAI and became a founding project of the Agentic AI Foundation on 9 Dec 2025, together with MCP and goose. The file sits at the root of a repository, with nested files in subprojects taking precedence, and holds setup commands, code style, testing and pull-request instructions, and security notes. The project site lists Codex, GitHub Copilot’s coding agent, Cursor, Gemini CLI, goose and others as readers, and says more than 60,000 open-source projects carry one. OpenAI’s current model guide notes that GPT-6 Astra is more sensitive to instructions in skills and AGENTS.md files than earlier models, which is the practical reason to version both as code and rerun the evaluation set when they change.

For an IT leader the two matter for one reason: they are instructions that change the agent’s behaviour without a release of the agent itself. Treat them as configuration under change control, with an owner and a review, the same as a prompt.

Which parts of an agent need controls of their own?

Four: identity, human approval, guardrails and observability. They sit outside the model because the model can be steered by what it reads, so the limit has to be enforced by software the model cannot edit.

Identity: each agent gets its own identity object, from an identity blueprint in Microsoft Entra, a workload identity in the AgentCore Identity directory, or a SPIFFE-based principal on Google Cloud. Per tool you decide whether it acts for a user (the token is exchanged for one scoped to the downstream system, so the agent can never exceed the user’s rights) or as itself. Microsoft’s docs say reusing user accounts for agents breaks Conditional Access, ID Protection and governance.

Human approval: a tool marked as needing approval pauses the run with the tool name and arguments. Microsoft Agent Framework uses approval_mode set to always_require, the Foundry MCP tool defaults require_approval to always, the OpenAI Agents SDK uses needs_approval, LangGraph uses interrupt, and Google ADK uses require_confirmation (experimental). Approval responses must be bound to the pending request, or a replayed message can approve a privileged call.

Guardrails: checks on input from every untrusted channel, including tool results, and a deterministic policy on tool calls. AgentCore Policy (GA 3 Mar 2026) evaluates Cedar rules on every tool request through the Gateway; Foundry agent guardrails add tool-call and tool-response intervention points (preview); Google Agent Gateway is the policy point every tool call passes through, with Model Armor inline.

Observability: OpenTelemetry spans for each agent invocation, model call and tool call (the GenAI conventions are still in Development status), with token counts and latency recorded by default and prompts, arguments and results captured only by opt-in. The registry record ties the traces to an owner, a risk tier and an approval state, so an incident starts from the record. The guardrails, identity, observability and registry topics each have their own pages.

How do Microsoft, AWS and Google implement it?

Where each part lives on the three clouds, with statuses as the vendor pages showed on 2 Nov 2026.

Capability, Microsoft, AWS, Google

CapabilityMicrosoftAWSGoogle
ModelFoundry Models catalog with the model router; Copilot Studio model pickerAmazon Bedrock models; Intelligent Prompt Routing (GA 22 Apr 2025)Gemini 4 Argon (GA 13 Oct 2026) and Model Garden
Instructions and definitionPrompt agents in Foundry (configuration only); agent instructions in Copilot Studio; immutable agent versionsAgentCore harness configuration; Runtime immutable versions with named endpointsADK agent definitions; Agent Runtime revisions with traffic splitting (preview since 19 May 2026)
ToolsFoundry Toolboxes (one MCP endpoint, preview); Power Platform connectors; MCP in Copilot Studio (GA 29 May 2025)AgentCore Gateway turns OpenAPI, Lambda and MCP targets into tools (GA 13 Oct 2025)Agent Gateway (GA 18 Jun 2026); Gemini function calling
KnowledgeFoundry IQ knowledge bases (GA 2 Jun 2026); Azure AI Search; SharePoint; Copilot connectorsBedrock Knowledge Bases; managed knowledge bases on AgentCore (17 Jun 2026)Agent Search and Agent Retrieval in the Agent Platform; Gemini Enterprise connectors
MemoryFoundry memory (preview); Copilot Studio memory on the GitHub Copilot harnessAgentCore Memory (GA) with semantic, summary, user-preference and episodic strategiesAgent Platform Memory Bank; memory profiles GA 15 Jul 2026
OrchestrationCopilot Studio harnesses; Microsoft Agent Framework 1.0 (GA 3 Apr 2026); Foundry multi-agent workflows (preview since 25 Nov 2025)AgentCore harness (GA 17 Jun 2026); Strands Agents 1.0; Step Functions for fixed stepsADK Python 2.0 graph workflows (GA 19 May 2026)
IdentityMicrosoft Entra Agent ID (GA); created automatically for new Copilot Studio agents since July 2026AgentCore Identity (GA 13 Oct 2025), with on-behalf-of token exchange since April 2026Agent Identity, SPIFFE-based; API in preview since 18 Jun 2026
Human approvalAgent Framework approval_mode; Foundry MCP tool require_approval; Copilot Studio multistage approvals (preview)Harness return-of-control and human-in-the-loop tools; Step Functions callbacksADK require_confirmation (experimental); computer use tool safety policy (GA 30 Oct 2026)

Google’s release notes carry two labels for Agent Identity, so this page calls the API a preview. Foundry memory and Toolboxes were preview on 2 Nov 2026.

Frequently asked questions

What is the minimum an AI agent needs?

A model, instructions and tools, which is OpenAI’s minimum anatomy, plus a loop to run them. For an enterprise add knowledge with the user’s permissions, an identity of its own, an approval step on writes, and traces. Memory and multi-agent orchestration come later, if the evaluation results ask for them.

What is the difference between a tool, a skill and an MCP server?

A tool is one operation the model can request, defined by a name, a description and a schema. An MCP server is a service that exposes tools over the Model Context Protocol, so any agent with an MCP client and the right authorization can call them. A skill is a folder of instructions and files that teaches the agent how to do a task, often by using several tools in order.

Does every agent need memory?

No. Session memory within a task comes with the runtime or framework. Cross-session memory is a design choice with retention and access rules attached, because what the agent remembers is data. Start without it and add it when the evaluation set shows the agent repeating questions it should already know the answer to.

What is AGENTS.md, and should we use it?

A Markdown file at the root of a repository that tells coding agents how to build, test and submit changes in that project. Codex, GitHub Copilot’s coding agent, Cursor, Gemini CLI, goose and others read it, and the Agentic AI Foundation stewards it. If your developers use coding agents, write one, keep it short, and review it like code.

Where should the limits on an agent be enforced?

Outside the model: identity at token issuance, policy at the tool call, approval before a write, and checks on every input channel. Instructions tell the model what you want; the controls make sure of it when the model is wrong or has been talked into something.

More in What is an AI agent?

Sources

Each source was read on 2 November 2026. The date shown is the date on the page, or the page’s ms.date for Microsoft Learn; an undated page shows the date it was read.

  1. A practical guide to building agents (PDF) OpenAI, undated page, read 2 November 2026. The PDF carries no date; press coverage dates it to April 2025.
  2. Building effective agents Anthropic, 19 December 2024
  3. What is Microsoft Foundry Agent Service? Microsoft Learn, 26 October 2026
  4. Toolbox overview (Microsoft Foundry) Microsoft Learn, 26 October 2026
  5. What’s new in Microsoft Foundry, Build 2026 Microsoft Developer Blogs, 2 June 2026
  6. Harnesses in Copilot Studio Microsoft Learn, 19 October 2026
  7. What’s new in Copilot Studio Microsoft Learn, 22 October 2026
  8. Microsoft Entra Agent ID key concepts Microsoft Learn, 3 April 2026
  9. Tool approval (Microsoft Agent Framework) Microsoft Learn, 22 October 2026
  10. Model Context Protocol tool (Microsoft Foundry Agent Service) Microsoft Learn, 28 October 2026
  11. Guardrails and controls in Microsoft Foundry Microsoft Learn, 20 October 2026
  12. Introducing multi-agent workflows in Foundry Agent Service Microsoft Developer Blogs, 25 November 2025
  13. Microsoft Agent Framework 1.0 Microsoft Developer Blogs, 3 April 2026
  14. AgentCore harness AWS documentation, undated page, read 2 November 2026
  15. AgentCore Memory strategies AWS documentation, undated page, read 2 November 2026
  16. Amazon Bedrock AgentCore is now generally available AWS Machine Learning Blog, 13 October 2025
  17. Top announcements of the AWS Summit in New York, 2026 AWS News Blog, 17 June 2026
  18. AgentCore Identity key features and benefits AWS documentation, undated page, read 2 November 2026
  19. Amazon Bedrock AgentCore release notes AWS documentation, undated page, read 2 November 2026
  20. Policy for Amazon Bedrock AgentCore generally available AWS What’s New, 3 March 2026
  21. Use Amazon Bedrock Intelligent Prompt Routing for cost and latency benefits AWS Machine Learning Blog, 22 April 2025
  22. Agent Identity overview (Google Cloud IAM) Google Cloud, undated page, read 2 November 2026
  23. Gemini Enterprise Agent Platform release notes Google Cloud, 28 October 2026
  24. Tool confirmation (Google ADK) Google, undated page, read 2 November 2026
  25. Human in the loop (OpenAI Agents SDK) OpenAI, undated page, read 2 November 2026
  26. Function calling guide OpenAI, undated page, read 2 November 2026
  27. Latest model guide (GPT-6 family) OpenAI, undated page, read 2 November 2026
  28. Interrupts (LangGraph) LangChain, undated page, read 2 November 2026
  29. Advanced tool use Anthropic, 24 November 2025
  30. How we built our multi-agent research system Anthropic, 13 June 2025
  31. Memory Injection Attacks on LLM Agents via Query-Only Interaction (MINJA, arXiv 2503.03704) arXiv, 12 February 2026. First posted 5 Mar 2025; the date shown is version 5.
  32. Semantic conventions for GenAI agent spans OpenTelemetry (GitHub), undated page, read 2 November 2026
  33. Semantic conventions for GenAI spans (content capture is opt-in) OpenTelemetry (GitHub), undated page, read 2 November 2026
  34. Don’t Build Multi-Agents Cognition, 12 June 2025
  35. AGENTS.md: a simple, open format for guiding coding agents Agentic AI Foundation, undated page, read 2 November 2026
  36. Agent Skills overview Agent Skills project, undated page, read 2 November 2026
  37. Agentic AI Foundation announces four new projects: Agent Skills, Open Responses, OpenEnv and OpenSandbox Linux Foundation, 22 October 2026
  38. Linux Foundation announces the formation of the Agentic AI Foundation Agentic AI Foundation, 9 December 2025

Planning an AI program?

Talk to the team that builds it and runs it after launch.

  • Built to SOC 2, HIPAA and GDPR standards
  • EU AI Act-aligned delivery
  • Microsoft Solutions Partner