跳转到内容

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 Parameter

TContext

TOutput extends AgentOutputType

Parameter Type Description

agent

Agent<TContext, TOutput>

The agent to transfer to

string

The message that will be given as tool output to the model that requested the handoff