open-agents-ai 0.187.413 → 0.187.415
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/dist/index.js +17 -9
- package/npm-shrinkwrap.json +2 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -517946,17 +517946,25 @@ ${sr.result.output}`;
|
|
|
517946
517946
|
if (loopInterventionCount >= maxInterventions) {
|
|
517947
517947
|
this.emit({
|
|
517948
517948
|
type: "status",
|
|
517949
|
-
content: `Loop circuit breaker: ${loopInterventionCount} interventions
|
|
517949
|
+
content: `Loop circuit breaker: ${loopInterventionCount} interventions — requesting user guidance`,
|
|
517950
517950
|
timestamp: (/* @__PURE__ */ new Date()).toISOString()
|
|
517951
517951
|
});
|
|
517952
|
-
const partialResults = this._taskState.completedSteps.length > 0 ? this._taskState.completedSteps.join(". ") : `
|
|
517953
|
-
|
|
517954
|
-
|
|
517955
|
-
|
|
517956
|
-
|
|
517957
|
-
|
|
517958
|
-
|
|
517959
|
-
|
|
517952
|
+
const partialResults = this._taskState.completedSteps.length > 0 ? this._taskState.completedSteps.join(". ") : `Progress made before loop: ${topRepeated}`;
|
|
517953
|
+
messages2.push({
|
|
517954
|
+
role: "system",
|
|
517955
|
+
content: `LOOP CIRCUIT BREAKER: ${loopInterventionCount} interventions attempted but repetition continues.
|
|
517956
|
+
|
|
517957
|
+
MANDATORY: You MUST call ask_user to request guidance from the user. Present your options:
|
|
517958
|
+
1. Try a completely different approach
|
|
517959
|
+
2. Provide more context or clarification
|
|
517960
|
+
3. Accept partial results and pivot to a related task
|
|
517961
|
+
4. Abort this specific subtask and move on
|
|
517962
|
+
|
|
517963
|
+
Your partial progress: ${partialResults}
|
|
517964
|
+
|
|
517965
|
+
Call ask_user(question="I've hit a repetitive loop. How would you like me to proceed?", options=[...]) NOW.`
|
|
517966
|
+
});
|
|
517967
|
+
loopInterventionCount = 0;
|
|
517960
517968
|
}
|
|
517961
517969
|
const findings = [];
|
|
517962
517970
|
for (const [key, entry] of recentToolResults) {
|
package/npm-shrinkwrap.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "open-agents-ai",
|
|
3
|
-
"version": "0.187.
|
|
3
|
+
"version": "0.187.415",
|
|
4
4
|
"lockfileVersion": 3,
|
|
5
5
|
"requires": true,
|
|
6
6
|
"packages": {
|
|
7
7
|
"": {
|
|
8
8
|
"name": "open-agents-ai",
|
|
9
|
-
"version": "0.187.
|
|
9
|
+
"version": "0.187.415",
|
|
10
10
|
"hasInstallScript": true,
|
|
11
11
|
"license": "CC-BY-NC-4.0",
|
|
12
12
|
"dependencies": {
|
package/package.json
CHANGED