MCPcopy Create free account
hub / github.com/astercloud/aster / compareAgents

Method compareAgents

client-sdks/client-js/src/resources/eval.ts:410–420  ·  view source on GitHub ↗

* 比较两个 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[])

Source from the content-addressed store, hash-verified

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}

Callers 1

mainFunction · 0.80

Calls 2

createABTestMethod · 0.95

Tested by

no test coverage detected