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

27 lines (26 loc) • 1.23 kB
#!/usr/bin/env node /** * NeuroLink CLI Decide Command * * Calls `NeuroLink.decide()` — the third inference type, alongside `generate` * and `stream`. Takes a `state` plus a map of named typed questions and * prints one calibrated answer per question. See src/lib/types/decision.ts * for the full vocabulary. * * Credentials are env-only here, exactly as every other CLI command: the * decision provider reads its own settings (TYPESAFE_API_KEY, LAYA_API_KEY and * LAYA_BASE_URL, XOR_API_KEY and XOR_BASE_URL, SUBQ_API_KEY, PERPLEXITY_API_KEY, * CLOUDFLARE_API_KEY and CLOUDFLARE_ACCOUNT_ID, or OPENAI_API_KEY) itself. An * OPENAI_API_KEY beside an OPENAI_BASE_URL, OPENAI_API_BASE or credentials.openai.baseURL that names a host * other than https://api.openai.com is a gateway's and is not used by default. */ import type { CommandModule } from "yargs"; import type { CliDecideArgs } from "../../types/index.js"; export declare const decideCommand: CommandModule<object, CliDecideArgs>; /** * Create decide command factory for CLICommandFactory-style registration, * matching the EvaluateCommandFactory pattern. */ export declare class DecideCommandFactory { static createDecideCommand(): CommandModule; }