fix: relax tool typing for bash tools
This commit is contained in:
@@ -306,11 +306,12 @@ export function createClawdisCodingTools(options?: {
|
|||||||
const processTool = createProcessTool({
|
const processTool = createProcessTool({
|
||||||
cleanupMs: options?.bash?.cleanupMs,
|
cleanupMs: options?.bash?.cleanupMs,
|
||||||
});
|
});
|
||||||
return [
|
const tools: AnyAgentTool[] = [
|
||||||
...base,
|
...base,
|
||||||
bashTool,
|
bashTool as unknown as AnyAgentTool,
|
||||||
processTool,
|
processTool as unknown as AnyAgentTool,
|
||||||
createWhatsAppLoginTool(),
|
createWhatsAppLoginTool(),
|
||||||
...createClawdisTools(),
|
...createClawdisTools(),
|
||||||
].map(normalizeToolParameters);
|
];
|
||||||
|
return tools.map(normalizeToolParameters);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user