@illuma-ai/agents 1.1.12 → 1.1.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.
@@ -572,6 +572,20 @@ class StandardGraph extends Graph {
572
572
  const directToolNames = new Set();
573
573
  const allTools = [...schemaTools];
574
574
  const allToolMap = new Map(schemaTools.map((tool) => [tool.name, tool]));
575
+ /**
576
+ * Include built-in tools (task, content, project, askUser, etc.) as direct tools.
577
+ * These have full instances and don't need on-demand loading via ON_TOOL_EXECUTE.
578
+ * Without this, event-driven mode would only have schema stubs + graph tools,
579
+ * causing "Tool not found" errors when the LLM calls any built-in tool.
580
+ */
581
+ const builtInTools = currentTools ?? [];
582
+ for (const tool of builtInTools) {
583
+ if ('name' in tool) {
584
+ allTools.push(tool);
585
+ allToolMap.set(tool.name, tool);
586
+ directToolNames.add(tool.name);
587
+ }
588
+ }
575
589
  if (graphTools && graphTools.length > 0) {
576
590
  for (const tool of graphTools) {
577
591
  if ('name' in tool) {