Skip to content

Python: Fix Copilot Studio constructor in package guide - #9551

Open
LI (ktz03) wants to merge 1 commit into
microsoft:mainfrom
ktz03:docs/copilotstudio-agent-identifier-20261020
Open

LI (ktz03) wants to merge 1 commit into
microsoft:mainfrom
ktz03:docs/copilotstudio-agent-identifier-20261020

Conversation

@ktz03

Copy link
Copy Markdown
Contributor

Motivation & Context

The Copilot Studio package guide passes bot_identifier to CopilotStudioAgent, which raises TypeError before construction. The constructor accepts agent_identifier.

Description & Review Guide

  • What are the major changes? Replace the obsolete keyword with agent_identifier and use an agent-schema placeholder in the existing example.
  • What is the impact of these changes? The example follows the implemented constructor. Runtime code is unchanged. Windows local construction with a placeholder token and an explicit-client control passed using current source; authentication, agent execution, cloud services, package builds, and the full suite were not run.
  • What do you want reviewers to focus on? The example's keyword and schema-name placeholder match the constructor.

Related Issue

N/A - trivial change: an obvious correction of an unsupported keyword in existing documentation, with no runtime or API change.

AI Assistance

  • No material AI assistance was used.
  • This is an AI-assisted contribution. I reviewed, understood, and verified all submitted content and accept responsibility for it.

AI assistance details: Documentation, local verification, and PR description.

Contribution Checklist

  • The code builds clean without any errors or warnings
  • All unit tests pass, and I have added new tests where possible
  • The PR follows the Contribution Guidelines
  • This PR links to an agreed issue with no competing open PR, or the Related Issue section documents a trivial-change or repository-automation exception.
  • This is not a breaking change. If it is a breaking change, add the breaking change label (or add "[BREAKING]" to the title prefix, before or after a language prefix such as Python: or .NET:) — a workflow keeps the label and title prefix in sync automatically.

Copilot AI balanced review requested due to automatic review settings October 20, 2026 04:13
@ktz03
LI (ktz03) deployed to github-app-auth October 20, 2026 04:13 — with GitHub Actions Active
@ktz03
LI (ktz03) deployed to github-app-auth October 20, 2026 04:13 — with GitHub Actions Active
@agent-framework-automation agent-framework-automation Bot added documentation Usage: [Issues, PRs], Target: documentation in the code base and learn docs python Usage: [Issues, PRs], Target: Python labels Oct 20, 2026

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 documentation-only correction matches the constructor signature and parameter semantics, with no unresolved findings.

No open issues 🎉

What changed in this PR

Corrects the Copilot Studio package guide to match the implemented constructor. Runtime code is unchanged.

Changes:

  • Replaces bot_identifier with agent_identifier.
  • Uses a placeholder that indicates an agent schema name.
File Description
python/​packages/​copilotstudio/​AGENTS.md Corrects the constructor keyword and placeholder in the example.

Review effort: Balanced

This branch was successfully deployed

1 active deployment
github-app-auth — 682f9cc8 Deployed Oct 20, 2026 by ktz03 via team_check #7094
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Usage: [Issues, PRs], Target: documentation in the code base and learn docs python Usage: [Issues, PRs], Target: Python

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants