Skip to content

choices.ts ​

Source: examples/capabilities/understanding/choices.ts · Download source · Example guide

ts
import { runUnderstanding, type Input, type Options, type Runner } from "./shared.ts";
import { isMain, runCli } from "./cli.ts";
export async function runChoices(runtime: Runner, input: Input, options: Options = {}) {
  return runUnderstanding(runtime, input, "choices", options);
}
if (isMain(import.meta.url)) await runCli(runChoices, "choices");

Ditto · @codesoul-co/ditto · Node.js 24+