Skip to content

Migrate Python Agent Framework samples to uv - #1068

Merged
luyajun0205 merged 5 commits into
mainfrom
yajun/migrate-agent-framework-samples-to-uv
Oct 22, 2026
Merged

luyajun0205 merged 5 commits into
mainfrom
yajun/migrate-agent-framework-samples-to-uv

Conversation

@luyajun0205

Copy link
Copy Markdown
Contributor

No description provided.

@luyajun0205
luyajun0205 deployed to L4-validation October 13, 2026 03:44 — with GitHub Actions Active
@luyajun0205
luyajun0205 marked this pull request as ready for review October 13, 2026 04:56
Copilot AI balanced review requested due to automatic review settings October 13, 2026 04:56
@luyajun0205
luyajun0205 deployed to L4-validation October 13, 2026 04:57 — with GitHub Actions Active

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.

🟡 Changes recommended

The shared README still advertises requirements-based setup even though the migrated tree contains no requirements files.

1 open finding
What changed in this PR

Migrates remaining Python Agent Framework samples to uv-based dependency management and aligns container and setup documentation.

Changes:

  • Replaces requirements files with pinned pyproject.toml projects.
  • Updates Docker builds and provisioning hooks to use locked uv environments.
  • Standardizes Python 3.13 and uv setup documentation.

Paths are relative to samples/python/hosted-agents/agent-framework/.

File Description
responses/​22-foundry-toolbox-mcp-skills/​src/​agent-framework-agent-foundry-toolbox-mcp-skills-responses/​uv.toml Enables system certificates for uv.
responses/​22-foundry-toolbox-mcp-skills/​src/​agent-framework-agent-foundry-toolbox-mcp-skills-responses/​requirements.txt Removes legacy requirements.
responses/​22-foundry-toolbox-mcp-skills/​src/​agent-framework-agent-foundry-toolbox-mcp-skills-responses/​pyproject.toml Defines pinned project dependencies.
responses/​22-foundry-toolbox-mcp-skills/​src/​agent-framework-agent-foundry-toolbox-mcp-skills-responses/​Dockerfile Builds and runs with uv.
responses/​22-foundry-toolbox-mcp-skills/​README.md Documents uv setup and execution.
responses/​20-harness-data-processing/​README.md Simplifies uv environment setup.
responses/​19-harness-research/​README.md Simplifies uv environment setup.
responses/​18-egress-control/​src/​agent-framework-egress-control-responses/​uv.toml Enables system certificates for uv.
responses/​18-egress-control/​src/​agent-framework-egress-control-responses/​requirements.txt Removes legacy requirements.
responses/​18-egress-control/​src/​agent-framework-egress-control-responses/​pyproject.toml Defines pinned project dependencies.
responses/​18-egress-control/​src/​agent-framework-egress-control-responses/​Dockerfile Builds and runs with uv.
responses/​18-egress-control/​README.md Adds uv-based local setup.
responses/​16-content-safety-guardrail/​README.md Simplifies uv environment setup.
responses/​15-optimization-travel-approver/​README.md Simplifies uv environment setup.
responses/​14-browser-automation-agent/​src/​bat-python-maf/​uv.toml Enables system certificates for uv.
responses/​14-browser-automation-agent/​src/​bat-python-maf/​requirements.txt Removes legacy requirements.
responses/​14-browser-automation-agent/​src/​bat-python-maf/​pyproject.toml Defines pinned browser-agent dependencies.
responses/​14-browser-automation-agent/​src/​bat-python-maf/​Dockerfile Builds and runs with uv.
responses/​14-browser-automation-agent/​README.md Documents locked uv setup.
responses/​13-foundry-memory/​src/​agent-framework-agent-foundry-memory-responses/​uv.toml Enables system certificates for uv.
responses/​13-foundry-memory/​src/​agent-framework-agent-foundry-memory-responses/​requirements.txt Removes compiled requirements.
responses/​13-foundry-memory/​src/​agent-framework-agent-foundry-memory-responses/​requirements.in Removes pip-compile inputs.
responses/​13-foundry-memory/​src/​agent-framework-agent-foundry-memory-responses/​pyproject.toml Defines pinned project dependencies.
responses/​13-foundry-memory/​src/​agent-framework-agent-foundry-memory-responses/​hooks/​postprovision.sh Runs provisioning through uv.
responses/​13-foundry-memory/​src/​agent-framework-agent-foundry-memory-responses/​hooks/​postprovision.ps1 Runs Windows provisioning through uv.
responses/​13-foundry-memory/​src/​agent-framework-agent-foundry-memory-responses/​Dockerfile Builds and runs with uv.
responses/​13-foundry-memory/​README.md Documents uv provisioning and execution.
responses/​12-foundry-skills/​src/​agent-framework-agent-foundry-skills-responses/​uv.toml Enables system certificates for uv.
responses/​12-foundry-skills/​src/​agent-framework-agent-foundry-skills-responses/​requirements.txt Removes compiled requirements.
responses/​12-foundry-skills/​src/​agent-framework-agent-foundry-skills-responses/​requirements.in Removes pip-compile inputs.
responses/​12-foundry-skills/​src/​agent-framework-agent-foundry-skills-responses/​pyproject.toml Defines pinned project dependencies.
responses/​12-foundry-skills/​src/​agent-framework-agent-foundry-skills-responses/​Dockerfile Builds and runs with uv.
responses/​12-foundry-skills/​README.md Documents uv provisioning and execution.
responses/​11-azure-search-rag/​README.md Simplifies uv environment setup.
responses/​10-downstream-azure/​README.md Simplifies uv environment setup.
responses/​09-declarative-customer-support/​README.md Adds uv and Python prerequisites.
responses/​08-observability/​README.md Simplifies uv environment setup.
responses/​07-skills/​src/​agent-framework-agent-with-skills-responses/​uv.toml Enables system certificates for uv.
responses/​07-skills/​src/​agent-framework-agent-with-skills-responses/​requirements.txt Removes compiled requirements.
responses/​07-skills/​src/​agent-framework-agent-with-skills-responses/​requirements.in Removes pip-compile inputs.
responses/​07-skills/​src/​agent-framework-agent-with-skills-responses/​pyproject.toml Defines pinned project dependencies.
responses/​07-skills/​src/​agent-framework-agent-with-skills-responses/​Dockerfile Builds and runs with uv.
responses/​07-skills/​README.md Documents uv setup and execution.
responses/​06-files/​README.md Adds uv and Python prerequisites.
responses/​05-workflows/​README.md Simplifies uv environment setup.
responses/​04-foundry-toolbox/​README.md Simplifies uv environment setup.
responses/​02-tools/​README.md Simplifies uv environment setup.
responses/​01-basic/​README.md Simplifies uv environment setup.
README.md Updates shared uv installation guidance.
invocations/​02-content-safety-guardrail/​README.md Simplifies uv environment setup.
invocations/​01-basic/​README.md Simplifies uv environment setup.

🧠 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/hosted-agents/agent-framework/README.md
Copilot AI balanced review requested due to automatic review settings October 13, 2026 05:53
@luyajun0205
luyajun0205 deployed to L4-validation October 13, 2026 05:53 — with GitHub Actions Active

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.

🟡 Changes recommended

Shared documentation incorrectly makes Python 3.13 and uv universal and retains obsolete requirements-based Agent Framework paths.

3 open findings
Previously missed (1)

In code that hasn't changed since last review

Low severity Remove obsolete Python 3.10 and requirements.txt setup path

samples/​python/​hosted-agents/​agent-framework/​README.md:212

The manual-run workflow still presents uv as optional and retains the requirements.txt setup below, although the migrated Agent Framework tree has no such manifests and every service pyproject requires Python 3.13. Remove the Python 3.10/requirements branch here as well so users are not directed to a nonexistent file.

🧠 Review effort: Balanced

Comment thread samples/python/hosted-agents/README.md Outdated
Comment thread samples/python/hosted-agents/README.md Outdated
Copilot AI balanced review requested due to automatic review settings October 13, 2026 06:13
@luyajun0205
luyajun0205 deployed to L4-validation October 13, 2026 06:14 — with GitHub Actions Active

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.

🟢 Approval recommended

The migrated projects follow repository uv conventions, and all six lockfiles match their project metadata.

0 open findings

3 resolved since last review

🧠 Review effort: Balanced

Resolve browser automation conflicts by keeping uv-based installation and adopting the GA Toolbox runtime and documentation from main.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot AI balanced review requested due to automatic review settings October 19, 2026 03:30
@luyajun0205
luyajun0205 deployed to L4-validation October 19, 2026 03:31 — with GitHub Actions Active

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

Container runtime and provisioning changes across multiple samples need build and deployment validation before final human approval.

No open issues 🎉

Review effort: Balanced

@luyajun0205
luyajun0205 merged commit 6120afe into main Oct 22, 2026
73 checks passed
@luyajun0205
luyajun0205 deleted the yajun/migrate-agent-framework-samples-to-uv branch October 22, 2026 05:40

This branch was successfully deployed

1 active deployment
L4-validation — e29161e6 Deployed Oct 19, 2026 by luyajun0205 via trusted #568
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.

4 participants