콘텐츠로 이동

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