oclaw/openclaw_protocol_schemas/chat.json
oliver ba3836f00f 初始化:独立 oclaw 仓库首提交
- 在 oclaw/ 下重新初始化 Git 仓库
- 补齐子仓库 .gitignore,避免提交本地运行态数据(_local、node_modules、logs 等)
- 提交当前工程代码与配置

Made-with: Cursor
2026-04-24 22:31:22 +08:00

45 lines
1.5 KiB
JSON

{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "oclaw://schemas/chat.json",
"title": "ChatParams",
"$defs": {
"NonEmptyString": { "type": "string", "minLength": 1 },
"ChatSendParams": {
"type": "object",
"additionalProperties": false,
"required": ["sessionKey", "message", "idempotencyKey"],
"properties": {
"sessionKey": { "$ref": "#/$defs/NonEmptyString" },
"message": { "type": "string" },
"thinking": { "type": "string" },
"interaction_mode": { "type": "string" },
"specialist": { "type": "string" },
"relay_share_envelope": { "type": "object" },
"acp_parent_run_id": { "type": "string" },
"acp_child_run_id": { "type": "string" },
"attachments": { "type": "array", "items": {} },
"timeoutMs": { "type": "integer", "minimum": 0 },
"idempotencyKey": { "$ref": "#/$defs/NonEmptyString" }
}
},
"ChatHistoryParams": {
"type": "object",
"additionalProperties": false,
"required": ["sessionKey"],
"properties": {
"sessionKey": { "$ref": "#/$defs/NonEmptyString" },
"limit": { "type": "integer", "minimum": 1 },
"maxChars": { "type": "integer", "minimum": 1 }
}
},
"ChatAbortParams": {
"type": "object",
"additionalProperties": false,
"required": ["sessionKey"],
"properties": {
"sessionKey": { "$ref": "#/$defs/NonEmptyString" },
"runId": { "type": "string", "minLength": 1 }
}
}
}
}