/** * Supvisor — The agent routing supervisor. * * Extracts the agent management logic from agent-router.ts and provides * two entry points: * - routeAgent() — single-agent routing (same behavior as old) * - planAndRoute() — multi-agent workflow (NEW) */ import type { AgentConfig, RoutingDecision, RouteResult } from "./AgentConfig.ts"; export declare function analyzeTaskDescription(taskDescription: string, agents: AgentConfig[]): RoutingDecision; export declare class Supervisor { private agents; private pi; constructor(agents: AgentConfig[], pi: any); routeAgent(taskDescription: string, forceAgent?: string, runInBackground?: boolean, thinking?: string, model?: string): Promise; /** * Plan and route a workflow for multiple agents. * Uses keyword matching to find relevant agents, then executes * them in parallel (where dependencies allow). */ planAndRoute(goal: string, options?: { forceAgents?: string[]; background?: boolean; }): Promise<{ success: boolean; agents?: string[]; steps?: string[]; results?: Record; error?: string; }>; private _findRelevantAgents; static getAllAgents(): Promise; }