Add Name and Description support for GroupChat workflow builder (#4334)

This commit is contained in:
Peter Ibekwe
2026-03-02 19:29:32 +00:00
committed by GitHub
parent f6b0610a6c
commit d932947ba5
3 changed files with 80 additions and 0 deletions
@@ -72,6 +72,8 @@ public static class Program
await RunWorkflowAsync(
AgentWorkflowBuilder.CreateGroupChatBuilderWith(agents => new RoundRobinGroupChatManager(agents) { MaximumIterationCount = 5 })
.AddParticipants(from lang in (string[])["French", "Spanish", "English"] select GetTranslationAgent(lang, client))
.WithName("Translation Round Robin Workflow")
.WithDescription("A workflow where three translation agents take turns responding in a round-robin fashion.")
.Build(),
[new(ChatRole.User, "Hello, world!")]);
break;