Repository navigation
Migrate Python BYO Invocations and Responses samples to uv - #1051
Conversation
There was a problem hiding this comment.
Copilot review overview
🟡 Changes recommended
One or more issues must be addressed before approval.
Review effort: Balanced
Findings: 25
Open (25)
Run setup commands from the service directory · New Run setup commands from the service directory · New Run setup commands from the service directory · New Run setup commands from the service directory · New Run setup commands from the service directory · New Run setup commands from the service directory · New Run setup commands from the service directory · New Run setup commands from the service directory · New Run setup commands from the service directory · New Run setup commands from the service directory · New Run setup commands from the service directory · New Run setup commands from the service directory · New Run setup commands from the service directory · New Run setup commands from the service directory · New Run setup commands from the service directory · New Run setup commands from the service directory · New Run setup commands from the service directory · New Run setup commands from the service directory · New Run setup commands from the service directory · New Run setup commands from the service directory · New
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.
There was a problem hiding this comment.
Warning
Copilot couldn't run its full agentic review because it didn't start before the timeout. Make sure your repository has a runner available, or add a copilot-code-review.yml file specifying one with the runs-on attribute. See the docs for more details.
Copilot review overview
Review effort: Lite
Findings: 1
Open (1)
Resolved since last review (25)
Activate the environment before running isolation scripts Run setup commands from the service directory Run setup commands from the service directory Run setup commands from the service directory Run setup commands from the service directory Run setup commands from the service directory Run setup commands from the service directory Run setup commands from the service directory Run setup commands from the service directory Run setup commands from the service directory Run setup commands from the service directory Run setup commands from the service directory Run setup commands from the service directory Run setup commands from the service directory Run setup commands from the service directory Run setup commands from the service directory Run setup commands from the service directory Run setup commands from the service directory Run setup commands from the service directory Run setup commands from the service directory
And 5 more resolved.
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
d9cba01 to
d71d10c
Compare
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
There was a problem hiding this comment.
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

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.

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
|
Addressed the two previously missed items from the latest Copilot review in 9c6072c: Event Grid now compiles only |
* 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


Summary
requirements.txt/requirements.intopyproject.toml,uv.lock, anduv.toml.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 --resolveuv lock --checkfor all 27 migrated runtimes