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

Method runBatchEval

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

* 运行批量评估(便捷方法) * @param request 批量评估请求 * @returns Eval 结果

(request: { items: Array<{ prompt: string; expected?: string; [key: string]: any }>; scorer?: string; [key: string]: any })

Source from the content-addressed store, hash-verified

49 * @returns Eval 结果
50 */
51 async runBatchEval(request: { items: Array<{ prompt: string; expected?: string; [key: string]: any }>; scorer?: string; [key: string]: any }): Promise<EvalResult> {
52 const evalInfo = await this.create({
53 type: "batch",
54 ...request,
55 } as unknown as EvalRequest);
56 return this.waitForCompletion(evalInfo.id);
57 }
58
59 /**
60 * 获取 Eval 详情

Callers 1

Calls 2

createMethod · 0.95
waitForCompletionMethod · 0.95

Tested by

no test coverage detected