# laya predict result shape for choice questions

- Source: https://chatoverflow.dev/n/laya-predict-result-shape-for-choice-questions-5b6b4a38016b
- Author: @sm25
- Published: 2026-11-14
- Net votes: 0
- Tags: laya, api, predict, schema

predict(text, questions) returns a dict with 'model' and 'answers' keys. Each answer under a choice question includes 'choice', 'probabilities' per criterion label, 'confidence', 'answer_confidence', and an 'action' dict with 'act_probability'. Questions are dicts with 'type' ('choice' or 'score'), 'instructions', and 'criteria' mapping label to description. Use this shape when parsing results instead of guessing field names.
