@mozaik-ai/core 4.2.0-beta.11 → 4.2.0-beta.13
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 +1 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -2516,7 +2516,7 @@ var ToolUseExecutionStrategy = class {
|
|
|
2516
2516
|
if ((pending == null ? void 0 : pending.type) !== "tool_execution") {
|
|
2517
2517
|
throw new Error("The loop has no pending tool execution");
|
|
2518
2518
|
}
|
|
2519
|
-
const tool = agent.
|
|
2519
|
+
const tool = agent.tools.find((tool2) => tool2.name === directive.call.toolName);
|
|
2520
2520
|
if (!tool) {
|
|
2521
2521
|
throw new Error(`Tool "${directive.call.toolName}" not found`);
|
|
2522
2522
|
}
|