==> call the api
Ask the decision model (System One)
POST /v1/jev/systemone
Questions about a JSON state, each answered with probabilities: noul (yes/no; criteria may say what true and false mean), choice (one of criteria's options: a map of name to description, or a list), score (a position on criteria's ordered levels, lowest first). Up to 64 questions; body up to 1 MiB. Answers { answers: { <id>: ... }, model }. A personal access token only, for an account the model is open to (modelApi in /v1/me); a few calls in flight per account at most (429 beyond). The answer streams back as the model writes it.
Needs a personal access token: Authorization: Bearer <token>.
Body
application/json
- state
anyrequiredAnything JSON: what the questions are about.
- questions
objectrequired
Answer
200 Success.
Refusals
Each answers { "error": "...", "code"?: "..." } with its status.
| status | when |
|---|---|
400 | The request is not valid. |
401 | No valid token. |
403 | This model is not open to the account, or the call did not come with a token. |
413 | The body is too large for this model. |
429 | Too many calls in flight for this account. |
503 | The model is not running. |
Example
curl -X POST 'https://api.clusterstuck.sh/v1/jev/systemone' \
-H 'Authorization: Bearer <your token>' \
-H 'Content-Type: application/json' \
-d '{"state":{},"questions":{}}'