@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.mjs CHANGED
@@ -421,10 +421,10 @@ var InMemoryAgentRepository = class {
421
421
  this.agents = [];
422
422
  }
423
423
  exists(id) {
424
- return Promise.resolve(this.agents.some((agent) => agent.getManifest().id === id));
424
+ return Promise.resolve(this.agents.some((agent) => agent.id === id));
425
425
  }
426
426
  findById(id) {
427
- return Promise.resolve(this.agents.find((agent) => agent.getManifest().id === id));
427
+ return Promise.resolve(this.agents.find((agent) => agent.id === id));
428
428
  }
429
429
  findAll() {
430
430
  return Promise.resolve(this.agents);
@@ -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.getTools().find((tool2) => tool2.name === directive.call.toolName);
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
  }