Table of Contents

Class SubagentTools

Namespace
JD.AI.Tools
Assembly
JD.AI.dll

Kernel functions for spawning subagents and teams from the parent agent loop.

[ToolPlugin("subagents", RequiresInjection = true)]
public sealed class SubagentTools
Inheritance
SubagentTools
Inherited Members

Constructors

SubagentTools(TeamOrchestrator)

public SubagentTools(TeamOrchestrator orchestrator)

Parameters

orchestrator TeamOrchestrator

Methods

QueryTeamContext(string)

[KernelFunction("query_team_context")]
[ToolSafetyTier(SafetyTier.AutoApprove)]
public string QueryTeamContext(string key)

Parameters

key string

Returns

string

SpawnAgentAsync(string, string, string, CancellationToken)

[KernelFunction("spawn_agent")]
[ToolSafetyTier(SafetyTier.ConfirmOnce)]
public Task<string> SpawnAgentAsync(string type, string prompt, string mode = "single", CancellationToken ct = default)

Parameters

type string
prompt string
mode string
ct CancellationToken

Returns

Task<string>

SpawnTeamAsync(string, string, string, bool, CancellationToken)

[KernelFunction("spawn_team")]
[ToolSafetyTier(SafetyTier.ConfirmOnce)]
public Task<string> SpawnTeamAsync(string strategy, string agents, string goal, bool multiTurn = false, CancellationToken ct = default)

Parameters

strategy string
agents string
goal string
multiTurn bool
ct CancellationToken

Returns

Task<string>