Files
ai-agent/workflow/model/dto/session/exec_chat_dto.go
T
19904408334 cef837a35c feat: 支持工作流断点续跑并拆分错误信息存储
- 新增同会话+同工作流最近执行失败且参数一致时断点续跑逻辑
- exec_workflow/exec_chat 新增 error 字段存储原始错误,error_message 仅存友好提示
- 新增 UpdateExecChatReq 与 exec_chat_dao Update 方法
- 新增 GetLatestBySessionAndFlow 查询最近执行记录
- 修正 ListDates 分组与排序 SQL 表达式
- 新增 pipeline 配置结构,删除旧设计文档
2026-08-21 09:54:06 +08:00

25 lines
971 B
Go

package session
import (
"ai-agent/workflow/model/entity"
)
type CreateExecChatReq struct {
SessionId string `json:"sessionId" description:"所属会话ID"`
RequestParams entity.ExecChatRequestParams `json:"requestParams" description:"请求参数"`
}
type UpdateExecChatReq struct {
Id int64 `json:"id" v:"required#会话执行记录ID不能为空"`
Duration int64 `json:"duration" description:"执行时长(秒)"`
ResultFileUrl string `json:"resultFileUrl" description:"结果文件路径"`
TotalTokens int `json:"totalTokens" description:"总token消耗"`
TotalFee float64 `json:"totalFee" description:"总费用"`
ErrorMessage string `json:"errorMessage" description:"错误信息(友好提示)"`
Error string `json:"error" description:"错误明细(原始错误)"`
}
type DeleteExecChatReq struct {
Id []int64 `json:"id" v:"required#会话执行记录ID不能为空"`
}