Skip to content
Docs navigation: Decision model / Danger zone

Danger zone

RightNow AIDecision modelDanger zone Updated

On this page

Experimental, not stable.

In the zone

ClassState tokensRendered tokensRequest body
long_context_64k65,53670,6563,665,920 bytes
long_context_128k131,072136,1923,665,920 bytes

Statements that are corrected later in a long document are a known weak spot.

Access

Send SZ-Danger-Zone on each request with a class name: long_context_64k or long_context_128k. The header name is case insensitive; class names are exact lowercase. A plain accept returns HTTP 400 invalid_request.

Use stateless POST /v1/system-zero/decide requests.

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

// state.txt must contain text of 38,001 to 65,536 tokens.
const client = new SystemZeroClient();
const reply = await client.decide({
  model: "rightnow-decision",
  state: readFileSync('state.txt', 'utf8'),
  questions: {
    "damaged": {
      "type": "boolean",
      "instructions": "Did the item arrive damaged?"
    }
  },
}, { dangerZone: 'long_context_64k' });
console.log(reply.answers);

Native classes

Send the long text in state. The 64k and 128k classes refuse every attachment and upload reference with HTTP 404 long_context_not_available and are not charged.

Each class serves one band of state tokens: long_context_64k from 38,001 to 65,536 and long_context_128k from 65,537 to 131,072. A request outside its class's band is refused and not charged.

No header
1 to 38,000 state tokens. Ordinary rates. USD 0.00733 for 38,000 billed input tokens and one answered question.
long_context_64k
38,001 to 65,536 state tokens. At least USD 0.02 per answered call.
long_context_128k
65,537 to 131,072 state tokens. At least USD 0.05 per answered call.
State tokens each class serves, on one scale.

Answers

The sz-danger-zone response header identifies the context used.

The response body is unchanged. The warning is not added to the body. Playground shows the returned classes with Experimental, not stable..

Refusals

Any other header value returns HTTP 400 invalid_request with param set to SZ-Danger-Zone.

CodeHTTP statusMeaning
long_context_not_availableHTTP 404This release can refuse an unavailable route or input.
service_unavailableHTTP 503The service is temporarily unavailable. Retry after the returned delay.
capacity_exhaustedHTTP 429Capacity is unavailable for this request. Retry after the returned delay.

Billing

Each answered long_context_64k call costs at least USD 0.02, and each long_context_128k call at least USD 0.05.