@mozaik-ai/core 4.2.0-beta.11 → 4.2.0-beta.12

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 CHANGED
@@ -2557,7 +2557,7 @@ var ToolUseExecutionStrategy = class {
2557
2557
  if ((pending == null ? void 0 : pending.type) !== "tool_execution") {
2558
2558
  throw new Error("The loop has no pending tool execution");
2559
2559
  }
2560
- const tool = agent.getTools().find((tool2) => tool2.name === directive.call.toolName);
2560
+ const tool = agent.tools.find((tool2) => tool2.name === directive.call.toolName);
2561
2561
  if (!tool) {
2562
2562
  throw new Error(`Tool "${directive.call.toolName}" not found`);
2563
2563
  }