Skip to content

Update ApiChief baselines for MEAI and MEVD#7461

Merged
jeffhandley merged 3 commits intodotnet:mainfrom
jeffhandley:jeffhandley/apichief-baselines
Apr 11, 2026
Merged

Update ApiChief baselines for MEAI and MEVD#7461
jeffhandley merged 3 commits intodotnet:mainfrom
jeffhandley:jeffhandley/apichief-baselines

Conversation

@jeffhandley
Copy link
Copy Markdown
Member

@jeffhandley jeffhandley commented Apr 10, 2026

Ran '/run-apichief' skill for MEAI and MEVD.

  • MEVD.Abstractions PublicKeyToken changed from 31bf3856ad364e35 (Microsoft strong name key) to f300afd708cefcd3. This reflects the assembly as-built and is not a baseline editing artifact.

  • MEVD.Abstractions: 'where TRecord : class' generic constraints now appear on IKeywordHybridSearchable, IVectorSearchable, and VectorSearchResult.

  • MEVD.Abstractions: Primary constructor portion removed from PropertyModel Type field (ILSpy decompiler limitation, issue C# language support status icsharpcode/ILSpy#829 still open). Instruction comments added.

  • MEAI.Abstractions: ~70 new types added including Realtime client abstractions (IRealtimeClient, IRealtimeClientSession, RealtimeClientMessage, RealtimeServerMessage and subtypes), ITextToSpeechClient, ISpeechToTextClient, IHostedFileClient, HostedFileSearchTool, HostedImageGenerationTool, HostedMcpServerTool, and related content types. ~27 types removed/replaced.

  • MEAI: ~25 new types for Realtime, TextToSpeech, and HostedFile delegating clients, builders, logging, and OpenTelemetry wrappers.

  • MEAI.OpenAI: New OpenAIRealtimeClient, OpenAIRealtimeClientSession, and extension methods for AsIHostedFileClient/AsITextToSpeechClient.

  • MEAI: 'scoped' replaced with 'params' on 4 ReadOnlySpan<object?>
    parameters (ILSpy decompiler limitation, C# language support status icsharpcode/ILSpy#829). Instruction comments restored.

Microsoft Reviewers: Open in CodeFlow

Ran '/run-apichief' skill for MEAI and MEVD.

Noteworthy changes for reviewers:

- MEVD.Abstractions PublicKeyToken changed from 31bf3856ad364e35
  (Microsoft strong name key) to f300afd708cefcd3. This differs from
  MEVD.ConformanceTests and all MEAI assemblies, which still use the
  original key. This reflects the assembly as-built and is not a
  baseline editing artifact.

- MEVD.Abstractions: CollectionModelBuildingOptions.CollectionModelBuildingOptions()
  stage changed from Experimental to Obsolete. The C# compiler emits
  [Obsolete] on parameterless constructors of types with 'required'
  members to protect older compilers. ApiChief's ParsedMember handles
  the analogous compiler-generated [Obsolete] for readonly ref structs
  but doesn't yet have a carve-out for the required-members variant,
  so it reports Obsolete instead of inheriting the parent type's
  Experimental stage.

- MEVD.Abstractions: 'where TRecord : class' generic constraints now
  appear on IKeywordHybridSearchable<TRecord>,
  IVectorSearchable<TRecord>, and VectorSearchResult<TRecord>.

- MEVD.Abstractions: Primary constructor portion removed from
  PropertyModel Type field (ILSpy decompiler limitation, issue
  icsharpcode/ILSpy#829 still open). Instruction comments added.

- MEVD.ConformanceTests: New baseline file (2597 lines). Primary
  constructor portions removed from 14 abstract test class Type fields
  with instruction comments.

- MEAI.Abstractions: ~70 new types added including Realtime client
  abstractions (IRealtimeClient, IRealtimeClientSession,
  RealtimeClientMessage, RealtimeServerMessage and subtypes),
  ITextToSpeechClient, ISpeechToTextClient, IHostedFileClient,
  HostedFileSearchTool, HostedImageGenerationTool, HostedMcpServerTool,
  and related content types. ~27 types removed/replaced.

- MEAI: ~25 new types for Realtime, TextToSpeech, and HostedFile
  delegating clients, builders, logging, and OpenTelemetry wrappers.

- MEAI.OpenAI: New OpenAIRealtimeClient, OpenAIRealtimeClientSession,
  and extension methods for AsIHostedFileClient/AsITextToSpeechClient.

- MEAI: 'scoped' replaced with 'params' on 4 ReadOnlySpan<object?>
  parameters (ILSpy decompiler limitation, icsharpcode/ILSpy#829).
  Instruction comments restored.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@jeffhandley jeffhandley requested review from ericstj and roji April 10, 2026 04:02
@jeffhandley jeffhandley self-assigned this Apr 10, 2026
@jeffhandley jeffhandley requested a review from a team as a code owner April 10, 2026 04:02
Copilot AI review requested due to automatic review settings April 10, 2026 04:02
@github-actions github-actions Bot added the area-ai Microsoft.Extensions.AI libraries label Apr 10, 2026
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Updates ApiChief baseline files for Microsoft.Extensions.AI (MEAI) and Microsoft.Extensions.VectorData (MEVD) to reflect the current public surface area as-built, including newly introduced Realtime/HostedFile/TextToSpeech APIs and updated MEVD metadata/signing details.

Changes:

  • Refreshed MEAI baselines (Abstractions, implementation, OpenAI) to version 10.5.0.0 with new Realtime, HostedFile, SpeechToText, and TextToSpeech types/members.
  • Updated MEVD.Abstractions baseline for PublicKeyToken change, required-member constructor staging, generic constraints, and ILSpy primary-constructor limitations.
  • Added a new MEVD.ConformanceTests baseline file.

Reviewed changes

Copilot reviewed 3 out of 5 changed files in this pull request and generated no comments.

Show a summary per file
File Description
src/Libraries/Microsoft.Extensions.VectorData.ConformanceTests/Microsoft.Extensions.VectorData.ConformanceTests.json New ApiChief baseline for VectorData conformance test assembly (includes ILSpy primary-constructor workaround comments).
src/Libraries/Microsoft.Extensions.VectorData.Abstractions/Microsoft.Extensions.VectorData.Abstractions.json Updates baseline for signing token, constructor stage reporting, generic constraints, and primary-constructor decompilation workaround.
src/Libraries/Microsoft.Extensions.AI/Microsoft.Extensions.AI.json Updates MEAI implementation baseline to 10.5.0.0 and captures new client/builders/logging/OTel wrappers for new feature areas.
src/Libraries/Microsoft.Extensions.AI.OpenAI/Microsoft.Extensions.AI.OpenAI.json Updates MEAI.OpenAI baseline to 10.5.0.0 with new Realtime and hosted-file/TTS extension APIs.
src/Libraries/Microsoft.Extensions.AI.Abstractions/Microsoft.Extensions.AI.Abstractions.json Updates MEAI abstractions baseline to 10.5.0.0 with expanded Realtime and Files/TTS/STT surfaces and related content/options types.

Copy link
Copy Markdown
Member

@roji roji left a comment

Choose a reason for hiding this comment

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

LGTM, only thing is to not include the ConformanceTests.

@dotnet-policy-service dotnet-policy-service Bot added the waiting-author-feedback 📭 The author of this issue needs to respond in order for us to continue investigating this issue. label Apr 10, 2026
@jeffhandley jeffhandley removed the waiting-author-feedback 📭 The author of this issue needs to respond in order for us to continue investigating this issue. label Apr 10, 2026
@jeffhandley jeffhandley requested a review from roji April 10, 2026 06:48
Copy link
Copy Markdown
Member

@roji roji left a comment

Choose a reason for hiding this comment

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

OK for the MEVD side (didn't look too much at the MEAI changes)

@jeffhandley jeffhandley merged commit 03a9943 into dotnet:main Apr 11, 2026
6 checks passed
@jeffhandley jeffhandley deleted the jeffhandley/apichief-baselines branch April 11, 2026 04:20
jeffhandley added a commit that referenced this pull request Apr 11, 2026
* Update ApiChief baselines for MEAI and MEVD

Ran '/run-apichief' skill for MEAI and MEVD.

Noteworthy changes for reviewers:

- MEVD.Abstractions PublicKeyToken changed from 31bf3856ad364e35
  (Microsoft strong name key) to f300afd708cefcd3. This differs from
  MEVD.ConformanceTests and all MEAI assemblies, which still use the
  original key. This reflects the assembly as-built and is not a
  baseline editing artifact.

- MEVD.Abstractions: CollectionModelBuildingOptions.CollectionModelBuildingOptions()
  stage changed from Experimental to Obsolete. The C# compiler emits
  [Obsolete] on parameterless constructors of types with 'required'
  members to protect older compilers. ApiChief's ParsedMember handles
  the analogous compiler-generated [Obsolete] for readonly ref structs
  but doesn't yet have a carve-out for the required-members variant,
  so it reports Obsolete instead of inheriting the parent type's
  Experimental stage.

- MEVD.Abstractions: 'where TRecord : class' generic constraints now
  appear on IKeywordHybridSearchable<TRecord>,
  IVectorSearchable<TRecord>, and VectorSearchResult<TRecord>.

- MEVD.Abstractions: Primary constructor portion removed from
  PropertyModel Type field (ILSpy decompiler limitation, issue
  icsharpcode/ILSpy#829 still open). Instruction comments added.

- MEVD.ConformanceTests: New baseline file (2597 lines). Primary
  constructor portions removed from 14 abstract test class Type fields
  with instruction comments.

- MEAI.Abstractions: ~70 new types added including Realtime client
  abstractions (IRealtimeClient, IRealtimeClientSession,
  RealtimeClientMessage, RealtimeServerMessage and subtypes),
  ITextToSpeechClient, ISpeechToTextClient, IHostedFileClient,
  HostedFileSearchTool, HostedImageGenerationTool, HostedMcpServerTool,
  and related content types. ~27 types removed/replaced.

- MEAI: ~25 new types for Realtime, TextToSpeech, and HostedFile
  delegating clients, builders, logging, and OpenTelemetry wrappers.

- MEAI.OpenAI: New OpenAIRealtimeClient, OpenAIRealtimeClientSession,
  and extension methods for AsIHostedFileClient/AsITextToSpeechClient.

- MEAI: 'scoped' replaced with 'params' on 4 ReadOnlySpan<object?>
  parameters (ILSpy decompiler limitation, icsharpcode/ILSpy#829).
  Instruction comments restored.

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

* Exclude MEVD.ConformanceTests from ApiChief

* Override CollectionModelBuildingOptions stage to Experimental

---------

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area-ai Microsoft.Extensions.AI libraries

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants