* 比较两个 Agents * @param agentAId Agent A ID * @param agentBId Agent B ID * @param testCaseSetId 测试用例集 ID * @param scorers Scorer 配置列表 * @returns A/B 测试结果
(agentAId: string, agentBId: string, testCaseSetId: string, scorers: ScorerConfig[])
| 408 | * @returns A/B 测试结果 |
| 409 | */ |
| 410 | async compareAgents(agentAId: string, agentBId: string, testCaseSetId: string, scorers: ScorerConfig[]): Promise<ABTestResult> { |
| 411 | const abTest = await this.createABTest({ |
| 412 | name: `Compare ${agentAId} vs ${agentBId}`, |
| 413 | agentAId, |
| 414 | agentBId, |
| 415 | testCaseSetId, |
| 416 | scorers, |
| 417 | }); |
| 418 | |
| 419 | return this.waitForABTestCompletion(abTest.id); |
| 420 | } |
| 421 | } |
no test coverage detected