Skip to content
Docs navigation: Decision model / Versions

Versions

RightNow AIDecision modelVersions Updated

On this page

Use the alias to follow the current model, or a pinned ID to select a version.

decide.ts
import { SystemZeroClient } from '@rightnowai/system-zero';

const client = new SystemZeroClient({
  apiKey: process.env.SYSTEM_ZERO_API_KEY,
  baseURL: "https://api.rightnowai.co/v1",
});
const reply = await client.decide({
  "model": "rightnow-decision-3.0.0",
  "state": "The blender I ordered arrived with a cracked jar.",
  "questions": {
    "damaged": {
      "type": "boolean",
      "instructions": "Did the item arrive damaged?"
    }
  }
});
console.log(JSON.stringify(reply, null, 2));
const models = await client.models.list();
console.log(models);

// Set SYSTEM_ZERO_API_KEY to your API key before running this example.
// Run this example on your server.
// SDK defaults: The default is 5 retries, also the maximum, with 150 seconds
// per attempt and a 60-second total retry budget. A single wait longer than 60
// seconds raises the last error.
// Use Retry-After-Ms, or Retry-After when milliseconds are absent. The wait is
// never shorter than a random backoff floor: a random fraction of 0.5 seconds
// doubled for each attempt, capped at 8 seconds.

The SDK package version is 0.4.7. Package versions and model IDs are separate.

The alias

rightnow-decision follows the attested alias target. Read alias_for in the model list to see that target.

Pinned versions

A pinned ID names a particular attested model version. rightnow-decision answers with rightnow-decision-3.0.0, the only served version, which can also be pinned.

Use authenticated GET /v1/models to discover the available names. The Models reference includes the discovery request.

Confidence

Fresh answers include decision, confidence, alternatives and calibrated. confidence is the selected outcome's probability, and calibrated is false in this release. Legacy idempotent replays keep their stored answer shape; do not apply this confidence meaning to them.

Retirement

A pinned model ID can be retired. After that it returns 404 model_not_found, so use the alias or a version from the model list. Review a replacement model before changing your application's pin.