@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.
- package/dist/cjs/graphs/Graph.cjs +14 -0
- package/dist/cjs/graphs/Graph.cjs.map +1 -1
- package/dist/cjs/tools/search/search.cjs +11 -4
- package/dist/cjs/tools/search/search.cjs.map +1 -1
- package/dist/cjs/tools/search/tool.cjs +2 -1
- package/dist/cjs/tools/search/tool.cjs.map +1 -1
- package/dist/esm/graphs/Graph.mjs +14 -0
- package/dist/esm/graphs/Graph.mjs.map +1 -1
- package/dist/esm/tools/search/search.mjs +11 -4
- package/dist/esm/tools/search/search.mjs.map +1 -1
- package/dist/esm/tools/search/tool.mjs +2 -1
- package/dist/esm/tools/search/tool.mjs.map +1 -1
- package/dist/types/tools/search/types.d.ts +3 -0
- package/package.json +1 -1
- package/src/graphs/Graph.ts +15 -0
- package/src/tools/search/search.ts +13 -3
- package/src/tools/search/tool.ts +2 -0
- package/src/tools/search/types.ts +3 -0
|
@@ -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) {
|