feat: 记录任务的所有问答

This commit is contained in:
yokowu
2025-07-03 10:15:35 +08:00
parent 9fdcfe89b4
commit 7426de7ba6
34 changed files with 1095 additions and 372 deletions

View File

@@ -1776,6 +1776,17 @@
"AdminStatusInactive"
]
},
"consts.ChatRole": {
"type": "string",
"enum": [
"user",
"assistant"
],
"x-enum-varnames": [
"ChatRoleUser",
"ChatRoleAssistant"
]
},
"consts.ModelStatus": {
"type": "string",
"enum": [
@@ -1947,15 +1958,36 @@
}
}
},
"domain.ChatInfo": {
"domain.ChatContent": {
"type": "object",
"properties": {
"content": {
"description": "内容",
"type": "string"
},
"created_at": {
"type": "integer"
},
"role": {
"description": "角色如user: 用户的提问 assistant: 机器人回复",
"allOf": [
{
"$ref": "#/definitions/consts.ChatRole"
}
]
}
}
},
"domain.ChatInfo": {
"type": "object",
"properties": {
"contents": {
"description": "消息内容",
"type": "array",
"items": {
"$ref": "#/definitions/domain.ChatContent"
}
},
"id": {
"type": "string"
}