WIP - do not trim history

This commit is contained in:
Francisco Gaona
2026-01-26 19:14:33 +01:00
parent fe51355d29
commit ce65817670

View File

@@ -348,7 +348,7 @@ export class AiAssistantService {
const trimmedHistory = Array.isArray(history) ? history.slice(-6) : []; const trimmedHistory = Array.isArray(history) ? history.slice(-6) : [];
// Use Deep Agent as the main coordinator // Use Deep Agent as the main coordinator
const result = await this.runDeepAgent(tenantId, userId, message, trimmedHistory, context, prior); const result = await this.runDeepAgent(tenantId, userId, message, history, context, prior);
// Update conversation state based on result // Update conversation state based on result
if (result.record) { if (result.record) {