mirror of
https://github.com/microsoft/autogen.git
synced 2025-08-24 08:32:16 +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();
|