This is a demo to showcase how to use the Semantic Kernel Agent Framework with .NET Aspire.
- Configure the OpenAI integration for .NET Aspire according to the documentation.
Note that you can use either DefaultAzureCredentials or API Keys for authentication.
You need to add the connection string to your AppHost appsettings.json
file. The connection string format depends on the authentication method you choose.
Using DefaultAzureCredentials:
{
"ConnectionStrings": {
"azureOpenAI": "https://{account_name}.openai.azure.com/"
}
}
Using API Keys:
{
"ConnectionStrings": {
"azureOpenAI": "Endpoint=https://{account_name}.openai.azure.com/;Key={api_key};"
},
}
- Run the sample
cd src/SemanticKernelWithAspire.AppHost
dotnet run