createHandoffTool
function createHandoffTool(availableAgents, currentAgentId?): | Tool<{}, { error: string;}> | Tool<{ reason: string; summary?: string; targetAgentId: string;}, { __handoff: true; reason: string; summary: string | undefined; targetAgent: string; targetAgentId: string;}>;Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
|
|
|
|
|
|
Returns
Section titled “Returns”| Tool<{
}, {
error: string;
}>
| Tool<{
reason: string;
summary?: string;
targetAgentId: string;
}, {
__handoff: true;
reason: string;
summary: string | undefined;
targetAgent: string;
targetAgentId: string;
}>