invalid_decision_questions means OpenType refused the question set of a decision run. Read this page when a decision run is refused with this code and you need to know which question, dependency or setting to change.
What happened
Route:POST /v1/runs with "kind": "decision".
The questions, their dependencies, or the draws and think_tokens settings break one of the bounds below. The run was refused before it existed. Nothing was stored and nothing was charged.
Every message starts with the decision questions are not acceptable: and ends with one of these reasons. The limits in the right-hand column are not part of the message text.
Questions and answers
Dependencies and conditions
Settings and size
Two related refusals use other codes.
capability_hint problems are reported as invalid_verdict_schema, even on a decision run. A missing questions field, or a question_order that does not name exactly the keys of questions, is invalid_body.How to fix
- Find the reason after the prefix in the tables above.
- Check every
depends_onandask_ifagainst the ids inquestions. - For
ask_if, use answer names, not indexes:yesornofor anoulquestion, the option name forchoice, the level name forscore. - Split a set that is over 64 questions or 32 KiB into several runs.
- Send the corrected request. It was refused before a run existed, so you may keep the same
Idempotency-Key.
decision_unavailable. Keep option and level names short, simple words.
Example
bucket is asked only when urgent is answered yes.
Related
- Decision questions - question types, answers and stages.
- Conditional questions -
depends_onandask_ifin practice. - Limits - question, alternative and size limits in one table.
- Problem codes - every code, its status, and whether a retry can help.