Files
nana-story/contracts/schema/turn-request.schema.json

45 lines
727 B
JSON

{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"title": "TurnRequest",
"type": "object",
"properties": {
"actionId": {
"type": "string"
},
"branchId": {
"type": "string"
},
"expectedNodeId": {
"type": "string"
},
"input": {
"type": "string"
},
"intent": {
"$ref": "#/$defs/TurnIntent"
},
"storyId": {
"type": "string"
}
},
"required": [
"storyId",
"branchId",
"expectedNodeId",
"actionId",
"intent",
"input"
],
"$defs": {
"TurnIntent": {
"type": "string",
"enum": [
"speak_or_act",
"continue",
"regenerate",
"push_check"
]
}
}
}