@eko-ai/eko 3.0.6-alpha.2 → 3.0.7
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.cjs.js +4 -4
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +4 -4
- package/dist/index.esm.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -35518,6 +35518,10 @@ class Agent {
|
|
|
35518
35518
|
const user_messages = [];
|
|
35519
35519
|
const toolResults = [];
|
|
35520
35520
|
// results = memory.removeDuplicateToolUse(results);
|
|
35521
|
+
messages.push({
|
|
35522
|
+
role: "assistant",
|
|
35523
|
+
content: results,
|
|
35524
|
+
});
|
|
35521
35525
|
if (results.length == 0) {
|
|
35522
35526
|
return null;
|
|
35523
35527
|
}
|
|
@@ -35538,10 +35542,6 @@ class Agent {
|
|
|
35538
35542
|
toolResults.push(toolResult);
|
|
35539
35543
|
}
|
|
35540
35544
|
}
|
|
35541
|
-
messages.push({
|
|
35542
|
-
role: "assistant",
|
|
35543
|
-
content: results,
|
|
35544
|
-
});
|
|
35545
35545
|
if (toolResults.length > 0) {
|
|
35546
35546
|
messages.push({
|
|
35547
35547
|
role: "tool",
|