mirror of
https://github.com/microsoft/agent-framework.git
synced 2026-06-16 21:04:09 +08:00
Add Name and Description support for GroupChat workflow builder (#4334)
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user