Versions 59 to 318
new file, 45 lines
1+// Ask Clef, Cloudflare's decision model on Workers AI, how a hold should be settled (#19). Clef takes Jev's
2+// System One request (state and typed questions) and answers with a probability per option, so the questions are
3+// jev.ts's own; it goes through the local Worker (workers-ai/, wrangler dev), which has the AI binding.
4+
5+import { type Hold, type SystemOneAnswer, systemOneBody, type Verdict, verdictOf } from "./jev.ts";
8+
14+
15+/** Code's rules first, then Clef, then code's check on its pick, as for the Workers AI text model. */
42+ const v = verdictOf({ ...out, model: out.model ?? opts.model ?? "clef" }, performance.now() - started);
44+ return no ? { ...v, pick: "agent", reason: no, by: "turned down", modelPick: v.pick } : { ...v, by: "model" };
- MCP
- compare on this site's /mcp
- CLI
- abso diff 59 318 scripts/autosettle/clef.ts --json
- JSON
- /christopher/abso-core/compare/59..318?file=scripts%2Fautosettle%2Fclef.ts&format=json