UNPKG

@juspay/neurolink

Version:

The pipe layer of an AI nervous system: one interface connecting provider neurons to your application, across three inference types — generate, stream and decide. `decide` returns typed, calibrated judgements from a non-generative model (~400ms, ~$0.00002

32 lines (31 loc) • 971 B
/** Native Ollama diagnostic identity, outcome and captured policy state. */ export type OllamaDiagnosticContext = Readonly<{ /** Private resolved URL: never include it, its key, or credentials in logs. */ url: string; key: string; model: string; }>; export type OllamaDiagnosticSnapshot = Readonly<{ count: number; lastFailureAt: number | undefined; revision: number; generation: number; }>; export type OllamaDiagnosticState = { count: number; lastFailureAt: number | undefined; revision: number; generation: number; }; export type OllamaDiagnosticPermit = Readonly<{ kind: "allowed"; context: OllamaDiagnosticContext; generation: number; }>; export type OllamaDiagnosticGate = OllamaDiagnosticPermit | Readonly<{ kind: "suppressed"; count: number; reason: string; generation: number; }>; export type OllamaDiagnosticOutcome = "success" | "transport-failure" | "protocol-failure" | "not-run";