.NET: Remove OpenAIAssistantClientExtensions class#5058
Merged
SergeyMenshykh merged 2 commits intoApr 2, 2026
Merged
Conversation
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>
Contributor
There was a problem hiding this comment.
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
OpenAIAssistantClientExtensionsand its unit/integration tests. - Removed the
Agent_With_OpenAIAssistantssample and its references from docs, sample verification, and the solution. - Dropped the now-unused
AIOpenAIAssistantsdiagnostic 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. |
westey-m
approved these changes
Apr 2, 2026
rogerbarreto
approved these changes
Apr 2, 2026
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Remove the deprecated OpenAI Assistants API extension methods, along with their unit tests, integration tests, sample project, and related references.
Changes
OpenAIAssistantClientExtensions.cs(source)OpenAIAssistantClientExtensionsTests.cs(unit + integration tests)Agent_With_OpenAIAssistantssample projectAIOpenAIAssistantsdiagnostic ID constantValidation