Domain 2: Implement Generative AI and Agentic Solutions (Part 2 of 3)
This lesson covers 5 exam topics: Designing Agents: Roles, Goals, Conversations, Tool Schemas, Function Calling, Retrieval and Memory in Agents, Integrating Agent Tools: Search, MCP, APIs, Content Understanding, Multi-Agent Orchestration, Safeguards and Approvals in Autonomous Workflows. Each topic has a short video, then the notes: key facts, exam traps and what to check in the official docs.
1. Designing Agents: Roles, Goals, Conversations, Tool Schemas
Central question: What must you decide before building an agent?
Design elements (design guidance on verified features)
| Element | Decide |
|---|---|
| Role and goal | Instructions: who the agent is, what success means, scope, refusals |
| Agent type | Prompt, voice-based prompt, or hosted agent |
| Conversation tracking | Conversations for short-term context; long-term memory store for preferences |
| Tool schemas | Function name, description, typed parameters; precise descriptions drive correct tool choice |
| Knowledge | File search, AI Search, Foundry IQ |
| Guardrails | Input, tool call, tool response, output controls |
Function tools are configured with the SDK or REST API (the portal can run but not edit function definitions); runs expire after 10 minutes, so return tool outputs promptly (verified).
Exam traps
- Vague tool descriptions, so the model picks the wrong tool.
- Long-term facts in conversation history only.
- No scope or refusal rules in instructions.
2. Function Calling, Retrieval and Memory in Agents
Central question: How do agents call your code, find knowledge and remember?
Function calling
- Define a function (name, parameters, description) on the agent.
- The model requests a call with arguments.
- Your app executes the function and returns the output.
- The agent continues with real data. Runs expire 10 minutes after creation.
Retrieval
Azure AI Search tool (inline citations), file search, Foundry IQ knowledge bases (agentic retrieval, permissions).
Memory
Conversations hold current-session context; Agent Service memory (preview) stores long-term items with CRUD operations and TTL.
Exam traps
- Expecting Foundry to run your function. Your app runs it and returns results.
- Slow function outputs past the 10-minute run expiry.
- Retrieval without citations for audited answers.
3. Integrating Agent Tools: Search, MCP, APIs, Content Understanding
Central question: How do you connect agents to the tools they need?
Tools
| Tool | Gives the agent |
|---|---|
| Azure AI Search | Grounded answers with citations (managed identity for private networks) |
| File search | Search uploaded files |
| Web search | Public, current information |
| Code interpreter | Run code, analyze data, chart |
| MCP servers | Tools from Model Context Protocol servers (e.g. Azure Language MCP server) |
| OpenAPI / custom functions | Your business APIs |
| Content Understanding | Clean, structured inputs from files |
| Toolboxes | Curated tools shared via one managed MCP endpoint with central auth, versioning, policy |
The tool catalog lists available tools (verified).
Exam traps
- Duplicating credentials per agent instead of toolboxes.
- Key-based auth to AI Search over private networks.
- Giving every tool to every agent.
4. Multi-Agent Orchestration
Central question: How do several specialized agents work together?
Patterns (verified in Foundry workflow docs)
| Pattern | How | Use |
|---|---|---|
| Sequential | Output of one agent passes to the next | Pipelines, staged processing |
| Group chat | Control passes dynamically by context or rules | Escalation, expert handoff |
| Human in the loop | Workflow pauses for a person | Approvals, clarifications |
Building it
- Microsoft Agent Framework: agents, workflows (functional and graph-based), integrations, middleware, MCP clients, sessions and context providers; recommended for new multi-agent builds.
- Foundry workflows (visual, preview) retire December 1, 2026; migrate to Agent Framework.
- Run code-based orchestration as hosted agents in Foundry.
Exam traps
- One agent with every responsibility instead of specialists.
- Starting new work on Foundry workflows.
- No approval step before high-impact actions.
5. Safeguards and Approvals in Autonomous Workflows
Central question: How much autonomy should an agent have, and how do you control it?
Controls (verified features; levels are design guidance)
| Control | Purpose |
|---|---|
| Human-in-the-loop approvals | Person approves before high-impact steps |
| Guardrails on tool calls and tool responses (preview) | Check what agents send to and receive from tools |
| Task adherence (Content Safety) | Detect misaligned or premature tool use |
| Prompt Shields document attacks | Block injected instructions in tool output |
| Egress controls (hosted agents, preview) | Limit outbound destinations |
| Instructions, step limits, least-privilege tools | Constrain behavior |
Autonomous: agent acts end to end (low-risk tasks). Semi-autonomous: agent proposes; a person approves sensitive actions.
Exam traps
- Full autonomy for payments or deletions.
- Ignoring indirect prompt injection in tool results.
- Broad tool permissions.
References
- AI-103 study guide — checked Oct 21, 2026
- Function calling — checked Oct 21, 2026
- Agents in Foundry — checked Oct 21, 2026
- Memory — checked Oct 21, 2026
- AI Search tool — checked Oct 21, 2026
- Tool catalog — checked Oct 21, 2026
- MCP tool — checked Oct 21, 2026
- Foundry workflows — checked Oct 21, 2026
- Agent Framework — checked Oct 21, 2026
- Guardrails overview — checked Oct 21, 2026
- Content Safety — checked Oct 21, 2026
Check your understanding
What makes the model choose the right function?Show answerHide answer
Answer
Clear name, description and parameters.Who executes a function tool's code?Show answerHide answer
Answer
Your application.Share tools across agents with central governance?Show answerHide answer
Answer
Toolbox.Expert handoff based on context?Show answerHide answer
Answer
Group chat pattern.Stop a premature tool call?Show answerHide answer
Answer
Task adherence / tool call guardrail.