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

22 lines (21 loc) • 511 B
/** * CLI-specific type definitions for NeuroLink */ /** * Type guard for generate result */ export function isCliGenerateResult(value) { return (typeof value === "object" && value !== null && "content" in value && typeof value.content === "string"); } /** * Type guard for command result */ export function isCommandResult(value) { return (typeof value === "object" && value !== null && "success" in value && typeof value.success === "boolean"); }