Files
agent-framework/dotnet/samples/HowToCreateAnAIAgentByProvider/AIAgent_With_OpenAIChatCompletion
T
westey fe1941d25f .NET: Add samples to show how to create an AIAgent for each provider. (#525)
* Add samples to show how to create an AIAgent for each provider.

* Update dotnet/samples/HowToCreateAnAIAgentByProvider/README.md

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

* Address PR comments

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
fe1941d25f ยท 2025-08-28 14:25:19 +00:00
History
..

Prerequisites

Before you begin, ensure you have the following prerequisites:

  • .NET 8.0 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