#!/usr/bin/env node import { createAgentSystem, type AgentSystem } from "../agents/factory"; import { createToolRegistry } from "../tools/factory"; export { createAgentSystem, createToolRegistry, type AgentSystem }; /** * LLM API 错误分类结果。纯函数,无运行时依赖,便于单测。 * tips 中的 {model} / {baseUrl} 占位符由调用方(CLI)用 getLLMConfig() 替换。 */ export interface LLMErrorDiagnosis { kind: "arrearage" | "quota" | "auth" | "model" | "network" | "unknown"; tag: string; detail: string; tips: string[]; } /** * 识别 LLM API 级错误(欠费/额度/鉴权/模型不支持/网络),返回可操作诊断。 * ai-sdk 的 APICallError: message 仅是 HTTP 描述(如"Bad Request"),真实业务信息在 responseBody。 */ export declare function classifyLLMError(error: any): LLMErrorDiagnosis; export declare function startCLI(): Promise; //# sourceMappingURL=index.d.ts.map