Skip to content

Fix up docs with Copilot (MEAI)#7600

Merged
jeffhandley merged 7 commits into
mainfrom
ai-docs
Jul 9, 2026
Merged

Fix up docs with Copilot (MEAI)#7600
jeffhandley merged 7 commits into
mainfrom
ai-docs

Conversation

@gewarren

@gewarren gewarren commented Jun 30, 2026

Copy link
Copy Markdown
Contributor
  • Separate out long summaries into remarks tag
  • Use consistent wording for properties
  • Methods start with present tense verb
Microsoft Reviewers: Open in CodeFlow

Copilot AI review requested due to automatic review settings June 30, 2026 22:59
@gewarren
gewarren requested a review from a team as a code owner June 30, 2026 22:59

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

This PR refines XML documentation across the Microsoft.Extensions.AI libraries to improve consistency and readability (moving long explanations into <remarks> / <value>, standardizing property wording, and adjusting phrasing).

Changes:

  • Moved extended explanatory text out of <summary> into <remarks> / <value> for clearer API docs.
  • Standardized init-only property docs to use “Gets or initializes …” and aligned “value that indicates …” phrasing.
  • Clarified examples and custom attribute references in realtime and OpenTelemetry-related constants/docs.

Reviewed changes

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

Show a summary per file
File Description
src/Libraries/Microsoft.Extensions.AI/OpenTelemetryConsts.cs Reworked GenAI realtime operation docs into <remarks> and standardized wording.
src/Libraries/Microsoft.Extensions.AI/ChatCompletion/FunctionInvocationContext.cs Adjusted property phrasing for consistency (“value that indicates …”).
src/Libraries/Microsoft.Extensions.AI.Abstractions/Utilities/AIJsonSchemaTransformOptions.cs Standardized init-only property docs (“Gets or initializes …”).
src/Libraries/Microsoft.Extensions.AI.Abstractions/Utilities/AIJsonSchemaTransformContext.cs Updated boolean property summaries for consistent phrasing.
src/Libraries/Microsoft.Extensions.AI.Abstractions/Utilities/AIJsonSchemaCreateOptions.cs Standardized init-only property docs and related summaries.
src/Libraries/Microsoft.Extensions.AI.Abstractions/Tools/HostedMcpServerTool.cs Moved extended ServerAddress explanation into <remarks>.
src/Libraries/Microsoft.Extensions.AI.Abstractions/Realtime/ResponseCreatedRealtimeServerMessage.cs Improved property docs using <value> for null semantics and clearer examples.
src/Libraries/Microsoft.Extensions.AI.Abstractions/Realtime/RealtimeSessionOptions.cs Standardized multiple init-only property docs and adjusted OutputModalities documentation.
src/Libraries/Microsoft.Extensions.AI.Abstractions/Realtime/RealtimeServerMessage.cs Moved correlation detail into <remarks>.
src/Libraries/Microsoft.Extensions.AI.Abstractions/Realtime/RealtimeConversationItem.cs Moved extended explanation of RawRepresentation into <remarks>.
src/Libraries/Microsoft.Extensions.AI.Abstractions/Realtime/RealtimeClientMessage.cs Moved correlation detail into <remarks>.
src/Libraries/Microsoft.Extensions.AI.Abstractions/Realtime/RealtimeAudioFormat.cs Standardized init-only property docs (“Gets or initializes …”).
src/Libraries/Microsoft.Extensions.AI.Abstractions/Contents/ToolApprovalResponseContent.cs Adjusted boolean property phrasing for consistency.
src/Libraries/Microsoft.Extensions.AI.Abstractions/ChatCompletion/ChatToolMode.cs Moved a requirement statement into <remarks> for cleaner summary text.

@gewarren gewarren changed the title Fix up docs Fix up docs with Copilot (MEAI) Jun 30, 2026
Comment thread src/Libraries/Microsoft.Extensions.AI/ChatCompletion/FunctionInvocationContext.cs Outdated
@gewarren
gewarren requested a review from jozkee July 6, 2026 17:39
@dotnet-comment-bot

Copy link
Copy Markdown
Collaborator

‼️ Found issues ‼️

Project Coverage Type Expected Actual
Microsoft.Extensions.Diagnostics.Testing Line 99 98.65 🔻
Microsoft.Extensions.Telemetry Line 93 91.95 🔻
Microsoft.Extensions.AI Line 89 88.54 🔻
Microsoft.Extensions.AI Branch 89 88.57 🔻
Microsoft.Extensions.AI.OpenAI Line 75 62.89 🔻
Microsoft.Extensions.AI.OpenAI Branch 75 50.41 🔻
Microsoft.Extensions.DataIngestion.MarkItDown Line 75 4.46 🔻
Microsoft.Extensions.DataIngestion.MarkItDown Branch 75 0 🔻
Microsoft.Extensions.Diagnostics.ResourceMonitoring Line 99 96.03 🔻
Microsoft.Extensions.Diagnostics.ResourceMonitoring Branch 99 94.39 🔻
Microsoft.Extensions.Diagnostics.ResourceMonitoring.Kubernetes Line 99 97.73 🔻
Microsoft.Extensions.ServiceDiscovery.Dns Line 75 71.61 🔻
Microsoft.Extensions.ServiceDiscovery.Abstractions Line 75 42.11 🔻
Microsoft.Extensions.ServiceDiscovery.Abstractions Branch 75 42.86 🔻
Microsoft.Extensions.ServiceDiscovery Line 75 68.72 🔻
Microsoft.Extensions.ServiceDiscovery Branch 75 71.43 🔻
Microsoft.Extensions.ServiceDiscovery.Yarp Line 75 73.85 🔻
Microsoft.Extensions.ServiceDiscovery.Yarp Branch 75 70 🔻
Microsoft.Extensions.VectorData.Abstractions Line 75 37.39 🔻
Microsoft.Extensions.VectorData.Abstractions Branch 75 22.73 🔻

🎉 Good job! The coverage increased 🎉
Update MinCodeCoverage in the project files.

Project Expected Actual
Microsoft.Gen.BuildMetadata 97 100
Microsoft.Gen.MetadataExtractor 57 73
Microsoft.Gen.MetricsReports 67 69
Microsoft.Extensions.AI.Abstractions 82 85
Microsoft.Extensions.AI.Evaluation.NLP 0 78
Microsoft.Extensions.Caching.Hybrid 82 84
Microsoft.Extensions.DataIngestion 75 89
Microsoft.Extensions.DataIngestion.Markdig 75 90
Microsoft.Extensions.Http.Resilience 97 100

Full code coverage report: https://dev.azure.com/dnceng-public/public/_build/results?buildId=1495550&view=codecoverage-tab

@jeffhandley jeffhandley left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, @gewarren!

@jeffhandley
jeffhandley merged commit 3c16426 into main Jul 9, 2026
5 checks passed
@jeffhandley
jeffhandley deleted the ai-docs branch July 9, 2026 03:32
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