Skip to content

AgentConfigWithHandoffs

type AgentConfigWithHandoffs<TOutput, Handoffs> = object & Partial<Omit<AgentConfiguration<UnknownContext, TOutput | HandoffsOutputUnion<Handoffs>>, "name" | "handoffs" | "outputType">>;

Helper type for config with handoffs

optional handoffs: Handoffs;
name: string;
optional outputType: TOutput;
Type Parameter Description

TOutput extends AgentOutputType

The type of the output object.

Handoffs extends readonly ( | Agent<any, any> | Handoff<any, any>)[]

The type of the handoffs.