You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

Program.cs 568 B

1234567891011121314151617181920212223
  1. // Copyright (c) Microsoft Corporation. All rights reserved.
  2. // Program.cs
  3. using DevTeam.Agents;
  4. using Microsoft.AutoGen.Agents;
  5. using Microsoft.AutoGen.Extensions.SemanticKernel;
  6. var builder = WebApplication.CreateBuilder(args);
  7. builder.AddServiceDefaults();
  8. builder.ConfigureSemanticKernel();
  9. builder.AddAgentWorker(builder.Configuration["AGENT_HOST"]!)
  10. .AddAgent<Dev>(nameof(Dev))
  11. .AddAgent<ProductManager>(nameof(ProductManager))
  12. .AddAgent<DeveloperLead>(nameof(DeveloperLead));
  13. var app = builder.Build();
  14. app.MapDefaultEndpoints();
  15. app.Run();