Class RolePlayOrchestrator
public class RolePlayOrchestrator : IOrchestrator
- Inheritance
-
RolePlayOrchestrator
- Implements
- Inherited Members
Constructors
RolePlayOrchestrator(IAgent, Graph?)
public RolePlayOrchestrator(IAgent admin, Graph? workflow = null)
Parameters
Methods
GetNextSpeakerAsync(OrchestrationContext, CancellationToken)
Return the next agent as the next speaker. return null if no agent is selected.
public Task<IAgent?> GetNextSpeakerAsync(OrchestrationContext context, CancellationToken cancellationToken = default)
Parameters
context
OrchestrationContextorchestration context, such as candidate agents and chat history.
cancellationToken
CancellationTokencancellation token