Table of Contents

Class TeamOrchestrator

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

Manages team lifecycle: parse team config, select strategy, create executors, run strategy, and collect results. Entry point for spawn_team.

public sealed class TeamOrchestrator
Inheritance
TeamOrchestrator
Inherited Members

Constructors

TeamOrchestrator(AgentSession, int)

public TeamOrchestrator(AgentSession parentSession, int maxDepth = 2)

Parameters

parentSession AgentSession
maxDepth int

Methods

RunAgentAsync(SubagentConfig, bool, TeamContext?, Action<SubagentProgress>?, CancellationToken)

Spawn a single agent with the specified execution mode.

public Task<AgentResult> RunAgentAsync(SubagentConfig config, bool multiTurn = false, TeamContext? teamContext = null, Action<SubagentProgress>? onProgress = null, CancellationToken ct = default)

Parameters

config SubagentConfig
multiTurn bool
teamContext TeamContext
onProgress Action<SubagentProgress>
ct CancellationToken

Returns

Task<AgentResult>

RunTeamAsync(string, IReadOnlyList<SubagentConfig>, string, bool, Action<SubagentProgress>?, CancellationToken)

Spawn and orchestrate a team of agents with the given strategy.

public Task<TeamResult> RunTeamAsync(string strategyName, IReadOnlyList<SubagentConfig> agents, string goal, bool multiTurn = false, Action<SubagentProgress>? onProgress = null, CancellationToken ct = default)

Parameters

strategyName string
agents IReadOnlyList<SubagentConfig>
goal string
multiTurn bool
onProgress Action<SubagentProgress>
ct CancellationToken

Returns

Task<TeamResult>