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
parentSessionAgentSessionmaxDepthint
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
configSubagentConfigmultiTurnboolteamContextTeamContextonProgressAction<SubagentProgress>ctCancellationToken
Returns
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
strategyNamestringagentsIReadOnlyList<SubagentConfig>goalstringmultiTurnboolonProgressAction<SubagentProgress>ctCancellationToken