import { SupervisorIntentValue } from "../contracts/supervisor/intent-entry.type.mjs"; import { SupervisorConfig } from "../contracts/supervisor/supervisor-config.type.mjs"; import { SupervisorContract } from "../contracts/supervisor/supervisor.contract.mjs"; //#region ../ai/src/supervisor/supervisor.d.ts /** * `ai.supervisor(config)` — construct a `SupervisorContract`. Validates * the config at author time (throws `SupervisorFailedError` on bad * shape), resolves agent entries, computes a stable structural * signature, wires the three-tier event emitter, and returns an * instance that satisfies `ExecutableContract` so it can compose into * tools, outer agents, and (future) orchestrators uniformly. * * @example * const support = ai.supervisor({ * name: "customer-support", * router: routerAgent, * intents: { triage, orderLookup, billingLookup, resolver }, * evaluate: (ctx) => ctx.result.resolver?.output ? { satisfied: true } : undefined, * output: z.object({ response: z.string(), refund: z.boolean() }), * maxIterations: 6, * }); */ declare function supervisor = Record, TArtifacts = Record>(config: SupervisorConfig): SupervisorContract; //#endregion export { supervisor }; //# sourceMappingURL=supervisor.d.mts.map