AstrBot-Desktop/docs/protocol/v1/schemas/tool-result.schema.json

45 行
738 B
JSON

{
"$defs": {
"ToolResultStatus": {
"enum": [
"rejected",
"completed",
"failed",
"cancelled"
],
"type": "string"
}
},
"$schema": "https://json-schema.org/draft/2020-12/schema",
"additionalProperties": false,
"properties": {
"actionId": {
"type": "string"
},
"completedAt": {
"type": "string"
},
"errorCode": {
"type": [
"string",
"null"
]
},
"result": true,
"status": {
"$ref": "#/$defs/ToolResultStatus"
},
"summary": {
"type": "string"
}
},
"required": [
"actionId",
"status",
"summary",
"completedAt"
],
"title": "ToolResult",
"type": "object"
}