Version: 0.8.3.dev.260328
后端: 1.彻底删除原agent文件夹,并将现agent2文件夹全量重命名为agent(包括全部涉及到的文件以及文档、注释),迁移工作完美结束 2.修复了重试消息的相关逻辑问题 前端: 1.改善了一些交互体验,修复了一些bug,现在只剩少的功能了,现存的bug基本都修复完毕 全仓库: 1.更新了决策记录和README文档
This commit is contained in:
17
backend/agent/model/common.go
Normal file
17
backend/agent/model/common.go
Normal file
@@ -0,0 +1,17 @@
|
||||
package agentmodel
|
||||
|
||||
// AgentRequest 是 Agent 总入口接收的统一请求结构。
|
||||
type AgentRequest struct {
|
||||
UserID int
|
||||
ConversationID string
|
||||
UserMessage string
|
||||
ModelName string
|
||||
Extra map[string]any
|
||||
}
|
||||
|
||||
// AgentResponse 是 Agent 总入口返回的统一响应结构。
|
||||
type AgentResponse struct {
|
||||
Action AgentAction
|
||||
Reply string
|
||||
Meta map[string]any
|
||||
}
|
||||
Reference in New Issue
Block a user