Files
agent-framework/dotnet/samples/GettingStarted/AgentProviders/Agent_With_OpenAIAssistants
T
Copilot 9c1b2f9a3f .NET: Annotate all public methods of OpenAIAssistantClientExtensions with Obsolete attribute (#2640)
* Initial plan

* Add Obsolete attribute to all public methods of OpenAIAssistantClientExtensions

Co-authored-by: SergeyMenshykh <68852919+SergeyMenshykh@users.noreply.github.com>

* Add pragma warning disable CS0618 to files using deprecated OpenAI Assistants API

Co-authored-by: SergeyMenshykh <68852919+SergeyMenshykh@users.noreply.github.com>

* Update Obsolete attribute message to use requested text

Co-authored-by: SergeyMenshykh <68852919+SergeyMenshykh@users.noreply.github.com>

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: SergeyMenshykh <68852919+SergeyMenshykh@users.noreply.github.com>
9c1b2f9a3f ยท 2025-12-05 12:27:48 +00:00
History
..
2025-11-22 04:14:15 +00:00

Prerequisites

WARNING: The Assistants API is deprecated and will be shut down. For more information see the OpenAI documentation: https://platform.openai.com/docs/assistants/migration

Before you begin, ensure you have the following prerequisites:

  • .NET 10 SDK or later
  • OpenAI API key

Set the following environment variables:

$env:OPENAI_APIKEY="*****" # Replace with your OpenAI API key
$env:OPENAI_MODEL="gpt-4o-mini"  # Optional, defaults to gpt-4o-mini