open-agents-ai 0.187.238 → 0.187.239
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 +10 -3
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -271693,14 +271693,19 @@ Call task_complete(summary="...") NOW with whatever you have.`
|
|
|
271693
271693
|
}
|
|
271694
271694
|
if (isThinkOnly) {
|
|
271695
271695
|
if (consecutiveThinkOnly >= MAX_CONSECUTIVE_THINK_ONLY) {
|
|
271696
|
+
const recentSuccesses = this._littlemanToolOutcomes.slice(-3).filter((o2) => o2.succeeded);
|
|
271697
|
+
const hasRecentSuccess = recentSuccesses.length > 0;
|
|
271698
|
+
const successHint = hasRecentSuccess ? `
|
|
271699
|
+
|
|
271700
|
+
Your most recent tool calls SUCCEEDED. If the task is complete, call task_complete now with a summary of what you accomplished.` : "";
|
|
271696
271701
|
this.emit({
|
|
271697
271702
|
type: "status",
|
|
271698
|
-
content: `Model produced ${consecutiveThinkOnly} consecutive think-only responses — nudging toward
|
|
271703
|
+
content: `Model produced ${consecutiveThinkOnly} consecutive think-only responses — nudging toward action${hasRecentSuccess ? " (recent tools succeeded)" : ""}`,
|
|
271699
271704
|
timestamp: (/* @__PURE__ */ new Date()).toISOString()
|
|
271700
271705
|
});
|
|
271701
271706
|
messages2.push({
|
|
271702
271707
|
role: "user",
|
|
271703
|
-
content: "You have been reasoning internally for several turns without producing visible output or tool calls. Please take action now — call a tool or produce a visible response."
|
|
271708
|
+
content: "You have been reasoning internally for several turns without producing visible output or tool calls. Please take action now — call a tool or produce a visible response." + successHint
|
|
271704
271709
|
});
|
|
271705
271710
|
}
|
|
271706
271711
|
continue;
|
|
@@ -272049,9 +272054,11 @@ Full content available via: repl_exec(code="data = retrieve('${handleId}')") or
|
|
|
272049
272054
|
}
|
|
272050
272055
|
if (isThinkOnlyBF) {
|
|
272051
272056
|
if (consecutiveThinkOnly >= MAX_CONSECUTIVE_THINK_ONLY) {
|
|
272057
|
+
const recentSucc = this._littlemanToolOutcomes.slice(-3).filter((o2) => o2.succeeded);
|
|
272058
|
+
const succHint = recentSucc.length > 0 ? "\n\nYour most recent tool calls SUCCEEDED. If the task is complete, call task_complete now with a summary." : "";
|
|
272052
272059
|
messages2.push({
|
|
272053
272060
|
role: "user",
|
|
272054
|
-
content: "You have been reasoning internally for several turns without producing visible output or tool calls. Please take action now — call a tool or produce a visible response."
|
|
272061
|
+
content: "You have been reasoning internally for several turns without producing visible output or tool calls. Please take action now — call a tool or produce a visible response." + succHint
|
|
272055
272062
|
});
|
|
272056
272063
|
}
|
|
272057
272064
|
continue;
|
package/package.json
CHANGED