perplexity driver connects Polyglot Decision to Perplexity’s hosted
Decisions API
(POST https://api.perplexity.ai/v1/decisions). It speaks the System One
protocol: a state plus a map of typed noul, choice, and score questions
in, one probability distribution per question out.
Output tokens are free.
Configure the driver
Set a Perplexity API key:https://api.perplexity.ai/v1/decisions with
pplx-decider-v1-27b, the only model the API serves.
Protocol notes
- A Noul question needs instructions, criteria, or both. The driver rejects a Noul with neither before sending. Choice and Score questions may omit instructions.
- Perplexity accepts 1 to 128 questions per request, 1 to 255 Choice options, and up to 10 Score levels. Text, object, and list state keep their System One shape.
- The
x-request-idresponse header becomes the provider request ID. - Probabilities sum to about 1; the adapter checks sums and probability-weighted scores with a 0.01 tolerance. Identical requests can differ in the second decimal place, so set thresholds with some margin.
- Image parts in
stateare not exposed by the Decision API.
Retry-After), 408 and 5xx (including the roughly one-minute 504 timeout) to
retriable transient errors, and other 4xx responses such as 400 and 413 to
invalid requests. A non-JSON body, such as an HTML gateway page, fails closed.
Live smoke
PERPLEXITY_API_KEY in the environment or the repository .env.