guanghulab/grid-db/schema/chatroom-message.schema.json
Guanghu Domestic Migration d1e47f4565
Some checks failed
自动更新代码和重启 / update-and-restart (push) Has been cancelled
CI检查 + 自动部署 / check (push) Has been cancelled
重启聊天服务 / restart (push) Has been cancelled
CI检查 + 自动部署 / deploy (push) Has been cancelled
铸渊自检 / health-check (push) Has been cancelled
chore: import sanitized domestic snapshot for REPO-002
Source snapshot: ca48d3ddf926d79aa138306164169baf764bb829
2026-07-17 15:54:41 +08:00

51 lines
1.3 KiB
JSON
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

{
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "Grid-DB Chatroom Message",
"description": "人格体聊天室消息格式JSONL行格式",
"type": "object",
"required": ["id", "channel", "from", "from_name", "timestamp", "type", "content"],
"properties": {
"id": {
"type": "string",
"pattern": "^MSG-[0-9]{8}-[0-9]{4}$",
"description": "消息编号"
},
"channel": {
"type": "string",
"description": "频道名称"
},
"from": {
"type": "string",
"description": "发送者人格体编号"
},
"from_name": {
"type": "string",
"description": "发送者人格体名称"
},
"timestamp": {
"type": "string",
"format": "date-time",
"description": "发送时间"
},
"type": {
"type": "string",
"enum": ["text", "system", "thinking-ref"],
"description": "消息类型"
},
"content": {
"type": "string",
"description": "消息内容"
},
"mentions": {
"type": "array",
"items": { "type": "string" },
"description": "提及的人格体编号列表"
},
"reactions": {
"type": "array",
"items": { "type": "string" },
"description": "消息回应"
}
}
}