Reuben Bond ebed669231 Initial cross-language protocol for agents (#139)
* Initial prototype of .NET gRPC worker client + service

---------

Co-authored-by: Jack Gerrits <jack@jackgerrits.com>
2024-06-28 08:03:42 -07:00

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();