Skip to content

Migrate Python BYO Invocations and Responses samples to uv - #1051

Merged
Antriksh Jain (antriksh30) merged 6 commits into
mainfrom
migrate-byo-python-hosted-agents-to-uv
Oct 7, 2026
Merged

Antriksh Jain (antriksh30) merged 6 commits into
mainfrom
migrate-byo-python-hosted-agents-to-uv

Conversation

@antriksh30

@antriksh30 Antriksh Jain (antriksh30) commented Oct 6, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • Migrate 27 Python Bring Your Own Invocations and Responses runtimes from requirements.txt / requirements.in to pyproject.toml, uv.lock, and uv.toml.
  • Update container builds and local setup guidance to use uv 0.11.7 while retaining Python 3.12 and each sample-specific runtime setup where required.
  • Preserve every exact package version from the prior resolved requirements graphs instead of silently upgrading transitive dependencies.

This follows the uv-native pattern introduced for Agent Framework samples in #992, adapted for the BYO samples' Python 3.12, browser automation, GitHub Copilot runtime, diagnostics, and egress-certificate paths. Toolbox images use the repository-standard Python slim base because Azure Linux cannot validate the CI egress certificate during uv downloads.

Validation

  • check-hosted-agent-python-requirements.py --resolve
  • uv lock --check for all 27 migrated runtimes
  • Docker builds for all 27 migrated runtime images
  • Verified all 1,706 prior exact pins remain in the new locks
  • Verified lock sources use canonical public PyPI URLs only
  • Python and YAML syntax checks

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.

Copilot review overview

🟡 Changes recommended

One or more issues must be addressed before approval.

Review effort: Balanced
Findings: 25 Low severity

Open (25)

And 5 more that still need to be addressed.

What changed in this PR

Migrates 27 Python BYO hosted-agent runtimes to uv, extending #992’s approach while retaining Python 3.12 and specialized container setup.

Changes:

  • Replaces pip requirements with project metadata, dependency locks, and system-certificate configuration.
  • Updates containers to install and run dependencies through uv-managed environments.
  • Updates local-development guidance and sample validation commands.
File Description
samples/​python/​hosted-agents/​bring-your-own/​responses/​session-multiplexing/​src/​hello-world-session-multiplexing-python-responses/​uv.toml Updated as part of this pull request.
samples/​python/​hosted-agents/​bring-your-own/​responses/​session-multiplexing/​src/​hello-world-session-multiplexing-python-responses/​requirements.txt Updated as part of this pull request.
samples/​python/​hosted-agents/​bring-your-own/​responses/​session-multiplexing/​src/​hello-world-session-multiplexing-python-responses/​requirements.in Updated as part of this pull request.
samples/​python/​hosted-agents/​bring-your-own/​responses/​session-multiplexing/​src/​hello-world-session-multiplexing-python-responses/​pyproject.toml Updated as part of this pull request.
samples/​python/​hosted-agents/​bring-your-own/​responses/​session-multiplexing/​src/​hello-world-session-multiplexing-python-responses/​Dockerfile Updated as part of this pull request.
samples/​python/​hosted-agents/​bring-your-own/​responses/​session-multiplexing/​README.md Updated as part of this pull request.
samples/​python/​hosted-agents/​bring-your-own/​responses/​resilient-streaming/​src/​resilient-streaming/​uv.toml Updated as part of this pull request.
samples/​python/​hosted-agents/​bring-your-own/​responses/​resilient-streaming/​src/​resilient-streaming/​requirements.txt Updated as part of this pull request.
samples/​python/​hosted-agents/​bring-your-own/​responses/​resilient-streaming/​src/​resilient-streaming/​pyproject.toml Updated as part of this pull request.
samples/​python/​hosted-agents/​bring-your-own/​responses/​resilient-streaming/​src/​resilient-streaming/​Dockerfile Updated as part of this pull request.
samples/​python/​hosted-agents/​bring-your-own/​responses/​resilient-streaming/​README.md Updated as part of this pull request.
samples/​python/​hosted-agents/​bring-your-own/​responses/​resilient-steering/​src/​resilient-steering/​uv.toml Updated as part of this pull request.
samples/​python/​hosted-agents/​bring-your-own/​responses/​resilient-steering/​src/​resilient-steering/​requirements.txt Updated as part of this pull request.
samples/​python/​hosted-agents/​bring-your-own/​responses/​resilient-steering/​src/​resilient-steering/​pyproject.toml Updated as part of this pull request.
samples/​python/​hosted-agents/​bring-your-own/​responses/​resilient-steering/​src/​resilient-steering/​Dockerfile Updated as part of this pull request.
samples/​python/​hosted-agents/​bring-your-own/​responses/​resilient-steering/​README.md Updated as part of this pull request.
samples/​python/​hosted-agents/​bring-your-own/​responses/​optimization-hello-world/​src/​optimization-hello-world-python-responses/​uv.toml Updated as part of this pull request.
samples/​python/​hosted-agents/​bring-your-own/​responses/​optimization-hello-world/​src/​optimization-hello-world-python-responses/​requirements.txt Updated as part of this pull request.
samples/​python/​hosted-agents/​bring-your-own/​responses/​optimization-hello-world/​src/​optimization-hello-world-python-responses/​requirements.in Updated as part of this pull request.
samples/​python/​hosted-agents/​bring-your-own/​responses/​optimization-hello-world/​src/​optimization-hello-world-python-responses/​pyproject.toml Updated as part of this pull request.
samples/​python/​hosted-agents/​bring-your-own/​responses/​optimization-hello-world/​src/​optimization-hello-world-python-responses/​Dockerfile Updated as part of this pull request.
samples/​python/​hosted-agents/​bring-your-own/​responses/​optimization-hello-world/​README.md Updated as part of this pull request.
samples/​python/​hosted-agents/​bring-your-own/​responses/​optimization-customer-support/​src/​optimization-customer-support-python-responses/​uv.toml Updated as part of this pull request.
samples/​python/​hosted-agents/​bring-your-own/​responses/​optimization-customer-support/​src/​optimization-customer-support-python-responses/​requirements.txt Updated as part of this pull request.
samples/​python/​hosted-agents/​bring-your-own/​responses/​optimization-customer-support/​src/​optimization-customer-support-python-responses/​requirements.in Updated as part of this pull request.
samples/​python/​hosted-agents/​bring-your-own/​responses/​optimization-customer-support/​src/​optimization-customer-support-python-responses/​pyproject.toml Updated as part of this pull request.
samples/​python/​hosted-agents/​bring-your-own/​responses/​optimization-customer-support/​src/​optimization-customer-support-python-responses/​Dockerfile Updated as part of this pull request.
samples/​python/​hosted-agents/​bring-your-own/​responses/​optimization-customer-support/​README.md Updated as part of this pull request.
samples/​python/​hosted-agents/​bring-your-own/​responses/​openai-agents-sdk/​src/​openai-agents-sdk-invocations/​uv.toml Updated as part of this pull request.
samples/​python/​hosted-agents/​bring-your-own/​responses/​openai-agents-sdk/​src/​openai-agents-sdk-invocations/​requirements.txt Updated as part of this pull request.
samples/​python/​hosted-agents/​bring-your-own/​responses/​openai-agents-sdk/​src/​openai-agents-sdk-invocations/​pyproject.toml Updated as part of this pull request.
samples/​python/​hosted-agents/​bring-your-own/​responses/​openai-agents-sdk/​src/​openai-agents-sdk-invocations/​Dockerfile Updated as part of this pull request.
samples/​python/​hosted-agents/​bring-your-own/​responses/​openai-agents-sdk/​README.md Updated as part of this pull request.
samples/​python/​hosted-agents/​bring-your-own/​responses/​notetaking-agent/​src/​notetaking-agent-responses-python/​uv.toml Updated as part of this pull request.
samples/​python/​hosted-agents/​bring-your-own/​responses/​notetaking-agent/​src/​notetaking-agent-responses-python/​requirements.txt Updated as part of this pull request.
samples/​python/​hosted-agents/​bring-your-own/​responses/​notetaking-agent/​src/​notetaking-agent-responses-python/​requirements.in Updated as part of this pull request.
samples/​python/​hosted-agents/​bring-your-own/​responses/​notetaking-agent/​src/​notetaking-agent-responses-python/​pyproject.toml Updated as part of this pull request.
samples/​python/​hosted-agents/​bring-your-own/​responses/​notetaking-agent/​src/​notetaking-agent-responses-python/​Dockerfile Updated as part of this pull request.
samples/​python/​hosted-agents/​bring-your-own/​responses/​notetaking-agent/​README.md Updated as part of this pull request.
samples/​python/​hosted-agents/​bring-your-own/​responses/​langgraph-toolbox/​src/​toolbox-langgraph/​uv.toml Updated as part of this pull request.
samples/​python/​hosted-agents/​bring-your-own/​responses/​langgraph-toolbox/​src/​toolbox-langgraph/​requirements.txt Updated as part of this pull request.
samples/​python/​hosted-agents/​bring-your-own/​responses/​langgraph-toolbox/​src/​toolbox-langgraph/​requirements.in Updated as part of this pull request.
samples/​python/​hosted-agents/​bring-your-own/​responses/​langgraph-toolbox/​src/​toolbox-langgraph/​pyproject.toml Updated as part of this pull request.
samples/​python/​hosted-agents/​bring-your-own/​responses/​langgraph-toolbox/​src/​toolbox-langgraph/​Dockerfile Updated as part of this pull request.
samples/​python/​hosted-agents/​bring-your-own/​responses/​langgraph-toolbox/​README.md Updated as part of this pull request.
samples/​python/​hosted-agents/​bring-your-own/​responses/​langgraph-toolbox-user-identity/​src/​toolbox-langgraph-user-identity/​uv.toml Updated as part of this pull request.
samples/​python/​hosted-agents/​bring-your-own/​responses/​langgraph-toolbox-user-identity/​src/​toolbox-langgraph-user-identity/​requirements.in Updated as part of this pull request.
samples/​python/​hosted-agents/​bring-your-own/​responses/​langgraph-toolbox-user-identity/​src/​toolbox-langgraph-user-identity/​pyproject.toml Updated as part of this pull request.
samples/​python/​hosted-agents/​bring-your-own/​responses/​langgraph-toolbox-user-identity/​src/​toolbox-langgraph-user-identity/​Dockerfile Updated as part of this pull request.
samples/​python/​hosted-agents/​bring-your-own/​responses/​langgraph-toolbox-user-identity/​README.md Updated as part of this pull request.
samples/​python/​hosted-agents/​bring-your-own/​responses/​langgraph-chat/​src/​langgraph-chat-responses/​uv.toml Updated as part of this pull request.
samples/​python/​hosted-agents/​bring-your-own/​responses/​langgraph-chat/​src/​langgraph-chat-responses/​requirements.txt Updated as part of this pull request.
samples/​python/​hosted-agents/​bring-your-own/​responses/​langgraph-chat/​src/​langgraph-chat-responses/​pyproject.toml Updated as part of this pull request.
samples/​python/​hosted-agents/​bring-your-own/​responses/​langgraph-chat/​src/​langgraph-chat-responses/​Dockerfile Updated as part of this pull request.
samples/​python/​hosted-agents/​bring-your-own/​responses/​langgraph-chat/​README.md Updated as part of this pull request.
samples/​python/​hosted-agents/​bring-your-own/​responses/​hello-world/​src/​hello-world-python-responses/​uv.toml Updated as part of this pull request.
samples/​python/​hosted-agents/​bring-your-own/​responses/​hello-world/​src/​hello-world-python-responses/​requirements.txt Updated as part of this pull request.
samples/​python/​hosted-agents/​bring-your-own/​responses/​hello-world/​src/​hello-world-python-responses/​requirements.in Updated as part of this pull request.
samples/​python/​hosted-agents/​bring-your-own/​responses/​hello-world/​src/​hello-world-python-responses/​pyproject.toml Updated as part of this pull request.
samples/​python/​hosted-agents/​bring-your-own/​responses/​hello-world/​src/​hello-world-python-responses/​Dockerfile Updated as part of this pull request.
samples/​python/​hosted-agents/​bring-your-own/​responses/​hello-world/​README.md Updated as part of this pull request.
samples/​python/​hosted-agents/​bring-your-own/​responses/​env-vars-agent/​src/​env-vars-agent-responses-python/​uv.toml Updated as part of this pull request.
samples/​python/​hosted-agents/​bring-your-own/​responses/​env-vars-agent/​src/​env-vars-agent-responses-python/​requirements.txt Updated as part of this pull request.
samples/​python/​hosted-agents/​bring-your-own/​responses/​env-vars-agent/​src/​env-vars-agent-responses-python/​requirements.in Updated as part of this pull request.
samples/​python/​hosted-agents/​bring-your-own/​responses/​env-vars-agent/​src/​env-vars-agent-responses-python/​pyproject.toml Updated as part of this pull request.
samples/​python/​hosted-agents/​bring-your-own/​responses/​env-vars-agent/​src/​env-vars-agent-responses-python/​Dockerfile Updated as part of this pull request.
samples/​python/​hosted-agents/​bring-your-own/​responses/​env-vars-agent/​README.md Updated as part of this pull request.
samples/​python/​hosted-agents/​bring-your-own/​responses/​browser-automation/​src/​bat-python-byo/​uv.toml Updated as part of this pull request.
samples/​python/​hosted-agents/​bring-your-own/​responses/​browser-automation/​src/​bat-python-byo/​requirements.txt Updated as part of this pull request.
samples/​python/​hosted-agents/​bring-your-own/​responses/​browser-automation/​src/​bat-python-byo/​requirements.in Updated as part of this pull request.
samples/​python/​hosted-agents/​bring-your-own/​responses/​browser-automation/​src/​bat-python-byo/​pyproject.toml Updated as part of this pull request.
samples/​python/​hosted-agents/​bring-your-own/​responses/​browser-automation/​src/​bat-python-byo/​Dockerfile Updated as part of this pull request.
samples/​python/​hosted-agents/​bring-your-own/​responses/​browser-automation/​README.md Updated as part of this pull request.
samples/​python/​hosted-agents/​bring-your-own/​responses/​bring-your-own-toolbox/​src/​toolbox-python-responses/​uv.toml Updated as part of this pull request.
samples/​python/​hosted-agents/​bring-your-own/​responses/​bring-your-own-toolbox/​src/​toolbox-python-responses/​requirements.txt Updated as part of this pull request.
samples/​python/​hosted-agents/​bring-your-own/​responses/​bring-your-own-toolbox/​src/​toolbox-python-responses/​requirements.in Updated as part of this pull request.
samples/​python/​hosted-agents/​bring-your-own/​responses/​bring-your-own-toolbox/​src/​toolbox-python-responses/​pyproject.toml Updated as part of this pull request.
samples/​python/​hosted-agents/​bring-your-own/​responses/​bring-your-own-toolbox/​src/​toolbox-python-responses/​Dockerfile Updated as part of this pull request.
samples/​python/​hosted-agents/​bring-your-own/​responses/​bring-your-own-toolbox/​README.md Updated as part of this pull request.
samples/​python/​hosted-agents/​bring-your-own/​responses/​background-agent/​src/​background-agent-responses/​uv.toml Updated as part of this pull request.
samples/​python/​hosted-agents/​bring-your-own/​responses/​background-agent/​src/​background-agent-responses/​requirements.txt Updated as part of this pull request.
samples/​python/​hosted-agents/​bring-your-own/​responses/​background-agent/​src/​background-agent-responses/​requirements.in Updated as part of this pull request.
samples/​python/​hosted-agents/​bring-your-own/​responses/​background-agent/​src/​background-agent-responses/​pyproject.toml Updated as part of this pull request.
samples/​python/​hosted-agents/​bring-your-own/​responses/​background-agent/​src/​background-agent-responses/​Dockerfile Updated as part of this pull request.
samples/​python/​hosted-agents/​bring-your-own/​responses/​background-agent/​README.md Updated as part of this pull request.
samples/​python/​hosted-agents/​bring-your-own/​invocations/​toolbox/​src/​toolbox-python-invocations/​uv.toml Updated as part of this pull request.
samples/​python/​hosted-agents/​bring-your-own/​invocations/​toolbox/​src/​toolbox-python-invocations/​requirements.txt Updated as part of this pull request.
samples/​python/​hosted-agents/​bring-your-own/​invocations/​toolbox/​src/​toolbox-python-invocations/​requirements.in Updated as part of this pull request.
samples/​python/​hosted-agents/​bring-your-own/​invocations/​toolbox/​src/​toolbox-python-invocations/​pyproject.toml Updated as part of this pull request.
samples/​python/​hosted-agents/​bring-your-own/​invocations/​toolbox/​src/​toolbox-python-invocations/​Dockerfile Updated as part of this pull request.
samples/​python/​hosted-agents/​bring-your-own/​invocations/​toolbox/​README.md Updated as part of this pull request.
samples/​python/​hosted-agents/​bring-your-own/​invocations/​resilient-research/​src/​resilient-research/​uv.toml Updated as part of this pull request.
samples/​python/​hosted-agents/​bring-your-own/​invocations/​resilient-research/​src/​resilient-research/​requirements.txt Updated as part of this pull request.
samples/​python/​hosted-agents/​bring-your-own/​invocations/​resilient-research/​src/​resilient-research/​requirements.in Updated as part of this pull request.
samples/​python/​hosted-agents/​bring-your-own/​invocations/​resilient-research/​src/​resilient-research/​pyproject.toml Updated as part of this pull request.
samples/​python/​hosted-agents/​bring-your-own/​invocations/​resilient-research/​src/​resilient-research/​main.py Updated as part of this pull request.
samples/​python/​hosted-agents/​bring-your-own/​invocations/​resilient-research/​src/​resilient-research/​Dockerfile Updated as part of this pull request.
samples/​python/​hosted-agents/​bring-your-own/​invocations/​resilient-research/​README.md Updated as part of this pull request.
samples/​python/​hosted-agents/​bring-your-own/​invocations/​resilient-approval-gate/​src/​resilient-approval-gate/​uv.toml Updated as part of this pull request.
samples/​python/​hosted-agents/​bring-your-own/​invocations/​resilient-approval-gate/​src/​resilient-approval-gate/​requirements.txt Updated as part of this pull request.
samples/​python/​hosted-agents/​bring-your-own/​invocations/​resilient-approval-gate/​src/​resilient-approval-gate/​requirements.in Updated as part of this pull request.
samples/​python/​hosted-agents/​bring-your-own/​invocations/​resilient-approval-gate/​src/​resilient-approval-gate/​pyproject.toml Updated as part of this pull request.
samples/​python/​hosted-agents/​bring-your-own/​invocations/​resilient-approval-gate/​src/​resilient-approval-gate/​Dockerfile Updated as part of this pull request.
samples/​python/​hosted-agents/​bring-your-own/​invocations/​resilient-approval-gate/​README.md Updated as part of this pull request.
samples/​python/​hosted-agents/​bring-your-own/​invocations/​notetaking-agent/​src/​notetaking-agent-invocations-python/​uv.toml Updated as part of this pull request.
samples/​python/​hosted-agents/​bring-your-own/​invocations/​notetaking-agent/​src/​notetaking-agent-invocations-python/​requirements.txt Updated as part of this pull request.
samples/​python/​hosted-agents/​bring-your-own/​invocations/​notetaking-agent/​src/​notetaking-agent-invocations-python/​requirements.in Updated as part of this pull request.
samples/​python/​hosted-agents/​bring-your-own/​invocations/​notetaking-agent/​src/​notetaking-agent-invocations-python/​pyproject.toml Updated as part of this pull request.
samples/​python/​hosted-agents/​bring-your-own/​invocations/​notetaking-agent/​src/​notetaking-agent-invocations-python/​Dockerfile Updated as part of this pull request.
samples/​python/​hosted-agents/​bring-your-own/​invocations/​notetaking-agent/​README.md Updated as part of this pull request.
samples/​python/​hosted-agents/​bring-your-own/​invocations/​langgraph-chat/​src/​langgraph-chat-invocations/​uv.toml Updated as part of this pull request.
samples/​python/​hosted-agents/​bring-your-own/​invocations/​langgraph-chat/​src/​langgraph-chat-invocations/​requirements.txt Updated as part of this pull request.
samples/​python/​hosted-agents/​bring-your-own/​invocations/​langgraph-chat/​src/​langgraph-chat-invocations/​pyproject.toml Updated as part of this pull request.
samples/​python/​hosted-agents/​bring-your-own/​invocations/​langgraph-chat/​src/​langgraph-chat-invocations/​Dockerfile Updated as part of this pull request.
samples/​python/​hosted-agents/​bring-your-own/​invocations/​langgraph-chat/​README.md Updated as part of this pull request.
samples/​python/​hosted-agents/​bring-your-own/​invocations/​human-in-the-loop/​src/​human-in-the-loop-invocations/​uv.toml Updated as part of this pull request.
samples/​python/​hosted-agents/​bring-your-own/​invocations/​human-in-the-loop/​src/​human-in-the-loop-invocations/​requirements.txt Updated as part of this pull request.
samples/​python/​hosted-agents/​bring-your-own/​invocations/​human-in-the-loop/​src/​human-in-the-loop-invocations/​requirements.in Updated as part of this pull request.
samples/​python/​hosted-agents/​bring-your-own/​invocations/​human-in-the-loop/​src/​human-in-the-loop-invocations/​pyproject.toml Updated as part of this pull request.
samples/​python/​hosted-agents/​bring-your-own/​invocations/​human-in-the-loop/​src/​human-in-the-loop-invocations/​Dockerfile Updated as part of this pull request.
samples/​python/​hosted-agents/​bring-your-own/​invocations/​human-in-the-loop/​README.md Updated as part of this pull request.
samples/​python/​hosted-agents/​bring-your-own/​invocations/​hello-world/​src/​hello-world-python-invocations/​uv.toml Updated as part of this pull request.
samples/​python/​hosted-agents/​bring-your-own/​invocations/​hello-world/​src/​hello-world-python-invocations/​requirements.txt Updated as part of this pull request.
samples/​python/​hosted-agents/​bring-your-own/​invocations/​hello-world/​src/​hello-world-python-invocations/​requirements.in Updated as part of this pull request.
samples/​python/​hosted-agents/​bring-your-own/​invocations/​hello-world/​src/​hello-world-python-invocations/​pyproject.toml Updated as part of this pull request.
samples/​python/​hosted-agents/​bring-your-own/​invocations/​hello-world/​src/​hello-world-python-invocations/​Dockerfile Updated as part of this pull request.
samples/​python/​hosted-agents/​bring-your-own/​invocations/​hello-world/​README.md Updated as part of this pull request.
samples/​python/​hosted-agents/​bring-your-own/​invocations/​github-copilot/​src/​github-copilot-invocations/​uv.toml Updated as part of this pull request.
samples/​python/​hosted-agents/​bring-your-own/​invocations/​github-copilot/​src/​github-copilot-invocations/​requirements.txt Updated as part of this pull request.
samples/​python/​hosted-agents/​bring-your-own/​invocations/​github-copilot/​src/​github-copilot-invocations/​requirements.in Updated as part of this pull request.
samples/​python/​hosted-agents/​bring-your-own/​invocations/​github-copilot/​src/​github-copilot-invocations/​pyproject.toml Updated as part of this pull request.
samples/​python/​hosted-agents/​bring-your-own/​invocations/​github-copilot/​src/​github-copilot-invocations/​Dockerfile Updated as part of this pull request.
samples/​python/​hosted-agents/​bring-your-own/​invocations/​github-copilot/​README.md Updated as part of this pull request.
samples/​python/​hosted-agents/​bring-your-own/​invocations/​event-grid-trigger/​src/​event-grid-trigger-python-invocations/​uv.toml Updated as part of this pull request.
samples/​python/​hosted-agents/​bring-your-own/​invocations/​event-grid-trigger/​src/​event-grid-trigger-python-invocations/​sample.yaml Updated as part of this pull request.
samples/​python/​hosted-agents/​bring-your-own/​invocations/​event-grid-trigger/​src/​event-grid-trigger-python-invocations/​requirements.txt Updated as part of this pull request.
samples/​python/​hosted-agents/​bring-your-own/​invocations/​event-grid-trigger/​src/​event-grid-trigger-python-invocations/​requirements.in Updated as part of this pull request.
samples/​python/​hosted-agents/​bring-your-own/​invocations/​event-grid-trigger/​src/​event-grid-trigger-python-invocations/​pyproject.toml Updated as part of this pull request.
samples/​python/​hosted-agents/​bring-your-own/​invocations/​event-grid-trigger/​src/​event-grid-trigger-python-invocations/​Dockerfile Updated as part of this pull request.
samples/​python/​hosted-agents/​bring-your-own/​invocations/​diagnostic-agent/​src/​diagnostic-agent-python-invocations/​uv.toml Updated as part of this pull request.
samples/​python/​hosted-agents/​bring-your-own/​invocations/​diagnostic-agent/​src/​diagnostic-agent-python-invocations/​requirements.txt Updated as part of this pull request.
samples/​python/​hosted-agents/​bring-your-own/​invocations/​diagnostic-agent/​src/​diagnostic-agent-python-invocations/​pyproject.toml Updated as part of this pull request.
samples/​python/​hosted-agents/​bring-your-own/​invocations/​diagnostic-agent/​src/​diagnostic-agent-python-invocations/​Dockerfile Updated as part of this pull request.
samples/​python/​hosted-agents/​bring-your-own/​invocations/​diagnostic-agent/​README.md Updated as part of this pull request.
samples/​python/​hosted-agents/​bring-your-own/​invocations/​claude-agent-sdk/​src/​claude-agent-sdk-invocations/​uv.toml Updated as part of this pull request.
samples/​python/​hosted-agents/​bring-your-own/​invocations/​claude-agent-sdk/​src/​claude-agent-sdk-invocations/​requirements.txt Updated as part of this pull request.
samples/​python/​hosted-agents/​bring-your-own/​invocations/​claude-agent-sdk/​src/​claude-agent-sdk-invocations/​pyproject.toml Updated as part of this pull request.
samples/​python/​hosted-agents/​bring-your-own/​invocations/​claude-agent-sdk/​src/​claude-agent-sdk-invocations/​Dockerfile Updated as part of this pull request.
samples/​python/​hosted-agents/​bring-your-own/​invocations/​claude-agent-sdk/​README.md Updated as part of this pull request.
samples/​python/​hosted-agents/​bring-your-own/​invocations/​ag-ui/​src/​ag-ui-invocations/​uv.toml Updated as part of this pull request.
samples/​python/​hosted-agents/​bring-your-own/​invocations/​ag-ui/​src/​ag-ui-invocations/​requirements.txt Updated as part of this pull request.
samples/​python/​hosted-agents/​bring-your-own/​invocations/​ag-ui/​src/​ag-ui-invocations/​pyproject.toml Updated as part of this pull request.
samples/​python/​hosted-agents/​bring-your-own/​invocations/​ag-ui/​src/​ag-ui-invocations/​Dockerfile Updated as part of this pull request.
samples/​python/​hosted-agents/​bring-your-own/​invocations/​ag-ui/​README.md Updated as part of this pull request.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Copilot AI balanced review requested due to automatic review settings October 6, 2026 09:20

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.

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.

Copilot review overview

🔵 Needs a closer look

One or more issues must be addressed before approval.

Review effort: Balanced
Findings: 1 Medium severity

Open (1)

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.

Copilot review overview

🟡 Changes recommended

One or more issues must be addressed before approval.

Review effort: Balanced
Findings: 1 High severity

Open (1)
Resolved since last review (1)

Antriksh Jain added 4 commits October 7, 2026 12:44
Replace requirements-based dependency management for Bring Your Own Invocations and Responses samples with pyproject.toml, uv.lock, and uv-native container/runtime guidance while preserving the existing resolved versions.

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

Copilot-Session: ec0a8f22-0687-4209-912b-1d5f4c4263f1
Run uv setup and helper commands from each sample's service project directory, point VS Code at the correct nested virtual environment, and invoke session-multiplexing helpers through the locked environment.

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

Copilot-Session: ec0a8f22-0687-4209-912b-1d5f4c4263f1
Azure Linux cannot validate the CI egress certificate when uv downloads the locked PyPI artifacts. Use the existing Python 3.12 slim runtime for the four Toolbox images so uv keeps certificate validation enabled.

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

Copilot-Session: ec0a8f22-0687-4209-912b-1d5f4c4263f1
Move the service-directory change into the local setup snippet so it cannot be mistaken for response content.

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

Copilot-Session: ec0a8f22-0687-4209-912b-1d5f4c4263f1
Copilot AI balanced review requested due to automatic review settings October 7, 2026 07:15
@antriksh30
Antriksh Jain (antriksh30) force-pushed the migrate-byo-python-hosted-agents-to-uv branch from d9cba01 to d71d10c Compare October 7, 2026 07:15

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.

Copilot review overview

🟡 Changes recommended

One or more issues must be addressed before approval.

Review effort: Balanced
Findings: 2 High severity

Open (2)
Resolved since last review (1)

Prevent local uv environments from overwriting the frozen Linux environment created during container builds.

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

Copilot-Session: ec0a8f22-0687-4209-912b-1d5f4c4263f1
Copilot AI balanced review requested due to automatic review settings October 7, 2026 07:26

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.

Copilot review overview

🔵 Needs a closer look

One or more issues must be addressed before approval.

Review effort: Balanced
Findings: None

Resolved since last review (2)
Previously missed (2)

In code that hasn't changed since last review

Low severity Exclude .venv from compileall validation

samples/​python/​hosted-agents/​bring-your-own/​invocations/​event-grid-trigger/​src/​event-grid-trigger-python-invocations/​sample.yaml:5

The build step above creates .venv in this directory, so compileall -q . also walks and compiles the installed dependency tree on every validation run. Exclude .venv here, as the migrated Dockerfiles already do, to keep this check focused on sample source.

Low severity Correct project directory path in file listings

samples/​python/​hosted-agents/​bring-your-own/​responses/​browser-automation/​README.md:29

These newly listed project files are nested under src/browser-automation-python-byo-sample-foundry, but the manifest and actual service directory use src/bat-python-byo. As written, the tree points readers to a path where the new pyproject.toml and uv.lock do not exist; update the directory name to match the service path.

Keep Event Grid syntax validation out of the uv environment and align the browser automation README tree with its manifest project directory.

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

Copilot-Session: ec0a8f22-0687-4209-912b-1d5f4c4263f1
Copilot AI balanced review requested due to automatic review settings October 7, 2026 07:36
@antriksh30

Copy link
Copy Markdown
Contributor Author

Addressed the two previously missed items from the latest Copilot review in 9c6072c: Event Grid now compiles only main.py instead of traversing .venv, and the browser automation README tree now uses the manifest service path src/bat-python-byo.

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.

Copilot review overview

🔵 Needs a closer look

The changes require final human review because they are too complex or risky for automated approval.

Review effort: Balanced
Findings: None

@antriksh30
Antriksh Jain (antriksh30) merged commit 3c0d9e3 into main Oct 7, 2026
111 checks passed
@antriksh30
Antriksh Jain (antriksh30) deleted the migrate-byo-python-hosted-agents-to-uv branch October 7, 2026 15:23
Ankit Sinha (ankitbko) pushed a commit that referenced this pull request Oct 12, 2026
* Declare direct Starlette dependencies

Declare Starlette in the 12 previously migrated Invocations runtimes that import it directly, retaining the versions already present in their frozen lock graphs.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: ec0a8f22-0687-4209-912b-1d5f4c4263f1

* Document uv prerequisites for prior migrations

List uv before azd local-run commands and align documented Python requirements with the migrated runtime pyproject.toml files from PRs #1051 and #1053.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: ec0a8f22-0687-4209-912b-1d5f4c4263f1

* Keep Starlette managed by AgentServer

Remove the direct Starlette declarations added by the audit. These samples intentionally consume the AgentServer-selected Starlette version through the frozen dependency graph so compatibility remains controlled by AgentServer.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: ec0a8f22-0687-4209-912b-1d5f4c4263f1

---------

Co-authored-by: Antriksh Jain <antrikshjain@microsoft.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: ec0a8f22-0687-4209-912b-1d5f4c4263f1

This branch was successfully deployed

1 active deployment
L4-validation — 9c6072c2 Deployed Oct 7, 2026 by antriksh30 via trusted #456
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.

5 participants