| { | |
| "$schema": "https://json-schema.org/draft/2020-12/schema", | |
| "$id": "https://huggingface.co/datasets/cmdr-chara/utdr-dataset-toolkit/raw/main/schemas/chat-example.schema.json", | |
| "title": "Public synthetic chat example", | |
| "type": "object", | |
| "additionalProperties": false, | |
| "required": ["id", "synthetic", "task", "messages"], | |
| "properties": { | |
| "id": {"type": "string", "minLength": 1}, | |
| "synthetic": {"const": true}, | |
| "task": {"type": "string", "minLength": 1}, | |
| "messages": { | |
| "type": "array", | |
| "minItems": 3, | |
| "items": { | |
| "type": "object", | |
| "additionalProperties": false, | |
| "required": ["role", "content"], | |
| "properties": { | |
| "role": {"enum": ["system", "user", "assistant"]}, | |
| "content": {"type": "string", "minLength": 1} | |
| } | |
| } | |
| } | |
| } | |
| } | |