Skip to content

fix: replace agent-framework meta-package with agent-framework-foundry to resolve pip conflicts#783

Closed
VBhadauria wants to merge 1 commit into
microsoft-foundry:mainfrom
VBhadauria:fix/requirements-dep-conflict
Closed

fix: replace agent-framework meta-package with agent-framework-foundry to resolve pip conflicts#783
VBhadauria wants to merge 1 commit into
microsoft-foundry:mainfrom
VBhadauria:fix/requirements-dep-conflict

Conversation

@VBhadauria

Copy link
Copy Markdown

Problem

agent-framework>=1.2.2 in requirements.txt can resolve to version 1.2.2, which pins agent-framework-core==1.2.2. However, agent-framework-orchestrations 1.0.0 (a transitive dependency) requires agent-framework-core>=1.9.0. This makes pip unable to resolve dependencies, breaking the hosted agent quickstart and all downstream samples (Tracing, Evaluate).

ERROR: Cannot install agent-framework-core and agent-framework-core[all]==1.2.2
  agent-framework 1.2.2 depends on agent-framework-core==1.2.2
  agent-framework-orchestrations 1.0.0 depends on agent-framework-core>=1.9.0
ERROR: ResolutionImpossible

Fix

Replace agent-framework / agent-framework[foundry]>=1.2.2 with the narrow agent-framework-foundry subpackage in all affected samples. This follows the pattern already used successfully by samples 11-azure-search-rag, 12-foundry-skills, and 13-foundry-memory.

Also adds mcp>=1.24.0 as an explicit dependency where missing, since it is needed at runtime but not declared by agent-framework-core.

Affected samples (13 total)

  • 01-basic (Hosted Agent quickstart)
  • 02-tools
  • 03-mcp
  • 04-foundry-toolbox
  • 05-workflows
  • 06-files
  • 07-skills
  • 07-teams-activity
  • 08-observability
  • 09-declarative-customer-support
  • 10-downstream-azure
  • 15-optimization-travel-approver
  • 16-content-safety-guardrail

Verification

Tested all 13 samples with pip install --dry-run using Python 3.13:

Scenario Result
Before (agent-framework==1.2.2) ResolutionImpossible for all 13
After (agent-framework-foundry) ✅ Resolves cleanly for all 13

cc @AniketSinha-Microsoft

…y in requirements.txt

The agent-framework meta-package pins agent-framework-core==1.2.2, but
agent-framework-orchestrations 1.0.0 (a transitive dependency) requires
agent-framework-core>=1.9.0. This makes pip unable to resolve dependencies,
breaking the hosted agent quickstart and downstream samples (tracing,
evaluate).

Replace agent-framework (and agent-framework[foundry]) with the narrow
agent-framework-foundry subpackage in all affected samples, following the
pattern already used successfully by samples 11, 12, and 13. Also add
mcp>=1.24.0 as an explicit dependency where missing, since it is needed
at runtime but not declared by agent-framework-core.

Affected samples: 01-basic, 02-tools, 03-mcp, 04-foundry-toolbox,
05-workflows, 06-files, 07-skills, 07-teams-activity, 08-observability,
09-declarative-customer-support, 10-downstream-azure,
15-optimization-travel-approver, 16-content-safety-guardrail.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@github-actions

Copy link
Copy Markdown
Contributor

👋 Thanks for your interest in contributing, @VBhadauria!

This repository does not accept pull requests directly. If you'd like to report a bug, suggest an improvement, or propose a new sample, please open an issue instead.

If you are a Microsoft-internal contributor, please submit your PR through foundry-samples-pr instead.

See CONTRIBUTING.md for more details.

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.

1 participant