コンテンツにスキップ

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