Class DebateStrategy
- Namespace
- JD.AI.Core.Agents.Orchestration.Strategies
- Assembly
- JD.AI.Core.dll
Debate strategy — multiple agents independently answer the same question with different perspectives (e.g., optimist, skeptic, pragmatist), then a judge agent evaluates and synthesizes the best answer. Good for: architectural decisions, risk assessment, trade-off analysis.
public sealed class DebateStrategy : IOrchestrationStrategy
- Inheritance
-
DebateStrategy
- Implements
- Inherited Members
Properties
Name
The strategy name (sequential, fan-out, supervisor, debate).
public string Name { get; }
Property Value
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
agentsIReadOnlyList<SubagentConfig>contextTeamContextexecutorISubagentExecutorparentSessionAgentSessiononProgressAction<SubagentProgress>ctCancellationToken