Define correction repair response and conversation replay

This commit is contained in:
2026-11-11 04:11:34 +00:00
parent 93a080059d
commit bb81354e21
7 changed files with 282 additions and 2 deletions

View File

@@ -0,0 +1,57 @@
{
"type": "object",
"additionalProperties": false,
"required": [
"proposal_ref",
"action",
"correction"
],
"properties": {
"proposal_ref": {
"type": "integer",
"minimum": 1
},
"action": {
"type": "string",
"enum": [
"revise",
"withdraw"
]
},
"correction": {
"anyOf": [
{
"type": "object",
"additionalProperties": false,
"required": [
"id",
"original_text",
"corrected_text",
"confidence"
],
"properties": {
"id": {
"type": "integer",
"minimum": 1
},
"original_text": {
"type": "string",
"minLength": 1
},
"corrected_text": {
"type": "string"
},
"confidence": {
"type": "number",
"minimum": 0,
"maximum": 1
}
}
},
{
"type": "null"
}
]
}
}
}