Do a better job of handling tools

This commit is contained in:
perf3ct
2025-04-11 22:52:09 +00:00
parent def70af65b
commit 80c29e2a01
7 changed files with 62 additions and 46 deletions

View File

@@ -104,7 +104,8 @@ export class ChatPipeline {
// If there are no tools registered, initialize them
if (toolCount === 0) {
log.info('No tools found in registry, initializing tools...');
await toolInitializer.initializeTools();
// Tools are already initialized in the AIServiceManager constructor
// No need to initialize them again
log.info(`Tools initialized, now have ${toolRegistry.getAllTools().length} tools`);
} else {
log.info(`Found ${toolCount} tools already registered`);