Repository navigation
Python: Fix Copilot Studio explicit-settings sample dependency - #9731
Draft
Naveen Chatlapalli (1aifanatic) wants to merge 1 commit into
Draft
Naveen Chatlapalli (1aifanatic) wants to merge 1 commit into
Naveen Chatlapalli (1aifanatic) wants to merge 1 commit into
Conversation
The PEP 723 header required "microsoft-agents", which is not a package on PyPI, so uv could not resolve the script. The sample imports microsoft_agents.copilotstudio.client, provided by microsoft-agents-copilotstudio-client. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Naveen Chatlapalli (1aifanatic)
temporarily deployed
to
github-app-auth
October 26, 2026 18:36 — with
GitHub Actions
Inactive
Naveen Chatlapalli (1aifanatic)
temporarily deployed
to
github-app-auth
October 26, 2026 18:36 — with
GitHub Actions
Inactive
Contributor
There was a problem hiding this comment.
🟢 Approval recommended
The single metadata correction matches the imported SDK and existing integration dependency, with no identified issues.
No open issues 🎉
What changed in this PR
Corrects the Copilot Studio explicit-settings sample’s dependency metadata so PEP 723 runners can resolve the SDK it imports.
Changes:
- Replaces
microsoft-agentswithmicrosoft-agents-copilotstudio-client, matching the integration’s declared dependency. - Leaves sample behavior unchanged.
| File | Description |
|---|---|
python/samples/02-agents/providers/copilotstudio/copilotstudio_with_explicit_settings.py |
Corrects the SDK package name in the PEP 723 dependency header. |
Review effort: Balanced
This branch was previously deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Motivation & Context
python/samples/02-agents/providers/copilotstudio/copilotstudio_with_explicit_settings.pylists"microsoft-agents"in its PEP 723 dependencies. No package by that name exists on PyPI (the JSON API returns 404), so the documenteduv runcommand fails before the sample starts:Description & Review Guide
microsoft-agents-copilotstudio-client, which provides themicrosoft_agents.copilotstudio.clientmodule the sample imports. It is also whatagent-framework-copilotstudioitself depends on.With the change,
uv run --scriptresolves, installs, and imports the sample, which then stops at its expectedCOPILOTSTUDIOAGENT__ENVIRONMENTIDconfiguration check. I found this by resolving every sample's PEP 723 header withuv pip compile. This was the only header that failed to resolve, and every other header covers its sample's imports.Related Issue
N/A - trivial change: the dependency names a package that does not exist, and the correct package is the one the sample imports, so the desired result is not in dispute.
AI Assistance
AI assistance details: Claude Code helped write the header-resolution check that found this, make the edit, and draft this description.
Contribution Checklist
breaking changelabel (or add "[BREAKING]" to the title prefix, before or after any language prefix) — a workflow keeps the label and title prefix in sync automatically.🤖 Generated with Claude Code