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

51 行
865 B
JSON

{
"$defs": {
"RiskLevel": {
"enum": [
"read",
"reversible-write",
"destructive"
],
"type": "string"
}
},
"$schema": "https://json-schema.org/draft/2020-12/schema",
"additionalProperties": false,
"properties": {
"actionId": {
"type": "string"
},
"arguments": true,
"expiresAt": {
"type": "string"
},
"reason": {
"type": "string"
},
"requestedAt": {
"type": "string"
},
"requiresApproval": {
"type": "boolean"
},
"riskLevel": {
"$ref": "#/$defs/RiskLevel"
},
"toolName": {
"type": "string"
}
},
"required": [
"actionId",
"toolName",
"reason",
"riskLevel",
"arguments",
"requestedAt",
"expiresAt",
"requiresApproval"
],
"title": "ToolProposal",
"type": "object"
}