HandoffWorkflowBuilderCore<TBuilder>.AddParticipants Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Adds the specified agents as participants in the handoff workflow without
defining handoff relationships for them.
public TBuilder AddParticipants(System.Collections.Generic.IEnumerable<Microsoft.Agents.AI.AIAgent> agents);
member this.AddParticipants : seq<Microsoft.Agents.AI.AIAgent> -> 'Builder
Public Function AddParticipants (agents As IEnumerable(Of AIAgent)) As TBuilder
Parameters
- agents
- IEnumerable<AIAgent>
The agents to add as participants.
Returns
The updated builder instance.
Remarks
Use this method when you want a participant to be part of the workflow but you have not explicitly defined handoff edges via WithHandoff(AIAgent, AIAgent, String). When no handoffs are explicitly defined (default handoffs), all registered participants are automatically wired so that every agent can hand off to every other agent.