HandoffCapability
Exposes a single transfer_to_agent tool for agents that have explicit
canHandoffTo targets. Unlike TriageCapability (one tool per route),
this uses a single tool with an enum parameter for the target agent.
Implements
Section titled “Implements”Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new HandoffCapability(targets): HandoffCapability;Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
|
|
Returns
Section titled “Returns”HandoffCapability
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.