@mastra/dynamodb 0.13.3 → 0.14.0-alpha.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/dist/entities/eval.d.ts +102 -0
- package/dist/entities/eval.d.ts.map +1 -0
- package/dist/entities/index.d.ts +746 -0
- package/dist/entities/index.d.ts.map +1 -0
- package/dist/entities/message.d.ts +100 -0
- package/dist/entities/message.d.ts.map +1 -0
- package/dist/entities/resource.d.ts +54 -0
- package/dist/entities/resource.d.ts.map +1 -0
- package/dist/entities/score.d.ts +229 -0
- package/dist/entities/score.d.ts.map +1 -0
- package/dist/entities/thread.d.ts +69 -0
- package/dist/entities/thread.d.ts.map +1 -0
- package/dist/entities/trace.d.ts +127 -0
- package/dist/entities/trace.d.ts.map +1 -0
- package/dist/entities/utils.d.ts +21 -0
- package/dist/entities/utils.d.ts.map +1 -0
- package/dist/entities/workflow-snapshot.d.ts +74 -0
- package/dist/entities/workflow-snapshot.d.ts.map +1 -0
- package/dist/index.cjs +36 -2
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.ts +2 -2
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +36 -2
- package/dist/index.js.map +1 -0
- package/dist/storage/domains/legacy-evals/index.d.ts +19 -0
- package/dist/storage/domains/legacy-evals/index.d.ts.map +1 -0
- package/dist/storage/domains/memory/index.d.ts +77 -0
- package/dist/storage/domains/memory/index.d.ts.map +1 -0
- package/dist/storage/domains/operations/index.d.ts +69 -0
- package/dist/storage/domains/operations/index.d.ts.map +1 -0
- package/dist/storage/domains/score/index.d.ts +42 -0
- package/dist/storage/domains/score/index.d.ts.map +1 -0
- package/dist/storage/domains/traces/index.d.ts +28 -0
- package/dist/storage/domains/traces/index.d.ts.map +1 -0
- package/dist/storage/domains/workflows/index.d.ts +32 -0
- package/dist/storage/domains/workflows/index.d.ts.map +1 -0
- package/dist/storage/index.d.ts +220 -0
- package/dist/storage/index.d.ts.map +1 -0
- package/package.json +6 -6
- package/src/entities/score.ts +32 -0
- package/src/storage/domains/score/index.ts +6 -3
- package/dist/_tsup-dts-rollup.d.cts +0 -1977
- package/dist/_tsup-dts-rollup.d.ts +0 -1977
- package/dist/index.d.cts +0 -2
package/dist/index.js
CHANGED
|
@@ -418,6 +418,28 @@ var scoreEntity = new Entity({
|
|
|
418
418
|
return value;
|
|
419
419
|
}
|
|
420
420
|
},
|
|
421
|
+
preprocessStepResult: {
|
|
422
|
+
type: "string",
|
|
423
|
+
required: false,
|
|
424
|
+
set: (value) => {
|
|
425
|
+
if (value && typeof value !== "string") {
|
|
426
|
+
return JSON.stringify(value);
|
|
427
|
+
}
|
|
428
|
+
return value;
|
|
429
|
+
},
|
|
430
|
+
get: (value) => {
|
|
431
|
+
if (value && typeof value === "string") {
|
|
432
|
+
try {
|
|
433
|
+
if (value.startsWith("{") || value.startsWith("[")) {
|
|
434
|
+
return JSON.parse(value);
|
|
435
|
+
}
|
|
436
|
+
} catch {
|
|
437
|
+
return value;
|
|
438
|
+
}
|
|
439
|
+
}
|
|
440
|
+
return value;
|
|
441
|
+
}
|
|
442
|
+
},
|
|
421
443
|
analyzeStepResult: {
|
|
422
444
|
type: "string",
|
|
423
445
|
required: false,
|
|
@@ -456,10 +478,19 @@ var scoreEntity = new Entity({
|
|
|
456
478
|
type: "string",
|
|
457
479
|
required: false
|
|
458
480
|
},
|
|
481
|
+
// Deprecated in favor of generateReasonPrompt
|
|
459
482
|
reasonPrompt: {
|
|
460
483
|
type: "string",
|
|
461
484
|
required: false
|
|
462
485
|
},
|
|
486
|
+
generateScorePrompt: {
|
|
487
|
+
type: "string",
|
|
488
|
+
required: false
|
|
489
|
+
},
|
|
490
|
+
generateReasonPrompt: {
|
|
491
|
+
type: "string",
|
|
492
|
+
required: false
|
|
493
|
+
},
|
|
463
494
|
input: {
|
|
464
495
|
type: "string",
|
|
465
496
|
required: true,
|
|
@@ -2097,11 +2128,12 @@ var ScoresStorageDynamoDB = class extends ScoresStorage {
|
|
|
2097
2128
|
traceId: score.traceId || "",
|
|
2098
2129
|
runId: score.runId,
|
|
2099
2130
|
scorer: typeof score.scorer === "string" ? score.scorer : JSON.stringify(score.scorer),
|
|
2100
|
-
|
|
2131
|
+
preprocessStepResult: typeof score.preprocessStepResult === "string" ? score.preprocessStepResult : JSON.stringify(score.preprocessStepResult),
|
|
2101
2132
|
analyzeStepResult: typeof score.analyzeStepResult === "string" ? score.analyzeStepResult : JSON.stringify(score.analyzeStepResult),
|
|
2102
2133
|
score: score.score,
|
|
2103
2134
|
reason: score.reason,
|
|
2104
|
-
|
|
2135
|
+
preprocessPrompt: score.preprocessPrompt,
|
|
2136
|
+
generateScorePrompt: score.generateScorePrompt,
|
|
2105
2137
|
analyzePrompt: score.analyzePrompt,
|
|
2106
2138
|
reasonPrompt: score.reasonPrompt,
|
|
2107
2139
|
input: typeof score.input === "string" ? score.input : JSON.stringify(score.input),
|
|
@@ -2998,3 +3030,5 @@ var DynamoDBStore = class extends MastraStorage {
|
|
|
2998
3030
|
};
|
|
2999
3031
|
|
|
3000
3032
|
export { DynamoDBStore };
|
|
3033
|
+
//# sourceMappingURL=index.js.map
|
|
3034
|
+
//# sourceMappingURL=index.js.map
|