mirror of
https://github.com/microsoft/autogen.git
synced 2025-08-23 16:12:22 +00:00
18 lines
424 B
C#
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(); |