TCA-001 / schema.json
Calvin20001's picture
TCA-001 release
ecfed7d verified
Raw History Blame Contribute Delete
2.62 kB
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"required": [
"conversation_id",
"content_hash",
"message_count",
"turn_count",
"messages",
"sources"
],
"properties": {
"conversation_id": {
"type": "string"
},
"content_hash": {
"type": "string",
"pattern": "^[a-f0-9]{64}$"
},
"message_count": {
"type": "integer",
"minimum": 40
},
"turn_count": {
"type": "integer",
"minimum": 20
},
"messages": {
"type": "array",
"items": {
"type": "object",
"required": [
"role",
"content"
],
"properties": {
"role": {
"enum": [
"user",
"assistant"
]
},
"content": {
"type": "string",
"minLength": 1
}
},
"additionalProperties": false
},
"minItems": 40
},
"sources": {
"type": "array",
"items": {
"type": "object",
"required": [
"source_record_id",
"model",
"provider",
"conversation_date",
"published_at",
"conversation_type",
"conversation_id",
"dataset",
"source_url",
"license"
],
"properties": {
"source_record_id": {
"type": [
"string",
"null"
]
},
"model": {
"type": [
"string",
"null"
]
},
"provider": {
"type": [
"string",
"null"
]
},
"conversation_date": {
"type": [
"integer",
"null"
],
"description": "Source conversation timestamp in Unix milliseconds when available."
},
"published_at": {
"type": [
"string",
"null"
]
},
"conversation_type": {
"type": [
"string",
"null"
]
},
"conversation_id": {
"type": "string"
},
"dataset": {
"type": "string"
},
"source_url": {
"type": "string"
},
"license": {
"type": "string"
}
},
"additionalProperties": false
},
"minItems": 1
}
},
"additionalProperties": false
}