update agent tools

This commit is contained in:
perf3ct
2025-03-19 20:09:18 +00:00
parent 5b81252959
commit 0d4b6a71fc
7 changed files with 777 additions and 125 deletions

View File

@@ -414,12 +414,19 @@ export class AIServiceManager {
showThinking: boolean = false,
relevantNotes: Array<any> = []
): Promise<string> {
return contextService.getAgentToolsContext(
noteId,
query,
showThinking,
relevantNotes
);
// Just use the context service directly
try {
const cs = (await import('./context/modules/context_service.js')).default;
return cs.getAgentToolsContext(
noteId,
query,
showThinking,
relevantNotes
);
} catch (error) {
log.error(`Error in AIServiceManager.getAgentToolsContext: ${error}`);
return `Error generating enhanced context: ${error}`;
}
}
}