HandoffCloneOptions
このコンテンツはまだ日本語訳がありません。
type HandoffCloneOptions<TContext, TOutput> = object;Type Parameters
Section titled “Type Parameters”| Type Parameter | Default type |
|---|---|
|
|
|
|
|
Properties
Section titled “Properties”agent?
Section titled “agent?”optional agent?: Agent<TContext, TOutput>;The agent that the cloned handoff should target.
agentName?
Section titled “agentName?”optional agentName?: string;The model-facing name of the target agent.
inputFilter?
Section titled “inputFilter?”optional inputFilter?: HandoffInputFilter;A function that filters the inputs that are passed to the cloned handoff’s agent.
inputJsonSchema?
Section titled “inputJsonSchema?”optional inputJsonSchema?: JsonObjectSchema<any>;The JSON schema for the cloned handoff input.
isEnabled?
Section titled “isEnabled?”optional isEnabled?: HandoffEnabledFunction<TContext>;Determines whether the cloned handoff should be available for the current run.
onInvokeHandoff?
Section titled “onInvokeHandoff?”optional onInvokeHandoff?: (context, args) => | Promise<Agent<TContext, TOutput>>| Agent<TContext, TOutput>;The callback that should run when the cloned handoff is invoked.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
|
|
|
|
|
|
Returns
Section titled “Returns”| Promise<Agent<TContext, TOutput>>
| Agent<TContext, TOutput>
strictJsonSchema?
Section titled “strictJsonSchema?”optional strictJsonSchema?: boolean;Whether the cloned handoff input schema is strict.
toolDescription?
Section titled “toolDescription?”optional toolDescription?: string;The description of the tool that represents the cloned handoff.
toolName?
Section titled “toolName?”optional toolName?: string;The name of the tool that represents the cloned handoff.