TriageCapability
Exposes triage routing as tools: one route_to_<agentId> tool per route.
The LLM selects the appropriate route; processToolResult converts the
tool result to a handoff action for the host.
Implements
Section titled “Implements”Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new TriageCapability(routes, defaultAgent?): TriageCapability;Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
|
|
|
|
|
|
Returns
Section titled “Returns”TriageCapability
Methods
Section titled “Methods”getPromptSections()
Section titled “getPromptSections()”getPromptSections(): CapabilityPromptSection[];What does this capability contribute to the system prompt?
Returns
Section titled “Returns”Implementation of
Section titled “Implementation of”getTools()
Section titled “getTools()”getTools(): ToolDeclaration<unknown, unknown>[];What tools does this capability expose for the current state?
Returns
Section titled “Returns”ToolDeclaration<unknown, unknown>[]
Implementation of
Section titled “Implementation of”processToolResult()
Section titled “processToolResult()”processToolResult( toolName, args, result): CapabilityAction | null;A tool was called and executed. Does this capability handle the result?
Parameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
|
|
|
The name of the tool that was called |
|
|
|
The arguments passed to the tool |
|
|
|
The result returned by the tool’s execute() |
Returns
Section titled “Returns”CapabilityAction | null
An action telling the host what to do, or null if this capability doesn’t handle this tool.