/** * 测试用被测 Agent 注入(MCP 单测隔离)。 * @param agent fake agent(返回产出文本;null 恢复默认) */ export declare function setEvaluateTestAgent(agent: ((ctx: { workspace: string; statement: string; }) => Promise) | null): void; export interface EvaluateArgs { /** Benchmark ID(必填) */ benchmark_id: string; /** Case ID(触发单 case 评测;缺省 = 评测全部 cases) */ case_id?: string; /** 查询模式(true = 只查日志不触发新评测) */ query?: boolean; } export interface EvaluateResult { /** 首行必须 [sofagent] 前缀 */ text: string; /** 结构化数据 */ data: { mode: 'run' | 'query'; benchmarkId: string; evaluations?: Array<{ caseId: string; score: number; failureCode: string | null; durationMs: number; }>; records?: Array<{ ts: string; caseId: string; revision: number; score: number; failureCode: string | null; }>; isError: boolean; }; } /** * 触发 Benchmark 评测(非 query)或查询评测日志(query)。 * * @param args 参数 * @returns 结构化结果(text + data) */ export declare function evaluate(args: EvaluateArgs): Promise; //# sourceMappingURL=evaluate.d.ts.map