Interface IOrchestrator
public interface IOrchestrator
Methods
GetNextSpeakerAsync(OrchestrationContext, CancellationToken)
Return the next agent as the next speaker. return null if no agent is selected.
Task<IAgent?> GetNextSpeakerAsync(OrchestrationContext context, CancellationToken cancellationToken = default)
Parameters
contextOrchestrationContextorchestration context, such as candidate agents and chat history.
cancellationTokenCancellationTokencancellation token