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>