Redouble AI Nucleo documentation
Part 6 · Decision models

Connecting a decision model

ai.redouble.nucleo.providers.systemone · nucleo-provider-systemone

This provider calls decision models (What a decision model is): TypeSafe's hosted Jev, and the open models that answer in the same shape, such as Jared Palmer's Kev (github.com/jaredpalmer/kev, Apache-2.0), run on a machine the deployment owns. They all speak one wire, TypeSafe's System One (POST /v1/systemone), so one client serves them all; which model answers depends on where the credential points and which catalog entry the deployment pins. The library is nucleo-provider-systemone.

The credentials

A decision model is reached one of two ways, and each has a provider and a credential of its own:

A root must carry its scheme, https:// or http://; one without is refused, with the accepted form named. Set up and run the demo says how a credential reaches the runtime.

What it serves

The library ships three catalog entries:

A deployment names the one it runs under "pins": {"decision": "<id>"}. Without a pin, the first decision entry the deployment can call whose endpoint serves it answers, with a warning in the log.

On connecting, the provider reads the endpoint's own model listing (GET /v1/models). The listing verifies the credential, tells the discovery what the endpoint serves, and says which model the server loaded, on what device and at what precision, as in model: jaredpalmer/kev-9b on mps, bfloat16. It also keeps the Jev entry from being sent to a Kev server, and the Kev entries from being sent to TypeSafe.

A failure reads by the status the endpoint answered: a rate limit waits for the endpoint's retry-after, a server error or no answer at all is retried at a measured pace, any other refusal fails naming the status, and a reply that is not an answer fails naming what was missing. Neither the key nor the state appears in any failure's message.

How it works inside

The classes, how the listing answers what an endpoint serves, the failure classification and the tests are in Inside the System One provider, for those working on the runtime itself.

Example: One decision - the local connection in one environment variable, and a ticket triaged on it.

^