@saber2pr/ai-agent 0.0.26 → 0.0.27
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/core/agent-graph.js +2 -3
- package/package.json +1 -1
package/lib/core/agent-graph.js
CHANGED
|
@@ -252,9 +252,8 @@ class McpGraphAgent {
|
|
|
252
252
|
2. 严禁对 JSON 内容进行二次转义。
|
|
253
253
|
|
|
254
254
|
# 指令
|
|
255
|
-
1.
|
|
256
|
-
2.
|
|
257
|
-
3. 不要重复调用相同的工具和参数,如果工具已经返回结果,请基于结果继续工作而不是再次调用。{recentToolCalls}
|
|
255
|
+
1. 避免陷入在同一个文件上的无限循环尝试。
|
|
256
|
+
2. 不要重复调用相同的工具和参数,如果工具已经返回结果,请基于结果继续工作而不是再次调用。{recentToolCalls}
|
|
258
257
|
{extraPrompt}`;
|
|
259
258
|
// 2. 核心逻辑:处理消息上下文
|
|
260
259
|
let inputMessages;
|