mirror of
https://github.com/microsoft/agent-framework.git
synced 2026-06-16 21:04:09 +08:00
71a0bf22eb
* Enhance console samples while preserving copyability * Add readme for minimal console demo * Suppress pre-release version warning * Address PR comments * Change showing settings to opt-in * Update comment
71a0bf22eb
ยท
2025-08-22 14:58:10 +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