mirror of
https://github.com/microsoft/autogen.git
synced 2025-07-21 07:51:55 +00:00
18 lines
382 B
C#
18 lines
382 B
C#
![]() |
using Microsoft.AI.Agents.Worker;
|
||
|
|
||
|
var builder = WebApplication.CreateBuilder(args);
|
||
|
builder.AddServiceDefaults();
|
||
|
builder.Services.AddProblemDetails();
|
||
|
builder.Services.AddGrpc();
|
||
|
builder.Logging.SetMinimumLevel(LogLevel.Information);
|
||
|
|
||
|
builder.AddAgentService();
|
||
|
|
||
|
var app = builder.Build();
|
||
|
|
||
|
app.MapAgentService();
|
||
|
app.UseExceptionHandler();
|
||
|
app.MapDefaultEndpoints();
|
||
|
|
||
|
app.Run();
|