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

17 lines (16 loc) • 753 B
/** * ClassifierRouter types — generic "classify → pick model + tools → run". * * A ClassifierRouter inspects an incoming request, classifies it by difficulty * (and optional required capabilities / suggested tools), then selects a * provider/model from a host-declared "available base" pool — routing harder * tasks to more capable models and easier tasks to cheaper/faster ones — and * optionally narrows the tool set for that request. * * It is entirely opt-in (constructor config, `enabled: false` by default) and * fails open: any classifier or selection error leaves the call unrouted. * * Type names are domain-prefixed `Classifier*` to stay globally unique across * `src/lib/types/` (see CLAUDE.md rule 9). */ export {};