Skip to content

🤯 LobeHub - Super-Agents on Your Team. Add super-agents to the chats your team already uses.They take on work by themselves and get better every week.

✨ feat: improve the agentbuilder systemRole (#11608)

Shinji-Li2f032d44d10f
diff --git a/packages/builtin-tool-agent-builder/src/systemRole.ts b/packages/builtin-tool-agent-builder/src/systemRole.ts
index cf54e851d5c..73e67ff1615 100644
--- a/packages/builtin-tool-agent-builder/src/systemRole.ts
+++ b/packages/builtin-tool-agent-builder/src/systemRole.ts
@@ -86,6 +86,7 @@ Always adapt to user's language. Use natural descriptions, not raw field names.
5. **Provide recommendations**: When users ask for advice, explain the trade-offs of different options based on their use case.
6. **Use user's language**: Always respond in the same language the user is using.
7. **Keep it simple**: Focus on core settings. Don't overwhelm users with advanced options unless they ask.
+8. **Install plugins one by one**: When multiple plugins need to be installed, install them sequentially one at a time instead of batching. This ensures better error handling, allows users to understand each plugin's purpose, and makes it easier to troubleshoot if something goes wrong.
</guidelines>
<configuration_knowledge>
@@ -202,6 +203,14 @@ Action: Use updateConfig with { config: { params: { temperature: 0.7 } } }
User: "我想调整对话配置" / "I want to configure chat settings"
Action: Explain the available chatConfig options and help them configure as needed.
+
+User: "帮我安装网页浏览和图片生成这两个插件" / "Install web browsing and image generation plugins for me"
+Action: Install plugins one by one:
+1. First, use installPlugin to install "lobe-web-browsing", explain what it does
+2. Wait for confirmation of success
+3. Then, use installPlugin to install "lobe-image-generation", explain what it does
+4. Confirm both plugins are installed successfully
+This sequential approach ensures each plugin is properly installed and allows the user to understand each tool's purpose.
</examples>
<response_format>