콘텐츠로 이동

HandoffCloneOptions

이 콘텐츠는 아직 번역되지 않았습니다.

type HandoffCloneOptions<TContext, TOutput> = object;
Type Parameter Default type

TContext

UnknownContext

TOutput extends AgentOutputType

TextOutput

optional agent?: Agent<TContext, TOutput>;

The agent that the cloned handoff should target.


optional agentName?: string;

The model-facing name of the target agent.


optional inputFilter?: HandoffInputFilter;

A function that filters the inputs that are passed to the cloned handoff’s agent.


optional inputJsonSchema?: JsonObjectSchema<any>;

The JSON schema for the cloned handoff input.


optional isEnabled?: HandoffEnabledFunction<TContext>;

Determines whether the cloned handoff should be available for the current run.


optional onInvokeHandoff?: (context, args) =>
| Promise<Agent<TContext, TOutput>>
| Agent<TContext, TOutput>;

The callback that should run when the cloned handoff is invoked.

Parameter Type

context

RunContext<TContext>

args

string

| Promise<Agent<TContext, TOutput>> | Agent<TContext, TOutput>


optional strictJsonSchema?: boolean;

Whether the cloned handoff input schema is strict.


optional toolDescription?: string;

The description of the tool that represents the cloned handoff.


optional toolName?: string;

The name of the tool that represents the cloned handoff.