@polka-codes/core 0.6.2 → 0.6.4
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 +6 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -9630,6 +9630,9 @@ ${agents}`;
|
|
|
9630
9630
|
await this.#callback({ kind: "ToolInterrupted" /* ToolInterrupted */, agent: this, tool: content.name });
|
|
9631
9631
|
return { exit: toolResp };
|
|
9632
9632
|
case "HandOver" /* HandOver */:
|
|
9633
|
+
if (toolReponses.length > 0) {
|
|
9634
|
+
continue;
|
|
9635
|
+
}
|
|
9633
9636
|
await this.#callback({
|
|
9634
9637
|
kind: "ToolHandOver" /* ToolHandOver */,
|
|
9635
9638
|
agent: this,
|
|
@@ -9641,6 +9644,9 @@ ${agents}`;
|
|
|
9641
9644
|
});
|
|
9642
9645
|
return { exit: toolResp };
|
|
9643
9646
|
case "Delegate" /* Delegate */:
|
|
9647
|
+
if (toolReponses.length > 0) {
|
|
9648
|
+
continue;
|
|
9649
|
+
}
|
|
9644
9650
|
await this.#callback({
|
|
9645
9651
|
kind: "ToolDelegate" /* ToolDelegate */,
|
|
9646
9652
|
agent: this,
|