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

Method runTextEval

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

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

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

Source from the content-addressed store, hash-verified

36 * @returns Eval 结果
37 */
38 async runTextEval(request: { prompt: string; expected?: string; scorer?: string; [key: string]: any }): Promise<EvalResult> {
39 const evalInfo = await this.create({
40 type: "text",
41 ...request,
42 } as unknown as EvalRequest);
43 return this.waitForCompletion(evalInfo.id);
44 }
45
46 /**
47 * 运行批量评估(便捷方法)

Callers 1

Calls 2

createMethod · 0.95
waitForCompletionMethod · 0.95

Tested by

no test coverage detected