Version: 0.8.3.dev.260328

后端:
1.彻底删除原agent文件夹,并将现agent2文件夹全量重命名为agent(包括全部涉及到的文件以及文档、注释),迁移工作完美结束
2.修复了重试消息的相关逻辑问题

前端:
1.改善了一些交互体验,修复了一些bug,现在只剩少的功能了,现存的bug基本都修复完毕

全仓库:
1.更新了决策记录和README文档
This commit is contained in:
Losita
2026-03-28 18:00:31 +08:00
parent 5fc9548420
commit 468367d617
108 changed files with 1910 additions and 17173 deletions

View File

@@ -0,0 +1,24 @@
package agentprompt
import (
"fmt"
"strings"
)
const routeSystemPrompt = `
你是 SmartFlow 的一级路由助手。
你的职责不是回答用户,而是判断这条消息更适合走哪条能力链路。
当前 Agent 仍在逐批迁移阶段,因此这里只先保留 prompt 落点与职责说明。
真正迁移旧 route 提示词时,应把正式版本收敛到这里,而不是散落在 node 或 service 中。
`
// BuildRouteSystemPrompt 返回一级路由系统提示词。
func BuildRouteSystemPrompt() string {
return strings.TrimSpace(routeSystemPrompt)
}
// BuildRouteUserPrompt 构造一级路由用户提示词。
func BuildRouteUserPrompt(userInput string) string {
return fmt.Sprintf("用户输入:%s", strings.TrimSpace(userInput))
}