mirror of
https://github.com/hansjone/oclaw.git
synced 2026-10-17 07:23:30 +08:00
初始化:独立 oclaw 仓库首提交
- 在 oclaw/ 下重新初始化 Git 仓库 - 补齐子仓库 .gitignore,避免提交本地运行态数据(_local、node_modules、logs 等) - 提交当前工程代码与配置 Made-with: Cursor
This commit is contained in:
commit
ba3836f00f
579 changed files with 83112 additions and 0 deletions
45
openclaw_protocol_schemas/chat.json
Normal file
45
openclaw_protocol_schemas/chat.json
Normal file
|
|
@ -0,0 +1,45 @@
|
|||
{
|
||||
"$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 }
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue