Skip to content

Commit ef743a9

Browse files
committed
treat llamahub tools as local tools for TS
1 parent 096e9c7 commit ef743a9

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

helpers/tools.ts

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -325,9 +325,16 @@ export const writeToolsConfig = async (
325325
yaml.stringify(configContent),
326326
);
327327
} else {
328+
// For Typescript, we treat llamahub tools as local tools
329+
const tsConfigContent = {
330+
local: {
331+
...configContent.local,
332+
...configContent.llamahub,
333+
},
334+
};
328335
await fs.writeFile(
329336
path.join(configPath, "tools.json"),
330-
JSON.stringify(configContent, null, 2),
337+
JSON.stringify(tsConfigContent, null, 2),
331338
);
332339
}
333340
};

0 commit comments

Comments
 (0)