import type { BaseChatModel } from '@langchain/core/language_models/chat_models'; import type { BaseMessage } from '@langchain/core/messages'; import type { RunnableConfig } from '@langchain/core/runnables'; import { z } from 'zod'; import type { CoordinationLogEntry } from '../types/coordination'; import type { SimpleWorkflow } from '../types/workflow'; import type { ChatPayload } from '../workflow-builder-agent'; declare function createSupervisorRoutingSchema(mergeAskBuild: boolean): z.ZodObject<{ reasoning: z.ZodString; next: z.ZodEnum>; }, "strip", z.ZodTypeAny, { reasoning: string; next: "assistant" | "builder" | "discovery" | "responder"; }, { reasoning: string; next: "assistant" | "builder" | "discovery" | "responder"; }>; export type SupervisorRouting = z.infer>; export interface SupervisorAgentConfig { llm: BaseChatModel; mergeAskBuild?: boolean; } export interface SupervisorContext { messages: BaseMessage[]; workflowJSON: SimpleWorkflow; coordinationLog: CoordinationLogEntry[]; previousSummary?: string; workflowContext?: ChatPayload['workflowContext']; } export declare class SupervisorAgent { private llm; private mergeAskBuild; constructor(config: SupervisorAgentConfig); private buildContextMessage; invoke(context: SupervisorContext, config?: RunnableConfig): Promise; } export {};