Skip to main content

Typesafe Batch

@webframp/typesafe-batchv2026.09.26.1· 9d ago
01README

Bounded batch triage for @swamp/typesafe-ai. Adds one method, triage_batch, that evaluates many compact {id, state} items against one shared set of typed questions (noul, choice, score) while holding the model lock once. It writes a single triage-batch-<name> resource with each item's answers, a SHA-256 fingerprint of the input, aggregate token usage, and one failure record per item that could not be evaluated. Raw item state and question text are never stored.

Authentication

Uses the @swamp/typesafe-ai global arguments: apiKey (prefer a vault reference), falling back to the TYPESAFE_API_KEY environment variable.

Quick Start

swamp extension pull @webframp/typesafe-batch
swamp model create @swamp/typesafe-ai jev
swamp model method run jev triage_batch --input-file batch.yaml
swamp data get jev triage-batch-latest --json
02Release Notes

2026.09.26.1

Added: triage_batch, an extension method on @swamp/typesafe-ai, moved here from @webframp/operator-briefing 2026.09.25.1 so packages other than the briefing can depend on it. The method name, arguments, and the triageBatch resource (triage-batch-<name>) are the same, so existing workflows and stored batches keep working. The only behavior change is the request User-Agent, now webframp-typesafe-batch/1.

03Stats
A
100 / 100
Downloads
21
Archive size
12.6 KB
  • Has README or module doc2/2earned
  • README has a code example1/1earned
  • README is substantive1/1earned
  • Most symbols documented1/1earned
  • No slow types (deprecated)1/1earned
  • Dependencies pass trust audit2/2earned
  • Has description1/1earned
  • Platform support declared (or universal)2/2earned
  • License declared1/1earned
  • Verified public repository2/2earned
04Platforms
05Labels