Repository navigation
Add Foundry Toolbox Autopilot sample - #1076
Merged
Merged
Conversation
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: cabf1515-f003-4762-85fa-a239f0cd4aa2
Contributor
There was a problem hiding this comment.
🔵 Needs a closer look
Hosted identity permissions and the complete deployment, publication, and Teams flow still require human end-to-end validation.
1 open finding
What changed in this PR
Adds a Teams Autopilot sample that combines Microsoft Learn and Bing-backed web search through one Foundry Toolbox.
Changes:
- Implements per-turn tool access and Teams message handling.
- Adds provisioning, direct-code deployment, and publication configuration.
- Provides setup guidance and offline integration tests.
Paths below are relative to samples/python/autopilot-agents/.
| File | Description |
|---|---|
README.md |
Adds the sample to the index. |
foundry-toolbox/toolbox.yaml |
Defines Learn and web-search tools. |
foundry-toolbox/tests/test_toolbox.py |
Tests integration, isolation, and failures. |
foundry-toolbox/scripts/prepare-provision.ps1 |
Invokes shared provisioning guidance. |
foundry-toolbox/requirements.txt |
Pins runtime dependencies. |
foundry-toolbox/README.md |
Documents setup and Teams demonstrations. |
foundry-toolbox/pyproject.toml |
Defines package metadata and dependencies. |
foundry-toolbox/main.py |
Adds the hosting entry point. |
foundry-toolbox/infra/modules/foundry.bicep |
Creates or reuses Foundry resources. |
foundry-toolbox/infra/main.parameters.json |
Maps environment settings to infrastructure parameters. |
foundry-toolbox/infra/main.bicep |
Orchestrates infrastructure provisioning. |
foundry-toolbox/azure.yaml |
Configures deployment and publication. |
foundry-toolbox/AGENTS.md |
Documents sample maintenance constraints. |
foundry-toolbox/agent/toolbox.py |
Implements authenticated tool discovery and execution. |
foundry-toolbox/agent/app.py |
Hosts Activity handlers and replies. |
foundry-toolbox/agent/activity_routing.py |
Selects supported Teams messages. |
foundry-toolbox/agent/__init__.py |
Declares the agent package. |
foundry-toolbox/.gitignore |
Excludes local development artifacts. |
foundry-toolbox/.agentignore |
Excludes non-runtime deployment files. |
🧠 Review effort: Balanced
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: cabf1515-f003-4762-85fa-a239f0cd4aa2
Adi Yadav (adyada)
approved these changes
Oct 15, 2026
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Summary
ActivityAgentServerHostand Microsoft Agent Framework.web_search, with managed identity for hosted access rather than human credentials.Validation
pip check) passed; wheel and source distribution builds passed.The sample has not been deployed and exercised end-to-end in Teams; the live check above was a direct tool probe, not a Teams deployment test.