/** * System One / Jev typed decision models (Ollama POST /v1/systemone, TypeSafe API). * @see https://ollama.com/blog/ollama-now-supports-jev-style-decision-models */ export declare const KNOWN_DECISION_MODELS: Set; export type QuestionSpec = { type: 'choice'; instructions: string; criteria: Record; } | { type: 'noul'; instructions: string; } | { type: 'score'; instructions: string; criteria: string[]; }; export interface SystemOneAnswer { type: string; choice?: string; noul?: number; score?: number; confidence?: number; probabilities?: Record; legend?: Record; } export interface SystemOneResult { model: string; answers: Record; usage?: { input_tokens?: number; output_tokens?: number; }; raw: Record; } export interface SystemOneOptions { model?: string; apiBase?: string; apiKey?: string; timeoutMs?: number; fetchImpl?: typeof fetch; } export declare function isDecisionModel(model: string): boolean; export declare function choiceQuestion(instructions: string, criteria: Record): QuestionSpec; export declare function noulQuestion(instructions: string): QuestionSpec; export declare function scoreQuestion(instructions: string, criteria: string[]): QuestionSpec; export declare function resolveSystemOneBaseUrl(apiBase?: string): string; export declare function systemOne(state: Record, questions: Record, options?: SystemOneOptions): Promise; export declare function getChoice(result: SystemOneResult, name: string): string | undefined; export declare function getNoul(result: SystemOneResult, name: string): number | undefined; export declare function getScore(result: SystemOneResult, name: string): number | undefined;