How azure-samples/foundry-hosted-agentframework-demos works
This repository is a staged Microsoft Agent Framework demo for an internal HR benefits assistant, plus a hosted multi-agent workflow example. The principal interaction is an employee asking a question, the hosted agent consulting its model and tools, and returning an answer grounded in HR knowledge or current information. The README also documents a local-model path and evaluation capabilities; unsampled evaluation scripts are omitted. The graph reflects documented capabilities and sampled wiring, not every stage implementation.
Main entry points: stage4_foundry_hosted.py Hosted HR agent · stage4_foundry_hosted_as_agent.py Hosted workflow · create-search-indexes.py HR and health indexes · create-toolbox.py KB retrieval tool
Components 18
HR agent
- Hosted HR agent
agents/stage4_foundry_hosted.py - Deadline tools
agents/stage4_foundry_hosted.py
Knowledge base
- KB retrieval tool
infra/create-toolbox.py - Company knowledge base
infra/create-search-indexes.py - HR and health indexes
infra/create-search-indexes.py - HR documents
data/index-data/hrdocs-exported.jsonl - Health documents
data/index-data/healthdocs-exported.jsonl
Workflow agent
- Hosted workflow
workflows/stage4_foundry_hosted_as_agent.py - Workflow builder
workflows/stage4_foundry_hosted_as_agent.py - Writer agent
workflows/stage4_foundry_hosted_as_agent.py - Formatter agent
workflows/stage4_foundry_hosted_as_agent.py
Foundry services
- Foundry chat model
- Foundry Toolbox
agents/stage4_foundry_hosted.py - Web search
infra/create-toolbox.py - Code interpreter
infra/create-toolbox.py - Foundry hosted agent
- Foundry chat model
workflows/stage4_foundry_hosted_as_agent.py
Other components
- Employee
Connections 19
- Employee → Foundry hosted agent: invokes
- Foundry hosted agent → Hosted HR agent: serves
- Hosted HR agent → Foundry chat model: requests completion
- Hosted HR agent → Deadline tools: calls
- Hosted HR agent → Foundry Toolbox: dispatches tools
- Foundry Toolbox → Web search: dispatches
- Foundry Toolbox → Code interpreter: dispatches
- Foundry Toolbox → KB retrieval tool: dispatches
- KB retrieval tool → Company knowledge base: retrieves from
- Company knowledge base → HR and health indexes: queries
- HR documents → HR and health indexes: uploaded to
- Health documents → HR and health indexes: uploaded to
- Employee → Foundry hosted agent: invokes workflow
- Foundry hosted agent → Hosted workflow: serves
- Hosted workflow → Workflow builder: wraps
- Workflow builder → Writer agent: starts with
- Workflow builder → Formatter agent: routes to
- Writer agent → Formatter agent: passes draft
- Hosted workflow → Foundry chat model: uses