getTransferMessage
function getTransferMessage<TContext, TOutput>(agent): string;
Generates the message that will be given as tool output to the model that requested the handoff.
Type Parameters
Section titled βType ParametersβType Parameter |
---|
|
|
Parameters
Section titled βParametersβParameter | Type | Description |
---|---|---|
|
|
The agent to transfer to |
Returns
Section titled βReturnsβstring
The message that will be given as tool output to the model that requested the handoff