Table of Contents

Class WorkflowOrchestrator

Namespace
AutoGen.Core
Assembly
AutoGen.Core.dll
public class WorkflowOrchestrator : IOrchestrator
Inheritance
WorkflowOrchestrator
Implements
Inherited Members

Constructors

WorkflowOrchestrator(Graph)

public WorkflowOrchestrator(Graph workflow)

Parameters

workflow Graph

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 OrchestrationContext

orchestration context, such as candidate agents and chat history.

cancellationToken CancellationToken

cancellation token

Returns

Task<IAgent>