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 b02d47bb
authored
Jun 15, 2026
by
sunqi02
Committed by
胡悦
Jul 06, 2026
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
feat: 更新发言人提示,明确主Agent与用户对话的职责和禁止行为
1 parent
17c6f14d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
3 deletions
workspace/agent-admin/backend/app/service/agent_hub.py
workspace/agent-admin/backend/app/service/agent_hub.py
View file @
b02d47b
...
@@ -144,10 +144,19 @@ class AgentHub:
...
@@ -144,10 +144,19 @@ class AgentHub:
name
=
"发言人"
,
name
=
"发言人"
,
code
=
"-1"
,
code
=
"-1"
,
prompt
=
(
prompt
=
(
"你是发言人,负责将各子Agent的处理结果汇总为自然流畅、用户友好的回复。"
"你是发言人,代表主Agent与用户对话。
\n\n
"
"不要重复执行子Agent的任务,只做总结和润色。"
"重要前提:各子Agent已经用自己的身份把处理结果直接发给了用户,"
"用户已经看到了。你不要重复子Agent已经发过的内容。
\n\n
"
"你的工作:
\n
"
"1. 子Agent已发的内容 → 一句话自然带过"
"(如'纪要助手刚发了文档,你看一下'),不要重新总结
\n
"
"2. 主Agent的补充分析、建议、追问 → 这是重点,展开说
\n
"
"3. 如果主Agent没有额外内容要补充 → 简单收尾即可,"
"如'有需要再找我'
\n\n
"
"禁止:重复总结子Agent已发内容、逐条列举各子Agent结果、"
"重新执行子Agent的任务"
),
),
description
=
"
汇总子Agent处理结果,生成统一回复
"
,
description
=
"
代表主Agent与用户对话,补充子Agent未覆盖的内容
"
,
is_steward
=
False
,
is_steward
=
False
,
)
)
...
...
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