Ryan Sweet a72ebaef90
Rysweet 531 dotnet create hello agent continued (#606)
fixing base agent classes for io
2024-09-23 17:50:18 +00:00

18 lines
424 B
C#

using HelloAgents.Agents;
using Microsoft.AutoGen.Agents.Worker.Client;
using Microsoft.AutoGen.Agents.Extensions.SemanticKernel;
var builder = WebApplication.CreateBuilder(args);
builder.AddServiceDefaults();
builder.ConfigureSemanticKernel();
builder.AddAgentWorker(builder.Configuration["AGENT_HOST"]!)
.AddAgent<HelloAgent>(nameof(HelloAgent));
var app = builder.Build();
app.MapDefaultEndpoints();
app.Run();