Skip to content

Short-form to fully qualified object naming - #381

Merged
Axel Suárez (axelsrz) merged 11 commits into
mainfrom
pehecke-xref-docstrings
May 22, 2026
Merged

Short-form to fully qualified object naming#381
Axel Suárez (axelsrz) merged 11 commits into
mainfrom
pehecke-xref-docstrings

Conversation

@phecke

Copy link
Copy Markdown
Member

Change all docstrings from using object short-form naming to the fully qualified name. This is required for generation of the Learn API reference.

Copilot AI review requested due to automatic review settings May 1, 2026 00:24
@phecke
Peter Hecke (phecke) requested a review from a team as a code owner May 1, 2026 00:24

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.

Pull request overview

Updates Python docstrings across dialogs, core hosting, and activity libraries to use fully qualified object names, to support Learn API reference generation.

Changes:

  • Replace short-form :class:, :meth:, and :attr: references with fully qualified names (e.g., microsoft_agents.hosting.dialogs.WaterfallDialog).
  • Update return/parameter documentation to reference fully qualified types in prompts, dialogs, proactive, and activity APIs.
  • Standardize doc references across core app/proactive builder APIs to qualified :rtype: / :return: targets.

Reviewed changes

Copilot reviewed 18 out of 18 changed files in this pull request and generated 6 comments.

Show a summary per file
File Description
libraries/microsoft-agents-hosting-dialogs/microsoft_agents/hosting/dialogs/waterfall_step_context.py Fully qualifies dialog and method references in WaterfallStepContext docstrings.
libraries/microsoft-agents-hosting-dialogs/microsoft_agents/hosting/dialogs/waterfall_dialog.py Fully qualifies waterfall step context, end-of-turn, and method references.
libraries/microsoft-agents-hosting-dialogs/microsoft_agents/hosting/dialogs/prompts/prompt_options.py Fully qualifies prompt and choice prompt type references.
libraries/microsoft-agents-hosting-dialogs/microsoft_agents/hosting/dialogs/prompts/confirm_prompt.py Fully qualifies PromptCultureModels reference.
libraries/microsoft-agents-hosting-dialogs/microsoft_agents/hosting/dialogs/prompts/choice_prompt.py Fully qualifies reference to _default_choice_options.
libraries/microsoft-agents-hosting-dialogs/microsoft_agents/hosting/dialogs/prompts/attachment_prompt.py Fully qualifies Attachment type reference.
libraries/microsoft-agents-hosting-dialogs/microsoft_agents/hosting/dialogs/prompts/activity_prompt.py Fully qualifies prompt lifecycle method/type references and Dialog.end_of_turn.
libraries/microsoft-agents-hosting-dialogs/microsoft_agents/hosting/dialogs/models/dialog_reason.py Fully qualifies dialog context/step context method references in enum docs.
libraries/microsoft-agents-hosting-dialogs/microsoft_agents/hosting/dialogs/component_dialog.py Fully qualifies component dialog and related method/type references.
libraries/microsoft-agents-hosting-core/microsoft_agents/hosting/core/app/proactive/proactive.py Fully qualifies proactive API references (methods, attrs, options).
libraries/microsoft-agents-hosting-core/microsoft_agents/hosting/core/app/proactive/conversation_reference_builder.py Fully qualifies fluent builder :rtype: references.
libraries/microsoft-agents-hosting-core/microsoft_agents/hosting/core/app/proactive/conversation_builder.py Fully qualifies fluent builder :rtype: references.
libraries/microsoft-agents-hosting-core/microsoft_agents/hosting/core/app/proactive/conversation.py Fully qualifies conversation factory/method references.
libraries/microsoft-agents-hosting-core/microsoft_agents/hosting/core/app/input_file.py Fully qualifies InputFile references in downloader docs.
libraries/microsoft-agents-hosting-core/microsoft_agents/hosting/core/app/app_options.py Fully qualifies AgentApplication.proactive attribute reference.
libraries/microsoft-agents-hosting-core/microsoft_agents/hosting/core/app/agent_application.py Fully qualifies AgentApplication.add_route reference in route decorator docs.
libraries/microsoft-agents-hosting-core/microsoft_agents/hosting/core/activity_handler.py Fully qualifies ActivityHandler method references in docstrings/notes.
libraries/microsoft-agents-activity/microsoft_agents/activity/activity.py Fully qualifies Activity references in factory method docs.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

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.

Pull request overview

Copilot reviewed 18 out of 18 changed files in this pull request and generated 1 comment.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@axelsrz

Copy link
Copy Markdown
Member

Peter Hecke (@phecke) could you please check if copilot comments are accurate?

Copilot AI review requested due to automatic review settings May 18, 2026 22:43
…sting/dialogs/models/dialog_reason.py

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

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.

Pull request overview

Copilot reviewed 18 out of 18 changed files in this pull request and generated no new comments.

…sting/dialogs/models/dialog_reason.py

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Copilot AI review requested due to automatic review settings May 18, 2026 23:55
Peter Hecke (phecke) and others added 4 commits May 18, 2026 16:56
…ng/core/app/input_file.py

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
…ng/core/activity_handler.py

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
…sting/dialogs/models/dialog_reason.py

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

Copy link
Copy Markdown
Member Author

Copilot apply changes based on the comments in this thread

Copilot AI commented May 19, 2026

Copy link
Copy Markdown
Contributor

Copilot apply changes based on the comments in this thread

All review comments from the referenced thread have already been addressed in previous commits:

  • Line 10 (begin → begin_dialog): Fixed in 12ff552
  • Line 16 (double backticks): Fixed in 5f30453
  • Line 17 (ReplacedCalled typo): Fixed in bc559f9
  • input_file.py alignment: Fixed in 1d2f6f3 and 7305583
  • activity_handler.py grammar: Fixed in dfc27c9

The working tree is clean with no pending changes.

@axelsrz
Axel Suárez (axelsrz) merged commit 808aa7a into main May 22, 2026
11 checks passed
@axelsrz
Axel Suárez (axelsrz) deleted the pehecke-xref-docstrings branch May 22, 2026 19:09
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