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

18 lines (17 loc) • 853 B
/** * Local declarations of the tool, schema, message and model-protocol types * that used to be re-exported from `ai` and `@ai-sdk/provider`. * * These are deliberately faithful to the upstream shapes rather than * simplified. An earlier attempt declared `Tool` with `unknown` generic * defaults and 66 type errors followed, because the upstream defaults are * `any` and that is load-bearing: `NeverOptional` resolves its * `0 extends 1 & N` branch under `any`, which makes `execute` and * `outputSchema` OPTIONAL on a bare `Tool`. That optionality is the only * reason a plain `Record<string, Tool>` satisfies `ToolSet`, which this * codebase relies on in a dozen places. * * `any` therefore appears here on purpose and nowhere else. Each use is a * reproduction of an upstream generic default, not a loosened annotation. */ export {};