From e51ef2e5c8c617acca113604f41780049b7055e2 Mon Sep 17 00:00:00 2001 From: Vivek Bhadauria Date: Fri, 19 Jun 2026 11:47:55 -0700 Subject: [PATCH] fix: replace agent-framework meta-package with agent-framework-foundry 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> --- .../responses/01-basic/requirements.txt | 8 ++++++-- .../responses/02-tools/requirements.txt | 8 ++++++-- .../responses/03-mcp/requirements.txt | 7 +++++-- .../responses/04-foundry-toolbox/requirements.txt | 12 ++++++------ .../responses/05-workflows/requirements.txt | 8 ++++++-- .../responses/06-files/requirements.txt | 8 ++++++-- .../responses/07-skills/requirements.txt | 6 +++++- .../responses/07-teams-activity/requirements.txt | 12 ++++++------ .../responses/08-observability/requirements.txt | 8 ++++++-- .../09-declarative-customer-support/requirements.txt | 7 ++++++- .../responses/10-downstream-azure/requirements.txt | 6 +++++- .../15-optimization-travel-approver/requirements.txt | 6 +++++- .../16-content-safety-guardrail/requirements.txt | 8 ++++++-- 13 files changed, 74 insertions(+), 30 deletions(-) diff --git a/samples/python/hosted-agents/agent-framework/responses/01-basic/requirements.txt b/samples/python/hosted-agents/agent-framework/responses/01-basic/requirements.txt index a50487247..b2e16801d 100644 --- a/samples/python/hosted-agents/agent-framework/responses/01-basic/requirements.txt +++ b/samples/python/hosted-agents/agent-framework/responses/01-basic/requirements.txt @@ -1,2 +1,6 @@ -agent-framework>=1.2.2 -agent-framework-foundry-hosting \ No newline at end of file +# Use agent-framework-foundry instead of the agent-framework meta-package to +# avoid pip resolution failures: agent-framework pins agent-framework-core==1.2.2 +# but agent-framework-orchestrations 1.0.0 requires agent-framework-core>=1.9.0. +agent-framework-foundry +agent-framework-foundry-hosting +mcp>=1.24.0 diff --git a/samples/python/hosted-agents/agent-framework/responses/02-tools/requirements.txt b/samples/python/hosted-agents/agent-framework/responses/02-tools/requirements.txt index a50487247..b2e16801d 100644 --- a/samples/python/hosted-agents/agent-framework/responses/02-tools/requirements.txt +++ b/samples/python/hosted-agents/agent-framework/responses/02-tools/requirements.txt @@ -1,2 +1,6 @@ -agent-framework>=1.2.2 -agent-framework-foundry-hosting \ No newline at end of file +# Use agent-framework-foundry instead of the agent-framework meta-package to +# avoid pip resolution failures: agent-framework pins agent-framework-core==1.2.2 +# but agent-framework-orchestrations 1.0.0 requires agent-framework-core>=1.9.0. +agent-framework-foundry +agent-framework-foundry-hosting +mcp>=1.24.0 diff --git a/samples/python/hosted-agents/agent-framework/responses/03-mcp/requirements.txt b/samples/python/hosted-agents/agent-framework/responses/03-mcp/requirements.txt index f67947c86..ae7162cdd 100644 --- a/samples/python/hosted-agents/agent-framework/responses/03-mcp/requirements.txt +++ b/samples/python/hosted-agents/agent-framework/responses/03-mcp/requirements.txt @@ -1,3 +1,6 @@ -agent-framework>=1.2.2 +# Use agent-framework-foundry instead of the agent-framework meta-package to +# avoid pip resolution failures: agent-framework pins agent-framework-core==1.2.2 +# but agent-framework-orchestrations 1.0.0 requires agent-framework-core>=1.9.0. +agent-framework-foundry agent-framework-foundry-hosting -mcp>=1.24.0,<2 \ No newline at end of file +mcp>=1.24.0,<2 diff --git a/samples/python/hosted-agents/agent-framework/responses/04-foundry-toolbox/requirements.txt b/samples/python/hosted-agents/agent-framework/responses/04-foundry-toolbox/requirements.txt index 1bcb3b467..9a2a88c43 100644 --- a/samples/python/hosted-agents/agent-framework/responses/04-foundry-toolbox/requirements.txt +++ b/samples/python/hosted-agents/agent-framework/responses/04-foundry-toolbox/requirements.txt @@ -1,7 +1,7 @@ -# `agent-framework[foundry]` is required because main.py imports -# `from agent_framework.foundry import FoundryChatClient`. In 1.3+ the -# foundry submodule is an optional extra; installing the bare package -# leaves agent_framework.foundry unimportable and the container crashes -# at startup so /readiness never returns 200 -> 424 session_not_ready. -agent-framework[foundry]>=1.2.2 +# Use agent-framework-foundry instead of the agent-framework meta-package +# (or agent-framework[foundry]) to avoid pip resolution failures: +# agent-framework pins agent-framework-core==1.2.2 but +# agent-framework-orchestrations 1.0.0 requires agent-framework-core>=1.9.0. +agent-framework-foundry agent-framework-foundry-hosting +mcp>=1.24.0 diff --git a/samples/python/hosted-agents/agent-framework/responses/05-workflows/requirements.txt b/samples/python/hosted-agents/agent-framework/responses/05-workflows/requirements.txt index a50487247..b2e16801d 100644 --- a/samples/python/hosted-agents/agent-framework/responses/05-workflows/requirements.txt +++ b/samples/python/hosted-agents/agent-framework/responses/05-workflows/requirements.txt @@ -1,2 +1,6 @@ -agent-framework>=1.2.2 -agent-framework-foundry-hosting \ No newline at end of file +# Use agent-framework-foundry instead of the agent-framework meta-package to +# avoid pip resolution failures: agent-framework pins agent-framework-core==1.2.2 +# but agent-framework-orchestrations 1.0.0 requires agent-framework-core>=1.9.0. +agent-framework-foundry +agent-framework-foundry-hosting +mcp>=1.24.0 diff --git a/samples/python/hosted-agents/agent-framework/responses/06-files/requirements.txt b/samples/python/hosted-agents/agent-framework/responses/06-files/requirements.txt index f7dc62f3e..b2e16801d 100644 --- a/samples/python/hosted-agents/agent-framework/responses/06-files/requirements.txt +++ b/samples/python/hosted-agents/agent-framework/responses/06-files/requirements.txt @@ -1,2 +1,6 @@ -agent-framework -agent-framework-foundry-hosting \ No newline at end of file +# Use agent-framework-foundry instead of the agent-framework meta-package to +# avoid pip resolution failures: agent-framework pins agent-framework-core==1.2.2 +# but agent-framework-orchestrations 1.0.0 requires agent-framework-core>=1.9.0. +agent-framework-foundry +agent-framework-foundry-hosting +mcp>=1.24.0 diff --git a/samples/python/hosted-agents/agent-framework/responses/07-skills/requirements.txt b/samples/python/hosted-agents/agent-framework/responses/07-skills/requirements.txt index 90dcfcd8b..b2e16801d 100644 --- a/samples/python/hosted-agents/agent-framework/responses/07-skills/requirements.txt +++ b/samples/python/hosted-agents/agent-framework/responses/07-skills/requirements.txt @@ -1,2 +1,6 @@ -agent-framework>=1.2.2 +# Use agent-framework-foundry instead of the agent-framework meta-package to +# avoid pip resolution failures: agent-framework pins agent-framework-core==1.2.2 +# but agent-framework-orchestrations 1.0.0 requires agent-framework-core>=1.9.0. +agent-framework-foundry agent-framework-foundry-hosting +mcp>=1.24.0 diff --git a/samples/python/hosted-agents/agent-framework/responses/07-teams-activity/requirements.txt b/samples/python/hosted-agents/agent-framework/responses/07-teams-activity/requirements.txt index 1bcb3b467..9a2a88c43 100644 --- a/samples/python/hosted-agents/agent-framework/responses/07-teams-activity/requirements.txt +++ b/samples/python/hosted-agents/agent-framework/responses/07-teams-activity/requirements.txt @@ -1,7 +1,7 @@ -# `agent-framework[foundry]` is required because main.py imports -# `from agent_framework.foundry import FoundryChatClient`. In 1.3+ the -# foundry submodule is an optional extra; installing the bare package -# leaves agent_framework.foundry unimportable and the container crashes -# at startup so /readiness never returns 200 -> 424 session_not_ready. -agent-framework[foundry]>=1.2.2 +# Use agent-framework-foundry instead of the agent-framework meta-package +# (or agent-framework[foundry]) to avoid pip resolution failures: +# agent-framework pins agent-framework-core==1.2.2 but +# agent-framework-orchestrations 1.0.0 requires agent-framework-core>=1.9.0. +agent-framework-foundry agent-framework-foundry-hosting +mcp>=1.24.0 diff --git a/samples/python/hosted-agents/agent-framework/responses/08-observability/requirements.txt b/samples/python/hosted-agents/agent-framework/responses/08-observability/requirements.txt index f7dc62f3e..b2e16801d 100644 --- a/samples/python/hosted-agents/agent-framework/responses/08-observability/requirements.txt +++ b/samples/python/hosted-agents/agent-framework/responses/08-observability/requirements.txt @@ -1,2 +1,6 @@ -agent-framework -agent-framework-foundry-hosting \ No newline at end of file +# Use agent-framework-foundry instead of the agent-framework meta-package to +# avoid pip resolution failures: agent-framework pins agent-framework-core==1.2.2 +# but agent-framework-orchestrations 1.0.0 requires agent-framework-core>=1.9.0. +agent-framework-foundry +agent-framework-foundry-hosting +mcp>=1.24.0 diff --git a/samples/python/hosted-agents/agent-framework/responses/09-declarative-customer-support/requirements.txt b/samples/python/hosted-agents/agent-framework/responses/09-declarative-customer-support/requirements.txt index 1ed4f3c7d..3b749ee55 100644 --- a/samples/python/hosted-agents/agent-framework/responses/09-declarative-customer-support/requirements.txt +++ b/samples/python/hosted-agents/agent-framework/responses/09-declarative-customer-support/requirements.txt @@ -1,2 +1,7 @@ -agent-framework +# Use agent-framework-foundry instead of the agent-framework meta-package to +# avoid pip resolution failures: agent-framework pins agent-framework-core==1.2.2 +# but agent-framework-orchestrations 1.0.0 requires agent-framework-core>=1.9.0. +agent-framework-foundry +agent-framework-declarative agent-framework-foundry-hosting +mcp>=1.24.0 diff --git a/samples/python/hosted-agents/agent-framework/responses/10-downstream-azure/requirements.txt b/samples/python/hosted-agents/agent-framework/responses/10-downstream-azure/requirements.txt index ea62383e5..52ebfe679 100644 --- a/samples/python/hosted-agents/agent-framework/responses/10-downstream-azure/requirements.txt +++ b/samples/python/hosted-agents/agent-framework/responses/10-downstream-azure/requirements.txt @@ -1,4 +1,8 @@ -agent-framework>=1.2.2 +# Use agent-framework-foundry instead of the agent-framework meta-package to +# avoid pip resolution failures: agent-framework pins agent-framework-core==1.2.2 +# but agent-framework-orchestrations 1.0.0 requires agent-framework-core>=1.9.0. +agent-framework-foundry agent-framework-foundry-hosting +mcp>=1.24.0 azure-storage-blob azure-servicebus diff --git a/samples/python/hosted-agents/agent-framework/responses/15-optimization-travel-approver/requirements.txt b/samples/python/hosted-agents/agent-framework/responses/15-optimization-travel-approver/requirements.txt index 275064846..ba0869f5a 100644 --- a/samples/python/hosted-agents/agent-framework/responses/15-optimization-travel-approver/requirements.txt +++ b/samples/python/hosted-agents/agent-framework/responses/15-optimization-travel-approver/requirements.txt @@ -1,4 +1,8 @@ -agent-framework>=1.2.2 +# Use agent-framework-foundry instead of the agent-framework meta-package to +# avoid pip resolution failures: agent-framework pins agent-framework-core==1.2.2 +# but agent-framework-orchestrations 1.0.0 requires agent-framework-core>=1.9.0. +agent-framework-foundry agent-framework-foundry-hosting +mcp>=1.24.0 azure-identity>=1.15.0 azure-ai-agentserver-optimization>=1.0.0b1 diff --git a/samples/python/hosted-agents/agent-framework/responses/16-content-safety-guardrail/requirements.txt b/samples/python/hosted-agents/agent-framework/responses/16-content-safety-guardrail/requirements.txt index a50487247..b2e16801d 100644 --- a/samples/python/hosted-agents/agent-framework/responses/16-content-safety-guardrail/requirements.txt +++ b/samples/python/hosted-agents/agent-framework/responses/16-content-safety-guardrail/requirements.txt @@ -1,2 +1,6 @@ -agent-framework>=1.2.2 -agent-framework-foundry-hosting \ No newline at end of file +# Use agent-framework-foundry instead of the agent-framework meta-package to +# avoid pip resolution failures: agent-framework pins agent-framework-core==1.2.2 +# but agent-framework-orchestrations 1.0.0 requires agent-framework-core>=1.9.0. +agent-framework-foundry +agent-framework-foundry-hosting +mcp>=1.24.0