@peopl-health/nexus 3.3.12 → 3.3.14-fix-tools-executed

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -156,7 +156,7 @@ async function insertMessage(values) {
156
156
  updatedAt: values.delivery_status_updated_at || null
157
157
  };
158
158
  }
159
- if (messageData.tools_executed === undefined) {
159
+ if (!Array.isArray(messageData.tools_executed)) {
160
160
  messageData.tools_executed = [];
161
161
  }
162
162
 
@@ -216,7 +216,7 @@ class OpenAIResponsesProvider {
216
216
  toolsExecuted
217
217
  });
218
218
 
219
- return { run: result, completed, output, tools_executed: toolsExecuted, retries: result.retries || 0 };
219
+ return { run: result, completed, output, tools_executed: result.tools_executed || [], retries: result.retries || 0 };
220
220
  } catch (error) {
221
221
  logger.error('[executeRun] Failed', { conversationId, assistantId, error: error.message });
222
222
  throw error;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@peopl-health/nexus",
3
- "version": "3.3.12",
3
+ "version": "3.3.14-fix-tools-executed",
4
4
  "description": "Core messaging and assistant library for WhatsApp communication platforms",
5
5
  "keywords": [
6
6
  "whatsapp",