@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
|
|
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:
|
|
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;
|