Skip to content
System One

legacybridge-tech/pi-typesafe-jev

Pi extension that exposes System One judgments as five tools: a yes/no Noul, a Choice over a fixed set, a Score over ordered levels, a batched evaluate for several questions about one state, and an ask for a question pinned in a local YAML or JSON file. The tools call the API directly with fetch and carry no SDK dependency.

legacybridge-tech/pi-typesafe-jev on GitHub

Stars
3
Forks
0
Language
TypeScript
Last push
17 Sep 2026

Read from GitHub on . Counts change daily.

How it uses Jev

 * handed back to a tool result.
 */

export const TYPESAFE_ORIGIN = "https://api.typesafe.ai";
export const TYPESAFE_SYSTEM_ONE_URL = `${TYPESAFE_ORIGIN}/v1/systemone`;
export const JEV_MODEL = "jev-latest";

export const DEFAULT_TIMEOUT_MS = 60_000;
/** Total attempts, including the first one. Only 429/529 responses are retried. */
export const DEFAULT_MAX_ATTEMPTS = 3;
export const BASE_RETRY_DELAY_MS = 500;
export const MAX_RETRY_DELAY_MS = 10_000;
export const MAX_RESPONSE_BYTES = 1_000_000;
export const MAX_ERROR_DETAIL_CHARS = 300;
export const PROBABILITY_SUM_TOLERANCE = 0.05;

View in src/client.ts

Open on GitHub

PrimitivesChoiceScoreNoul

More like this

Keep browsing