Skip to content

Add Foundry Toolbox Autopilot sample - #1076

Merged
Tom Wagner (thwagne) merged 2 commits into
mainfrom
thwagne/add-toobox-autopilot
Oct 16, 2026
Merged

Tom Wagner (thwagne) merged 2 commits into
mainfrom
thwagne/add-toobox-autopilot

Conversation

@thwagne

Copy link
Copy Markdown
Contributor

Summary

  • Add a Python Foundry Autopilot sample for Teams direct messages, group chats, and mentioned channel conversations, hosted with ActivityAgentServerHost and Microsoft Agent Framework.
  • Use one Foundry Toolbox to combine three anonymous Microsoft Learn tools with native Bing-backed web_search, with managed identity for hosted access rather than human credentials.
  • Include direct-code deployment configuration, create-or-reuse Bicep infrastructure, guided provisioning, and agent publication metadata.
  • Provide a capability-first setup guide building only on Hello World, explain the value of Microsoft Agent Framework for tool handling, and include three Teams demo questions covering documentation, current web information, and combined answers with source links.

Validation

  • 32 SDK integration and CLI tests passed.
  • Dependency consistency (pip check) passed; wheel and source distribution builds passed.
  • Bicep, configuration/schema, documentation links/anchors, PowerShell snippets, and whitespace checks passed.
  • A direct live native web-search call against an existing Toolbox returned source citations.

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.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: cabf1515-f003-4762-85fa-a239f0cd4aa2
Copilot AI balanced review requested due to automatic review settings October 15, 2026 19:36

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔵 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.

Comment thread samples/python/autopilot-agents/foundry-toolbox/agent/app.py Outdated
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: cabf1515-f003-4762-85fa-a239f0cd4aa2
Copilot AI balanced review requested due to automatic review settings October 15, 2026 19:58

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔵 Needs a closer look

Hosted deployment, managed-identity access, and end-to-end Teams behavior remain unverified and require human validation.

0 open findings

1 resolved since last review

🧠 Review effort: Balanced

@thwagne
Tom Wagner (thwagne) merged commit 74bac0b into main Oct 16, 2026
14 checks passed
@thwagne
Tom Wagner (thwagne) deleted the thwagne/add-toobox-autopilot branch October 16, 2026 14:17

This branch was successfully deployed

1 active deployment
L4-validation — 0535e775 Deployed Oct 15, 2026 by thwagne via trusted #563
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants