{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"input":{"anyOf":[{"type":"string","minLength":1},{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"text"},"text":{"type":"string","minLength":1}},"required":["type","text"],"additionalProperties":false},{"type":"object","properties":{"data":{"type":"string","minLength":1},"uri":{"type":"string","pattern":"^https:\\/\\/.*"},"mime_type":{"type":"string","minLength":1},"type":{"type":"string","const":"image"},"resolution":{"type":"string","enum":["low","medium","high","ultra_high"]}},"required":["mime_type","type"],"additionalProperties":false},{"type":"object","properties":{"data":{"type":"string","minLength":1},"uri":{"type":"string","pattern":"^https:\\/\\/.*"},"mime_type":{"type":"string","minLength":1},"type":{"type":"string","const":"audio"}},"required":["mime_type","type"],"additionalProperties":false},{"type":"object","properties":{"data":{"type":"string","minLength":1},"uri":{"type":"string","pattern":"^https:\\/\\/.*"},"mime_type":{"type":"string","minLength":1},"type":{"type":"string","const":"video"},"resolution":{"type":"string","enum":["low","medium","high"]}},"required":["mime_type","type"],"additionalProperties":false},{"type":"object","properties":{"data":{"type":"string","minLength":1},"uri":{"type":"string","pattern":"^https:\\/\\/.*"},"mime_type":{"type":"string","const":"application/pdf"},"type":{"type":"string","const":"document"}},"required":["mime_type","type"],"additionalProperties":false}]},{"minItems":1,"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"text"},"text":{"type":"string","minLength":1}},"required":["type","text"],"additionalProperties":false},{"type":"object","properties":{"data":{"type":"string","minLength":1},"uri":{"type":"string","pattern":"^https:\\/\\/.*"},"mime_type":{"type":"string","minLength":1},"type":{"type":"string","const":"image"},"resolution":{"type":"string","enum":["low","medium","high","ultra_high"]}},"required":["mime_type","type"],"additionalProperties":false},{"type":"object","properties":{"data":{"type":"string","minLength":1},"uri":{"type":"string","pattern":"^https:\\/\\/.*"},"mime_type":{"type":"string","minLength":1},"type":{"type":"string","const":"audio"}},"required":["mime_type","type"],"additionalProperties":false},{"type":"object","properties":{"data":{"type":"string","minLength":1},"uri":{"type":"string","pattern":"^https:\\/\\/.*"},"mime_type":{"type":"string","minLength":1},"type":{"type":"string","const":"video"},"resolution":{"type":"string","enum":["low","medium","high"]}},"required":["mime_type","type"],"additionalProperties":false},{"type":"object","properties":{"data":{"type":"string","minLength":1},"uri":{"type":"string","pattern":"^https:\\/\\/.*"},"mime_type":{"type":"string","const":"application/pdf"},"type":{"type":"string","const":"document"}},"required":["mime_type","type"],"additionalProperties":false}]}}]},"questions":{"type":"object","propertyNames":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[A-Za-z0-9_-]+$"},"additionalProperties":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"noul"},"instructions":{"anyOf":[{"type":"string","minLength":1},{"type":"object","properties":{"type":{"type":"string","const":"text"},"text":{"type":"string","minLength":1}},"required":["type","text"],"additionalProperties":false},{"minItems":1,"type":"array","items":{"type":"object","properties":{"type":{"type":"string","const":"text"},"text":{"type":"string","minLength":1}},"required":["type","text"],"additionalProperties":false}}]},"criteria":{"type":"object","properties":{"true_description":{"type":"string"},"false_description":{"type":"string"}},"required":["true_description","false_description"],"additionalProperties":false}},"required":["type","instructions"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"choice"},"instructions":{"anyOf":[{"type":"string","minLength":1},{"type":"object","properties":{"type":{"type":"string","const":"text"},"text":{"type":"string","minLength":1}},"required":["type","text"],"additionalProperties":false},{"minItems":1,"type":"array","items":{"type":"object","properties":{"type":{"type":"string","const":"text"},"text":{"type":"string","minLength":1}},"required":["type","text"],"additionalProperties":false}}]},"criteria":{"type":"object","propertyNames":{"type":"string","minLength":1,"maxLength":128},"additionalProperties":{"type":"string"}}},"required":["type","instructions","criteria"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"score"},"instructions":{"anyOf":[{"type":"string","minLength":1},{"type":"object","properties":{"type":{"type":"string","const":"text"},"text":{"type":"string","minLength":1}},"required":["type","text"],"additionalProperties":false},{"minItems":1,"type":"array","items":{"type":"object","properties":{"type":{"type":"string","const":"text"},"text":{"type":"string","minLength":1}},"required":["type","text"],"additionalProperties":false}}]},"criteria":{"minItems":2,"maxItems":255,"type":"array","items":{"type":"string","minLength":1}}},"required":["type","instructions","criteria"],"additionalProperties":false}]}}},"required":["input","questions"],"additionalProperties":false}