Files
agent-framework/dotnet/demos/MinimalConsole
T
westey bbea3c00f8 .NET: Add more console based getting started samples (#507)
* Add more console based getting started samples

* Simplify function calling and approavls samples and some minor renaming based on PR feedback.

* Cover streaming with comments for aprovals sample.

* Remove extra line break.

* Update getting started samples list in readme.

* Address PR comments

* Address PR comments.
bbea3c00f8 ยท 2025-08-28 14:14:25 +00:00
History
..

Minimal Console Application

This demo shows a very basic console application, that uses the agent framework with Azure OpenAI and function calling.

Overview

Prerequisites

  • .NET 8.0 SDK or later
  • Azure OpenAI service endpoint and deployment configured
  • Azure CLI installed and authenticated (for Azure credential authentication)

Configuration

Azure OpenAI Setup

Set the following environment variables:

$env:AZURE_OPENAI_ENDPOINT="https://your-resource.openai.azure.com/"
$env:AZURE_OPENAI_DEPLOYMENT_NAME="gpt-4o-mini"  # Optional, defaults to gpt-4o-mini

Note: This demo uses Azure CLI credentials for authentication. Make sure you're logged in with az login and have access to the Azure OpenAI resource.

Running the Demo

cd dotnet/demos/MinimalConsole
dotnet build
dotnet run --no-build