JSON FORMAT — family 'cls'
Return only a valid JSON object (no code fences, no comments) that validates against this JSON Schema:
{"$schema":"https://json-schema.org/draft/2020-12/schema","title":"Multi-label text classification outputs","description":"Classifier outputs: the label set is written in full and the predicted labels carry *, so both the label space and the prediction are self-describing.","type":"object","properties":{"header":{"type":"object","properties":{"d":{"type":"string"},"l":{"type":"string"},"model":{"type":"string"},"k":{"type":"integer"}}},"messages":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"text":{"type":"string"},"labels":{"type":"array","items":{"type":"string"}},"selected":{"type":"array","items":{"type":"integer","minimum":0},"description":"ascending 0-based indices of the selected elements of labels"},"conf":{"type":"number","minimum":0,"maximum":1},"rationale":{"type":"string"}},"required":["id","text","labels","selected","conf"]}}},"required":["header","messages"]}
Valid example:
{"header":{"d":"20260603","l":"en","model":"cls-support-2026","k":6},"messages":[{"id":"m1","text":"The quiz froze after question 4, is that a known issue?","labels":["question","feedback","bug","request","praise","other"],"selected":[0,2],"conf":0.91,"rationale":"reports a malfunction and asks"}]}
