@mozaik-ai/core 4.2.0-beta.10 → 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
@@ -462,10 +462,10 @@ var InMemoryAgentRepository = class {
462
462
  this.agents = [];
463
463
  }
464
464
  exists(id) {
465
- return Promise.resolve(this.agents.some((agent) => agent.getManifest().id === id));
465
+ return Promise.resolve(this.agents.some((agent) => agent.id === id));
466
466
  }
467
467
  findById(id) {
468
- return Promise.resolve(this.agents.find((agent) => agent.getManifest().id === id));
468
+ return Promise.resolve(this.agents.find((agent) => agent.id === id));
469
469
  }
470
470
  findAll() {
471
471
  return Promise.resolve(this.agents);
@@ -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
  }