Files
agent-framework/dotnet/samples/GettingStarted/AgentProviders/Agent_With_OpenAIChatCompletion
T
Dmytro Struk 2ab859dd94 .NET: [BREAKING] Renamed CreateAIAgent/GetAIAgent to AsAIAgent (#3222)
* Renamed chat client extension method

* Additional renaming

* Updated documentation

* Fixed tests

* Small fix

* Small fix
2ab859dd94 ยท 2026-01-15 16:01:15 +00:00
History
..

Prerequisites

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