Versions 4 to 318
new file, 67 lines
1+// Ask the local auto-settle Worker (workers-ai/, run with wrangler dev) how a hold should be settled (#19).
2+
5+
7+
18+ /** rule: code decided without the model. turned down: the model's pick would break the file, so an agent settles. */
23+
30+ if (rule) return { ...rule, confidence: 1, model: "rule", ms: 0, modelMs: 0, inputTokens: 0, by: "rule" };
35+
36+async function askModel(h: Hold, opts: { model?: string; url?: string; samples?: number }): Promise<ModelVerdict> {
56+ if (!res.ok || out.error || !out.pick) throw new Error(`Workers AI: ${out.error ?? res.status}`);
- MCP
- compare on this site's /mcp
- CLI
- abso diff 4 318 scripts/autosettle/workers-ai.ts --json
- JSON
- /christopher/abso-core/compare/4..318?file=scripts%2Fautosettle%2Fworkers-ai.ts&format=json