Files
agent-framework/dotnet/samples/GettingStarted/AgentProviders/Agent_With_OpenAIAssistants
T
westey bb6ecd9c71 .NET: [BREAKING] Change GetNewThread and DeserializeThread to async (#3152)
* Change GetNewThread and DeserializeThread plus ChatMessageStore and AIContextProvider Factories to async

* Merge fixes
bb6ecd9c71 ยท 2026-01-12 11:25:51 +00:00
History
..

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_API_KEY="*****" # Replace with your OpenAI API key
$env:OPENAI_MODEL="gpt-4o-mini"  # Optional, defaults to gpt-4o-mini