goal.ts
源文件: examples/capabilities/understanding/goal.ts · 下载原文件 · 示例使用说明
ts
import { runUnderstanding, type Input, type Options, type Runner } from "./shared.ts";
import { isMain, runCli } from "./cli.ts";
export async function runGoal(runtime: Runner, input: Input, options: Options = {}) {
return runUnderstanding(runtime, input, "goal", options);
}
if (isMain(import.meta.url)) await runCli(runGoal, "goal");