Type alias CreateSupervisorParams<AnnotationRootT, StructuredResponseFormat>

CreateSupervisorParams<AnnotationRootT, StructuredResponseFormat>: {
    addHandoffBackMessages?: boolean;
    agents: CompiledStateGraph<AnnotationRootT["State"], AnnotationRootT["Update"], string, AnnotationRootT["spec"], AnnotationRootT["spec"]>[];
    includeAgentName?: AgentNameMode;
    llm: LanguageModelLike;
    outputMode?: OutputMode;
    prompt?: CreateReactAgentParams["prompt"];
    responseFormat?: z.ZodType<StructuredResponseFormat> | {
        prompt: string;
        schema: z.ZodType<StructuredResponseFormat> | Record<string, unknown>;
    } | Record<string, unknown>;
    stateSchema?: AnnotationRootT;
    supervisorName?: string;
    tools?: (StructuredToolInterface | RunnableToolLike | DynamicTool)[];
}

Type Parameters

  • AnnotationRootT extends AnnotationRoot<any>
  • StructuredResponseFormat extends Record<string, any> = Record<string, any>

Type declaration