Build Agents with Foundry Agent Service
Unlock the complete study guide + 1,040 practice questions across 16 full exams.
Bundled into the existing AI-103 premium course — no separate purchase.
14-day money-back guarantee — no questions asked.
Included in this chapter:
- What you declare, and what runs it
- Prompt agents, hosted agents, and sessions
- Instructions and tool definitions steer selection
- Built-in tools: the service does the calling
- OpenAPI tools and where the credential comes from
- MCP servers and the approval round trip
- Toolbox: one endpoint, promotable versions
- Memory, knowledge bases, and file search
- When to add a second agent, and how to wire it
- Agent identity and tool-access governance
- Evaluating agent behavior and finding root cause
- Exam-pattern recognition
Where the agent's logic runs
| Property | Prompt agent | Hosted agent | Responses API from your own process |
|---|---|---|---|
| Authoring surface | Foundry portal, SDK, or REST | Agent Framework, LangGraph, OpenAI Agents SDK, or custom code in a container | Any code you already run |
| Runtime code to maintain | None | Your agent logic | Your whole application |
| Compute to manage | None, fully managed | Container compute, Foundry-managed | Yours |
| How tools attach | Listed in the agent definition | Through a Toolbox MCP endpoint; direct tool attachment is unsupported | Passed on each Responses call |
| Entra identity | Yes | Dedicated per agent, created at deploy time | Your application's identity |
| Conversation state | Foundry-managed conversation | Conversation plus a per-session sandbox with persistent $HOME | You manage it |
| Cost model | Per-call inference plus tool usage | Inference, tools, and container compute | Inference plus tool usage |
Decision tree
Cheat sheet
Unlock with Premium — includes all practice exams and the complete study guide.
References
- Build with agents, conversations, and responses in Foundry Agent Service
- What is Microsoft Foundry Agent Service?
- Hosted agents in Foundry Agent Service
- Agent tools overview for Microsoft Foundry Agent Service
- Tool best practices for Microsoft Foundry Agent Service
- Custom Code Interpreter tool (preview)
- Azure Functions tool for Foundry agents
- Deep research with the Responses API
- Connect agents to OpenAPI tools
- Connect to MCP server endpoints for agents
- Create and use a Foundry Toolbox
- What is Foundry IQ?
- Connect agents to Foundry IQ knowledge bases
- Create and use memory in Foundry Agent Service (preview)
- Choosing between building a single-agent system or multi-agent system Well-Architected
- Connect to an A2A agent endpoint from Foundry Agent Service
- Enable an incoming A2A endpoint on a Foundry agent
- Build a workflow in Microsoft Foundry (preview)
- Govern MCP tools by using an AI gateway (preview)
- Agent evaluators for generative AI
- Built-in evaluators reference
- Observability in generative AI