handoff
このコンテンツはまだ日本語訳がありません。
function handoff<TContext, TOutput, TInputType>(agent, config): Handoff<TContext, TOutput>
Creates a handoff from an agent. Handoffs are automatically created when you pass an agent
into the handoffs
option of the Agent
constructor. Alternatively, you can use this function
to create a handoff manually, giving you more control over configuration.
Type Parameters
Section titled “Type Parameters”Type Parameter | Default type | Description |
---|---|---|
|
|
The context of the handoff |
|
|
The output type of the handoff |
|
|
The input type of the handoff |
Parameters
Section titled “Parameters”Parameter | Type |
---|---|
|
|
|
|
Returns
Section titled “Returns”Handoff
<TContext
, TOutput
>