Table of Contents

Class SupervisorStrategy

Namespace
JD.AI.Core.Agents.Orchestration.Strategies
Assembly
JD.AI.Core.dll

Supervisor strategy — a coordinator agent dispatches work to worker agents, reviews their results, and can redirect or retry until satisfied. Good for: complex multi-step tasks where quality matters.

public sealed class SupervisorStrategy : IOrchestrationStrategy
Inheritance
SupervisorStrategy
Implements
Inherited Members

Properties

Name

The strategy name (sequential, fan-out, supervisor, debate).

public string Name { get; }

Property Value

string

Methods

ExecuteAsync(IReadOnlyList<SubagentConfig>, TeamContext, ISubagentExecutor, AgentSession, Action<SubagentProgress>?, CancellationToken)

Execute the orchestration strategy with the given agents, context, and executor.

public Task<TeamResult> ExecuteAsync(IReadOnlyList<SubagentConfig> agents, TeamContext context, ISubagentExecutor executor, AgentSession parentSession, Action<SubagentProgress>? onProgress = null, CancellationToken ct = default)

Parameters

agents IReadOnlyList<SubagentConfig>
context TeamContext
executor ISubagentExecutor
parentSession AgentSession
onProgress Action<SubagentProgress>
ct CancellationToken

Returns

Task<TeamResult>