Skip to content

.NET: Remove OpenAIAssistantClientExtensions class#5058

Merged
SergeyMenshykh merged 2 commits into
microsoft:mainfrom
SergeyMenshykh:remove-obsolete-extension-methods
Apr 2, 2026
Merged

.NET: Remove OpenAIAssistantClientExtensions class#5058
SergeyMenshykh merged 2 commits into
microsoft:mainfrom
SergeyMenshykh:remove-obsolete-extension-methods

Conversation

@SergeyMenshykh

Copy link
Copy Markdown
Contributor

Remove the deprecated OpenAI Assistants API extension methods, along with their unit tests, integration tests, sample project, and related references.

Changes

  • Delete OpenAIAssistantClientExtensions.cs (source)
  • Delete OpenAIAssistantClientExtensionsTests.cs (unit + integration tests)
  • Delete Agent_With_OpenAIAssistants sample project
  • Remove sample from solution file, README, and verify-samples definitions
  • Remove AIOpenAIAssistants diagnostic ID constant

Validation

  • Full solution build passes with 0 errors and 0 warnings

Remove the deprecated OpenAI Assistants API extension methods, along with
their unit tests, integration tests, sample project, and related references.

- Delete OpenAIAssistantClientExtensions.cs (source)
- Delete OpenAIAssistantClientExtensionsTests.cs (unit + integration tests)
- Delete Agent_With_OpenAIAssistants sample project
- Remove sample from solution file, README, and verify-samples definitions
- Remove AIOpenAIAssistants diagnostic ID constant

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot AI review requested due to automatic review settings April 2, 2026 11:00
@markwallace-microsoft markwallace-microsoft added documentation Improvements or additions to documentation .NET labels Apr 2, 2026
@github-actions github-actions Bot changed the title Remove OpenAIAssistantClientExtensions class .NET: Remove OpenAIAssistantClientExtensions class Apr 2, 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.

Pull request overview

Removes the deprecated .NET OpenAI Assistants API extension surface from the Agent Framework OpenAI package, along with associated tests, samples, and repository references.

Changes:

  • Deleted OpenAIAssistantClientExtensions and its unit/integration tests.
  • Removed the Agent_With_OpenAIAssistants sample and its references from docs, sample verification, and the solution.
  • Dropped the now-unused AIOpenAIAssistants diagnostic ID constant.

Reviewed changes

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

Show a summary per file
File Description
dotnet/src/Microsoft.Agents.AI.OpenAI/Extensions/OpenAIAssistantClientExtensions.cs Removes deprecated Assistants extension methods (core API surface being retired).
dotnet/tests/Microsoft.Agents.AI.OpenAI.UnitTests/Extensions/OpenAIAssistantClientExtensionsTests.cs Removes unit tests covering the deleted extension methods.
dotnet/tests/OpenAIAssistant.IntegrationTests/OpenAIAssistantClientExtensionsTests.cs Removes integration tests specifically targeting the deleted extension methods.
dotnet/samples/02-agents/AgentProviders/Agent_With_OpenAIAssistants/Program.cs Removes the Assistants-based sample implementation.
dotnet/samples/02-agents/AgentProviders/Agent_With_OpenAIAssistants/README.md Removes the Assistants sample documentation.
dotnet/samples/02-agents/AgentProviders/Agent_With_OpenAIAssistants/Agent_With_OpenAIAssistants.csproj Removes the Assistants sample project file.
dotnet/samples/02-agents/AgentProviders/README.md Removes the Assistants sample entry from the sample index.
dotnet/eng/verify-samples/AgentsSamples.cs Removes sample verification definition for the deleted Assistants sample.
dotnet/agent-framework-dotnet.slnx Removes the Assistants sample project from the solution.
dotnet/src/Shared/DiagnosticIds/DiagnosticsIds.cs Removes the AIOpenAIAssistants diagnostic ID constant.

@SergeyMenshykh SergeyMenshykh added this pull request to the merge queue Apr 2, 2026
Merged via the queue into microsoft:main with commit a356a16 Apr 2, 2026
22 checks passed
alliscode pushed a commit to alliscode/agent-framework that referenced this pull request Apr 3, 2026
* Remove OpenAIAssistantClientExtensions class

Remove the deprecated OpenAI Assistants API extension methods, along with
their unit tests, integration tests, sample project, and related references.

- Delete OpenAIAssistantClientExtensions.cs (source)
- Delete OpenAIAssistantClientExtensionsTests.cs (unit + integration tests)
- Delete Agent_With_OpenAIAssistants sample project
- Remove sample from solution file, README, and verify-samples definitions
- Remove AIOpenAIAssistants diagnostic ID constant

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

* add removed extension methods to the suppression file

---------

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

documentation Improvements or additions to documentation .NET

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants