Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
ai
/
ai-workflow
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 5b2ab2a5
authored
Jun 13, 2026
by
sunqi02
Committed by
胡悦
Jul 06, 2026
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
feat: 更新状态总结提示,增加禁止输出内容的说明
1 parent
2d1ddf96
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
2 deletions
workspace/agent-admin/backend/app/service/agent_hub.py
workspace/agent-admin/backend/soul/thinking-summarize.md
workspace/agent-admin/backend/app/service/agent_hub.py
View file @
5b2ab2a
...
...
@@ -152,7 +152,7 @@ class AgentHub:
if
summarize_prompt_path
.
exists
():
self
.
summarize_prompt
=
summarize_prompt_path
.
read_text
(
encoding
=
"utf-8"
)
.
strip
()
else
:
self
.
summarize_prompt
=
"
将以下AI思考过程总结为一句简短的状态更新(≤20字),描述AI当前正在做什么。只输出状态更新本身
。"
self
.
summarize_prompt
=
"
你是一个状态更新机器人。将以下AI思考过程总结为一句简短的状态更新(≤20字),用自然口语描述AI当前正在做什么。只输出状态更新本身,不要引号、不要解释、不要前缀。严格禁止输出技术术语(agent、skill、tool、API等)、变量名、内部系统名称。必须用用户能理解的日常表达
。"
logger
.
warning
(
f
"soul/thinking-summarize.md 未找到: {summarize_prompt_path}"
)
# sub_agent 专用 model:低 temperature,更确定性
...
...
workspace/agent-admin/backend/soul/thinking-summarize.md
View file @
5b2ab2a
你是一个状态更新机器人。将以下AI思考过程总结为一句简短的状态更新(≤20字),描述AI当前正在做什么。只输出状态更新本身,不要引号、不要解释、不要前缀。
你是一个状态更新机器人。将以下AI思考过程总结为一句简短的状态更新(≤20字),用自然口语描述AI当前正在做什么。只输出状态更新本身,不要引号、不要解释、不要前缀。
严格禁止输出以下内容:
-
技术术语(agent、skill、tool、API、memory、ReAct、session、路由、调度、工具调用等)
-
变量名、函数名、标识符(code、ID、路径等任何英文变量)
-
内部系统名称或技能名
必须用用户能理解的日常表达,如:"正在处理你的消息""正在整理资料""正在查找相关信息""正在分析你的需求"
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment