@wix/evalforge-evaluator 0.133.0 → 0.134.0
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.
- package/build/index.js +6 -5
- package/build/index.js.map +2 -2
- package/build/index.mjs +6 -5
- package/build/index.mjs.map +2 -2
- package/package.json +2 -2
package/build/index.js
CHANGED
|
@@ -3466,9 +3466,10 @@ function buildConversation3(triggerPrompt, steps, executionStartMs, stepTimestam
|
|
|
3466
3466
|
});
|
|
3467
3467
|
for (let i = 0; i < steps.length; i++) {
|
|
3468
3468
|
const step = steps[i];
|
|
3469
|
-
const
|
|
3470
|
-
|
|
3471
|
-
).toISOString();
|
|
3469
|
+
const stepStartedAt = i === 0 ? executionStartMs : stepTimestamps[i - 1] ?? executionStartMs;
|
|
3470
|
+
const stepFinishedAt = stepTimestamps[i] ?? executionStartMs;
|
|
3471
|
+
const assistantTimestamp = new Date(stepStartedAt).toISOString();
|
|
3472
|
+
const toolResultTimestamp = new Date(stepFinishedAt).toISOString();
|
|
3472
3473
|
const assistantContent = [];
|
|
3473
3474
|
if (step.reasoningText) {
|
|
3474
3475
|
assistantContent.push({ type: "thinking", thinking: step.reasoningText });
|
|
@@ -3488,7 +3489,7 @@ function buildConversation3(triggerPrompt, steps, executionStartMs, stepTimestam
|
|
|
3488
3489
|
messages.push({
|
|
3489
3490
|
role: "assistant",
|
|
3490
3491
|
content: assistantContent,
|
|
3491
|
-
timestamp:
|
|
3492
|
+
timestamp: assistantTimestamp
|
|
3492
3493
|
});
|
|
3493
3494
|
}
|
|
3494
3495
|
if (step.toolResults.length > 0) {
|
|
@@ -3505,7 +3506,7 @@ function buildConversation3(triggerPrompt, steps, executionStartMs, stepTimestam
|
|
|
3505
3506
|
messages.push({
|
|
3506
3507
|
role: "user",
|
|
3507
3508
|
content: resultBlocks,
|
|
3508
|
-
timestamp:
|
|
3509
|
+
timestamp: toolResultTimestamp
|
|
3509
3510
|
});
|
|
3510
3511
|
}
|
|
3511
3512
|
}
|