fix: resolve agent tool typing

This commit is contained in:
Peter Steinberger
2025-12-25 03:33:09 +01:00
parent 92f467e81c
commit d96f2abc4e
2 changed files with 6 additions and 5 deletions

View File

@@ -294,11 +294,12 @@ export function createClawdisCodingTools(): AnyAgentTool[] {
if (tool.name === bashTool.name) return [];
return [tool as AnyAgentTool];
});
return [
const tools: AnyAgentTool[] = [
...base,
bashTool,
processTool,
bashTool as AnyAgentTool,
processTool as AnyAgentTool,
createWhatsAppLoginTool(),
...createClawdisTools(),
].map(normalizeToolParameters);
];
return tools.map(normalizeToolParameters);
}