/** * src/llm/systemone.ts * * Jev is a System One model from TypeSafe AI, served by OpenCode Zen on * `/v1/systemone`. It does NOT generate prose: given a `state` and a set of * typed questions it returns values + probabilities your code can act on * directly (yes/no `noul`, multiple-choice `choice`, rubric `score`). * * That contract is fundamentally different from `ILLMProvider` (text in, text * out), so Jev is deliberately NOT a drop-in provider — you cannot point a chat * turn at it. Its correct home in the Society is calibrated *decision* * confidence: the Mediator's intent routing, The Steward's complexity tiering, * The Doorman's entry-format checks — anywhere the current code is guessing and * would rather have a real probability. Every failure path returns `null` so a * caller always keeps its deterministic fallback and a Jev outage can never hang * a run. */ export type JevQuestion = { type: 'noul'; instructions: string; } | { type: 'choice'; instructions: string; criteria: Record; } | { type: 'score'; instructions: string; criteria: string[]; }; export interface JevAnswer { value: string | number | boolean; /** Model-reported confidence, 0-1. */ probability: number; } export interface JevOptions { apiKey?: string; baseUrl?: string; model?: string; signal?: AbortSignal; } export declare const JEV_DEFAULT_MODEL = "jev-1.13"; export declare function decideWithJev(state: string, questions: Record, options?: JevOptions): Promise | null>; /** Convenience: single-choice decision over string options, clamped 0-100. */ export declare function chooseWithJev(state: string, options: string[], opts?: JevOptions & { instructions?: string; }): Promise<{ value: string; probability: number; } | null>; //# sourceMappingURL=systemone.d.ts.map