guanghulab/grid-db/schema/chatroom-message.schema.json
2026-05-10 13:12:44 +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": "消息回应"
}
}
}