open-agents-ai 0.186.0 → 0.186.1
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 +7 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -26211,6 +26211,7 @@ TASK: ${task}` : task;
|
|
|
26211
26211
|
let completed = false;
|
|
26212
26212
|
let summary = "";
|
|
26213
26213
|
let bruteForceCycle = 0;
|
|
26214
|
+
let assistantTextEmitted2 = false;
|
|
26214
26215
|
let consecutiveTextOnly = 0;
|
|
26215
26216
|
const MAX_CONSECUTIVE_TEXT_ONLY = 3;
|
|
26216
26217
|
let narratedToolCallCount = 0;
|
|
@@ -26867,8 +26868,9 @@ Then use file_read on individual FILES inside it.`);
|
|
|
26867
26868
|
if (tc.name === "task_complete") {
|
|
26868
26869
|
completed = true;
|
|
26869
26870
|
summary = tc.arguments.summary || "";
|
|
26870
|
-
if (summary) {
|
|
26871
|
+
if (summary && !assistantTextEmitted2) {
|
|
26871
26872
|
this.emit({ type: "assistant_text", content: summary, turn, timestamp: (/* @__PURE__ */ new Date()).toISOString() });
|
|
26873
|
+
assistantTextEmitted2 = true;
|
|
26872
26874
|
}
|
|
26873
26875
|
break;
|
|
26874
26876
|
}
|
|
@@ -27222,8 +27224,10 @@ Full content available via: repl_exec(code="data = retrieve('${handleId}')") or
|
|
|
27222
27224
|
if (tc.name === "task_complete") {
|
|
27223
27225
|
completed = true;
|
|
27224
27226
|
summary = tc.arguments.summary || "";
|
|
27225
|
-
if (summary)
|
|
27227
|
+
if (summary && !assistantTextEmitted2) {
|
|
27226
27228
|
this.emit({ type: "assistant_text", content: summary, turn, timestamp: (/* @__PURE__ */ new Date()).toISOString() });
|
|
27229
|
+
assistantTextEmitted2 = true;
|
|
27230
|
+
}
|
|
27227
27231
|
break;
|
|
27228
27232
|
}
|
|
27229
27233
|
}
|
|
@@ -28836,6 +28840,7 @@ ${description}`
|
|
|
28836
28840
|
const cleanContent = content.replace(/<think>[\s\S]*?<\/think>/g, "").trim();
|
|
28837
28841
|
if (cleanContent) {
|
|
28838
28842
|
this.emit({ type: "assistant_text", content: cleanContent, turn, timestamp: (/* @__PURE__ */ new Date()).toISOString() });
|
|
28843
|
+
assistantTextEmitted = true;
|
|
28839
28844
|
}
|
|
28840
28845
|
const hadThinking = content.includes("<think>") && content.includes("</think>");
|
|
28841
28846
|
const thinkOnlyResponse = hadThinking && !cleanContent;
|
package/package.json
CHANGED