@voltagent/core 1.1.28 → 1.1.29
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/dist/index.js +8 -0
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +8 -0
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -9673,6 +9673,7 @@ var import_utils13 = require("@voltagent/internal/utils");
|
|
|
9673
9673
|
|
|
9674
9674
|
// src/eval/runtime/runtime.ts
|
|
9675
9675
|
var import_utils11 = require("@voltagent/internal/utils");
|
|
9676
|
+
var RUNTIME_METADATA_KEY = "__runtime";
|
|
9676
9677
|
async function runLocalScorers(args) {
|
|
9677
9678
|
const { payload, scorers, defaultSampling, baseArgs } = args;
|
|
9678
9679
|
if (!Array.isArray(scorers) || scorers.length === 0) {
|
|
@@ -9752,6 +9753,13 @@ async function runLocalScorers(args) {
|
|
|
9752
9753
|
errorValue = error;
|
|
9753
9754
|
}
|
|
9754
9755
|
const durationMs = Date.now() - start;
|
|
9756
|
+
const runtimeSnapshot = {
|
|
9757
|
+
payload: cloneRecord(payload) ?? payload ?? null,
|
|
9758
|
+
params: cloneRecord(scorerParams) ?? scorerParams ?? {}
|
|
9759
|
+
};
|
|
9760
|
+
metadata = mergeMetadata(metadata, {
|
|
9761
|
+
[RUNTIME_METADATA_KEY]: runtimeSnapshot
|
|
9762
|
+
});
|
|
9755
9763
|
const execution = {
|
|
9756
9764
|
id: definition.id,
|
|
9757
9765
|
name: definition.name,
|