GET
/v1/schemas/ollaya/decision/v1/systemone
Accept:
kind inputactivity decisionhash 20148d45…extracted Nov 10, 2026version currentsource upstream spec ↗
| field | recorded source |
|---|---|
| schema | Source linked above. docs-derived Source trace410cc4af16baf243a8e08773a2fa9092b0dcad63166e4835f60947cf49012174{
"fetchedAt": 1794287449,
"extractorVersion": "2",
"verifiedAt": null
} |
Request body
3 properties · 3 required · 4 $defs| property | type | description | constraints |
|---|---|---|---|
| model* | string | Model name, `[namespace/]model[:tag]`, e.g. `laya` (= `laya:latest`) or `laya:en`. Must be pulled on the server. | length ≥ 1 |
| state* | string | object | any[] | The content every question is about. At most 65,536 tokens; a state that does not fit the model context is 422 STATE_TRUNCATED. | |
| questions* | object | Question id → question, answered in this order. |
Types
4 $defsChoiceQuestionobject
| type* | const | "choice" | |
| instructions | string | object | any[] | What the model should decide. Absent or null: the question id is read in its place. | nullable |
| criteria* | object | string[] | Labels, 2–255: an object label → description, or (Ollaya extension) an array of label strings. | |
| ordinal | any | Labels are in order (Ollaya extension, 2–10 labels). Only models with an ordinal head (Decima) accept true; others return 422. |
NoulQuestionobject
| type* | const | "noul" | |
| instructions | string | object | any[] | What the model should decide. Absent or null: the question id is read in its place. | nullable |
| criteria | object | Optional descriptions of when the statement is true or false. | nullable |
Questionobject | object | object
ScoreQuestionobject
| type* | const | "score" | |
| instructions | string | object | any[] | What the model should decide. Absent or null: the question id is read in its place. | nullable |
| criteria* | string | object | any[][] | Level descriptions, level 0 first. | items ≥ 2 · items ≤ 10 |
Validate a payload
before you spend tokensshell
$ curl -X POST https://modelschemas.com/v1/validate \
-d '{"provider":"ollaya","endpointId":"v1/systemone","payload":{…}}'
→ {"valid": false, "errors": [{"path": "#", "keyword": "required", …}]}