@mastra/core 0.24.8 → 0.24.9-alpha.1
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/CHANGELOG.md +8 -0
- package/dist/agent/index.cjs +13 -13
- package/dist/agent/index.js +2 -2
- package/dist/agent/input-processor/index.cjs +6 -6
- package/dist/agent/input-processor/index.js +1 -1
- package/dist/ai-tracing/index.cjs +56 -39
- package/dist/ai-tracing/index.d.ts +1 -0
- package/dist/ai-tracing/index.d.ts.map +1 -1
- package/dist/ai-tracing/index.js +2 -1
- package/dist/ai-tracing/serialization.d.ts +60 -0
- package/dist/ai-tracing/serialization.d.ts.map +1 -0
- package/dist/ai-tracing/spans/base.d.ts +0 -17
- package/dist/ai-tracing/spans/base.d.ts.map +1 -1
- package/dist/ai-tracing/spans/default.d.ts.map +1 -1
- package/dist/{chunk-V2IMZSNO.js → chunk-2BIQL3SK.js} +3 -3
- package/dist/{chunk-V2IMZSNO.js.map → chunk-2BIQL3SK.js.map} +1 -1
- package/dist/chunk-3L3ISSMS.cjs +130 -0
- package/dist/chunk-3L3ISSMS.cjs.map +1 -0
- package/dist/{chunk-E5NCEJEJ.js → chunk-4DWBTEHS.js} +3 -3
- package/dist/{chunk-E5NCEJEJ.js.map → chunk-4DWBTEHS.js.map} +1 -1
- package/dist/{chunk-Z6ZIJYKK.js → chunk-5BMYOHKM.js} +4 -4
- package/dist/{chunk-Z6ZIJYKK.js.map → chunk-5BMYOHKM.js.map} +1 -1
- package/dist/{chunk-2BY7C6Y7.js → chunk-5KSHWBRH.js} +3 -3
- package/dist/{chunk-2BY7C6Y7.js.map → chunk-5KSHWBRH.js.map} +1 -1
- package/dist/{chunk-DSUKMFZY.js → chunk-5S5X3QPR.js} +92 -111
- package/dist/chunk-5S5X3QPR.js.map +1 -0
- package/dist/{chunk-5PSD3IKG.cjs → chunk-7GUQ2EQ4.cjs} +92 -111
- package/dist/chunk-7GUQ2EQ4.cjs.map +1 -0
- package/dist/{chunk-PPAIPZ6C.js → chunk-BBE22VBK.js} +4 -43
- package/dist/chunk-BBE22VBK.js.map +1 -0
- package/dist/{chunk-2YE6RNCZ.cjs → chunk-CSHVFDF6.cjs} +4 -4
- package/dist/{chunk-2YE6RNCZ.cjs.map → chunk-CSHVFDF6.cjs.map} +1 -1
- package/dist/{chunk-X5JTTWMF.cjs → chunk-DGL7I4HZ.cjs} +9 -9
- package/dist/{chunk-X5JTTWMF.cjs.map → chunk-DGL7I4HZ.cjs.map} +1 -1
- package/dist/{chunk-3IDFSGG3.cjs → chunk-EHTC7VYS.cjs} +4 -4
- package/dist/{chunk-3IDFSGG3.cjs.map → chunk-EHTC7VYS.cjs.map} +1 -1
- package/dist/{chunk-RLYWCJQ6.js → chunk-EMTBCXQQ.js} +3 -3
- package/dist/{chunk-RLYWCJQ6.js.map → chunk-EMTBCXQQ.js.map} +1 -1
- package/dist/{chunk-RP4YCZP7.js → chunk-GEHKQTB2.js} +3 -3
- package/dist/{chunk-RP4YCZP7.js.map → chunk-GEHKQTB2.js.map} +1 -1
- package/dist/{chunk-Y2BH2LUD.js → chunk-GSQD3QNR.js} +7 -7
- package/dist/{chunk-Y2BH2LUD.js.map → chunk-GSQD3QNR.js.map} +1 -1
- package/dist/{chunk-2YN6HGEH.js → chunk-HHPXFPNO.js} +3 -3
- package/dist/{chunk-2YN6HGEH.js.map → chunk-HHPXFPNO.js.map} +1 -1
- package/dist/{chunk-CNIM7N4E.cjs → chunk-MSFEDB5Z.cjs} +16 -16
- package/dist/{chunk-CNIM7N4E.cjs.map → chunk-MSFEDB5Z.cjs.map} +1 -1
- package/dist/{chunk-GIK7MM2K.js → chunk-NFJJ6B6P.js} +3 -3
- package/dist/{chunk-GIK7MM2K.js.map → chunk-NFJJ6B6P.js.map} +1 -1
- package/dist/chunk-PA6Z5V6U.js +124 -0
- package/dist/chunk-PA6Z5V6U.js.map +1 -0
- package/dist/{chunk-DISETAP2.cjs → chunk-PAW64WWA.cjs} +4 -4
- package/dist/{chunk-DISETAP2.cjs.map → chunk-PAW64WWA.cjs.map} +1 -1
- package/dist/{chunk-ICICKWAG.cjs → chunk-QETEFQ7T.cjs} +6 -6
- package/dist/{chunk-ICICKWAG.cjs.map → chunk-QETEFQ7T.cjs.map} +1 -1
- package/dist/{chunk-YPYLWTZI.cjs → chunk-QGJF6TRY.cjs} +16 -56
- package/dist/chunk-QGJF6TRY.cjs.map +1 -0
- package/dist/{chunk-FQTJPLCW.cjs → chunk-QLPSR67Y.cjs} +14 -14
- package/dist/{chunk-FQTJPLCW.cjs.map → chunk-QLPSR67Y.cjs.map} +1 -1
- package/dist/{chunk-N6P5GJRO.js → chunk-QQKRUSCB.js} +6 -6
- package/dist/{chunk-N6P5GJRO.js.map → chunk-QQKRUSCB.js.map} +1 -1
- package/dist/{chunk-RQPGIUUA.cjs → chunk-QWOKGSO2.cjs} +6 -6
- package/dist/{chunk-RQPGIUUA.cjs.map → chunk-QWOKGSO2.cjs.map} +1 -1
- package/dist/{chunk-4YYPQOP7.cjs → chunk-RDD5YB3T.cjs} +4 -4
- package/dist/{chunk-4YYPQOP7.cjs.map → chunk-RDD5YB3T.cjs.map} +1 -1
- package/dist/{chunk-RWPKCFZT.cjs → chunk-W54LWXCG.cjs} +4 -4
- package/dist/{chunk-RWPKCFZT.cjs.map → chunk-W54LWXCG.cjs.map} +1 -1
- package/dist/{chunk-YYKN3NDZ.cjs → chunk-ZWWHTQ72.cjs} +51 -51
- package/dist/{chunk-YYKN3NDZ.cjs.map → chunk-ZWWHTQ72.cjs.map} +1 -1
- package/dist/{chunk-6VB52TJV.js → chunk-ZZIYFEVM.js} +3 -3
- package/dist/{chunk-6VB52TJV.js.map → chunk-ZZIYFEVM.js.map} +1 -1
- package/dist/index.cjs +59 -59
- package/dist/index.js +9 -9
- package/dist/loop/index.cjs +2 -2
- package/dist/loop/index.js +1 -1
- package/dist/loop/workflows/agentic-execution/index.d.ts +24 -24
- package/dist/loop/workflows/agentic-execution/llm-execution-step.d.ts +16 -16
- package/dist/loop/workflows/agentic-execution/llm-mapping-step.d.ts +8 -8
- package/dist/loop/workflows/agentic-loop/index.d.ts +24 -24
- package/dist/loop/workflows/schema.d.ts +8 -8
- package/dist/mastra/index.cjs +2 -2
- package/dist/mastra/index.js +1 -1
- package/dist/memory/index.cjs +4 -4
- package/dist/memory/index.js +1 -1
- package/dist/processors/index.cjs +11 -11
- package/dist/processors/index.js +1 -1
- package/dist/relevance/index.cjs +4 -4
- package/dist/relevance/index.js +1 -1
- package/dist/scores/index.cjs +9 -9
- package/dist/scores/index.js +2 -2
- package/dist/scores/scoreTraces/index.cjs +8 -8
- package/dist/scores/scoreTraces/index.js +3 -3
- package/dist/server/index.cjs +2 -2
- package/dist/server/index.js +1 -1
- package/dist/storage/index.cjs +3 -3
- package/dist/storage/index.js +1 -1
- package/dist/stream/index.cjs +11 -11
- package/dist/stream/index.js +2 -2
- package/dist/telemetry/index.cjs +7 -7
- package/dist/telemetry/index.js +1 -1
- package/dist/telemetry/telemetry.d.ts.map +1 -1
- package/dist/telemetry/telemetry.decorators.d.ts.map +1 -1
- package/dist/test-utils/llm-mock.cjs +2 -2
- package/dist/test-utils/llm-mock.js +1 -1
- package/dist/tts/index.cjs +2 -2
- package/dist/tts/index.js +1 -1
- package/dist/utils.cjs +22 -22
- package/dist/utils.js +1 -1
- package/dist/voice/index.cjs +6 -6
- package/dist/voice/index.js +1 -1
- package/dist/workflows/evented/index.cjs +10 -10
- package/dist/workflows/evented/index.js +1 -1
- package/dist/workflows/index.cjs +17 -17
- package/dist/workflows/index.js +1 -1
- package/dist/workflows/legacy/index.cjs +22 -22
- package/dist/workflows/legacy/index.js +1 -1
- package/dist/workflows/legacy/machine.d.ts +1 -1
- package/package.json +3 -3
- package/dist/chunk-5PSD3IKG.cjs.map +0 -1
- package/dist/chunk-DSUKMFZY.js.map +0 -1
- package/dist/chunk-PPAIPZ6C.js.map +0 -1
- package/dist/chunk-YPYLWTZI.cjs.map +0 -1
|
@@ -58,6 +58,7 @@ export declare function createAgenticLoopWorkflow<Tools extends ToolSet = ToolSe
|
|
|
58
58
|
}>;
|
|
59
59
|
steps: import("zod").ZodArray<import("zod").ZodAny, "many">;
|
|
60
60
|
}, "strip", import("zod").ZodTypeAny, {
|
|
61
|
+
steps: any[];
|
|
61
62
|
usage: {
|
|
62
63
|
inputTokens: number;
|
|
63
64
|
outputTokens: number;
|
|
@@ -65,7 +66,6 @@ export declare function createAgenticLoopWorkflow<Tools extends ToolSet = ToolSe
|
|
|
65
66
|
reasoningTokens?: number | undefined;
|
|
66
67
|
cachedInputTokens?: number | undefined;
|
|
67
68
|
};
|
|
68
|
-
steps: any[];
|
|
69
69
|
text?: string | undefined;
|
|
70
70
|
reasoning?: any[] | undefined;
|
|
71
71
|
sources?: any[] | undefined;
|
|
@@ -78,6 +78,7 @@ export declare function createAgenticLoopWorkflow<Tools extends ToolSet = ToolSe
|
|
|
78
78
|
staticToolResults?: any[] | undefined;
|
|
79
79
|
dynamicToolResults?: any[] | undefined;
|
|
80
80
|
}, {
|
|
81
|
+
steps: any[];
|
|
81
82
|
usage: {
|
|
82
83
|
inputTokens: number;
|
|
83
84
|
outputTokens: number;
|
|
@@ -85,7 +86,6 @@ export declare function createAgenticLoopWorkflow<Tools extends ToolSet = ToolSe
|
|
|
85
86
|
reasoningTokens?: number | undefined;
|
|
86
87
|
cachedInputTokens?: number | undefined;
|
|
87
88
|
};
|
|
88
|
-
steps: any[];
|
|
89
89
|
text?: string | undefined;
|
|
90
90
|
reasoning?: any[] | undefined;
|
|
91
91
|
sources?: any[] | undefined;
|
|
@@ -120,8 +120,8 @@ export declare function createAgenticLoopWorkflow<Tools extends ToolSet = ToolSe
|
|
|
120
120
|
headers: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>>;
|
|
121
121
|
request: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodAny>>;
|
|
122
122
|
}, "strip", import("zod").ZodTypeAny, {
|
|
123
|
-
id?: string | undefined;
|
|
124
123
|
providerMetadata?: Record<string, any> | undefined;
|
|
124
|
+
id?: string | undefined;
|
|
125
125
|
headers?: Record<string, string> | undefined;
|
|
126
126
|
model?: string | undefined;
|
|
127
127
|
request?: Record<string, any> | undefined;
|
|
@@ -133,8 +133,8 @@ export declare function createAgenticLoopWorkflow<Tools extends ToolSet = ToolSe
|
|
|
133
133
|
modelProvider: string;
|
|
134
134
|
} | undefined;
|
|
135
135
|
}, {
|
|
136
|
-
id?: string | undefined;
|
|
137
136
|
providerMetadata?: Record<string, any> | undefined;
|
|
137
|
+
id?: string | undefined;
|
|
138
138
|
headers?: Record<string, string> | undefined;
|
|
139
139
|
model?: string | undefined;
|
|
140
140
|
request?: Record<string, any> | undefined;
|
|
@@ -206,6 +206,7 @@ export declare function createAgenticLoopWorkflow<Tools extends ToolSet = ToolSe
|
|
|
206
206
|
}>;
|
|
207
207
|
}, "strip", import("zod").ZodTypeAny, {
|
|
208
208
|
output: {
|
|
209
|
+
steps: any[];
|
|
209
210
|
usage: {
|
|
210
211
|
inputTokens: number;
|
|
211
212
|
outputTokens: number;
|
|
@@ -213,7 +214,6 @@ export declare function createAgenticLoopWorkflow<Tools extends ToolSet = ToolSe
|
|
|
213
214
|
reasoningTokens?: number | undefined;
|
|
214
215
|
cachedInputTokens?: number | undefined;
|
|
215
216
|
};
|
|
216
|
-
steps: any[];
|
|
217
217
|
text?: string | undefined;
|
|
218
218
|
reasoning?: any[] | undefined;
|
|
219
219
|
sources?: any[] | undefined;
|
|
@@ -228,8 +228,8 @@ export declare function createAgenticLoopWorkflow<Tools extends ToolSet = ToolSe
|
|
|
228
228
|
};
|
|
229
229
|
messageId: string;
|
|
230
230
|
metadata: {
|
|
231
|
-
id?: string | undefined;
|
|
232
231
|
providerMetadata?: Record<string, any> | undefined;
|
|
232
|
+
id?: string | undefined;
|
|
233
233
|
headers?: Record<string, string> | undefined;
|
|
234
234
|
model?: string | undefined;
|
|
235
235
|
request?: Record<string, any> | undefined;
|
|
@@ -264,6 +264,7 @@ export declare function createAgenticLoopWorkflow<Tools extends ToolSet = ToolSe
|
|
|
264
264
|
};
|
|
265
265
|
}, {
|
|
266
266
|
output: {
|
|
267
|
+
steps: any[];
|
|
267
268
|
usage: {
|
|
268
269
|
inputTokens: number;
|
|
269
270
|
outputTokens: number;
|
|
@@ -271,7 +272,6 @@ export declare function createAgenticLoopWorkflow<Tools extends ToolSet = ToolSe
|
|
|
271
272
|
reasoningTokens?: number | undefined;
|
|
272
273
|
cachedInputTokens?: number | undefined;
|
|
273
274
|
};
|
|
274
|
-
steps: any[];
|
|
275
275
|
text?: string | undefined;
|
|
276
276
|
reasoning?: any[] | undefined;
|
|
277
277
|
sources?: any[] | undefined;
|
|
@@ -286,8 +286,8 @@ export declare function createAgenticLoopWorkflow<Tools extends ToolSet = ToolSe
|
|
|
286
286
|
};
|
|
287
287
|
messageId: string;
|
|
288
288
|
metadata: {
|
|
289
|
-
id?: string | undefined;
|
|
290
289
|
providerMetadata?: Record<string, any> | undefined;
|
|
290
|
+
id?: string | undefined;
|
|
291
291
|
headers?: Record<string, string> | undefined;
|
|
292
292
|
model?: string | undefined;
|
|
293
293
|
request?: Record<string, any> | undefined;
|
|
@@ -368,6 +368,7 @@ export declare function createAgenticLoopWorkflow<Tools extends ToolSet = ToolSe
|
|
|
368
368
|
}>;
|
|
369
369
|
steps: import("zod").ZodArray<import("zod").ZodAny, "many">;
|
|
370
370
|
}, "strip", import("zod").ZodTypeAny, {
|
|
371
|
+
steps: any[];
|
|
371
372
|
usage: {
|
|
372
373
|
inputTokens: number;
|
|
373
374
|
outputTokens: number;
|
|
@@ -375,7 +376,6 @@ export declare function createAgenticLoopWorkflow<Tools extends ToolSet = ToolSe
|
|
|
375
376
|
reasoningTokens?: number | undefined;
|
|
376
377
|
cachedInputTokens?: number | undefined;
|
|
377
378
|
};
|
|
378
|
-
steps: any[];
|
|
379
379
|
text?: string | undefined;
|
|
380
380
|
reasoning?: any[] | undefined;
|
|
381
381
|
sources?: any[] | undefined;
|
|
@@ -388,6 +388,7 @@ export declare function createAgenticLoopWorkflow<Tools extends ToolSet = ToolSe
|
|
|
388
388
|
staticToolResults?: any[] | undefined;
|
|
389
389
|
dynamicToolResults?: any[] | undefined;
|
|
390
390
|
}, {
|
|
391
|
+
steps: any[];
|
|
391
392
|
usage: {
|
|
392
393
|
inputTokens: number;
|
|
393
394
|
outputTokens: number;
|
|
@@ -395,7 +396,6 @@ export declare function createAgenticLoopWorkflow<Tools extends ToolSet = ToolSe
|
|
|
395
396
|
reasoningTokens?: number | undefined;
|
|
396
397
|
cachedInputTokens?: number | undefined;
|
|
397
398
|
};
|
|
398
|
-
steps: any[];
|
|
399
399
|
text?: string | undefined;
|
|
400
400
|
reasoning?: any[] | undefined;
|
|
401
401
|
sources?: any[] | undefined;
|
|
@@ -430,8 +430,8 @@ export declare function createAgenticLoopWorkflow<Tools extends ToolSet = ToolSe
|
|
|
430
430
|
headers: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>>;
|
|
431
431
|
request: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodAny>>;
|
|
432
432
|
}, "strip", import("zod").ZodTypeAny, {
|
|
433
|
-
id?: string | undefined;
|
|
434
433
|
providerMetadata?: Record<string, any> | undefined;
|
|
434
|
+
id?: string | undefined;
|
|
435
435
|
headers?: Record<string, string> | undefined;
|
|
436
436
|
model?: string | undefined;
|
|
437
437
|
request?: Record<string, any> | undefined;
|
|
@@ -443,8 +443,8 @@ export declare function createAgenticLoopWorkflow<Tools extends ToolSet = ToolSe
|
|
|
443
443
|
modelProvider: string;
|
|
444
444
|
} | undefined;
|
|
445
445
|
}, {
|
|
446
|
-
id?: string | undefined;
|
|
447
446
|
providerMetadata?: Record<string, any> | undefined;
|
|
447
|
+
id?: string | undefined;
|
|
448
448
|
headers?: Record<string, string> | undefined;
|
|
449
449
|
model?: string | undefined;
|
|
450
450
|
request?: Record<string, any> | undefined;
|
|
@@ -516,6 +516,7 @@ export declare function createAgenticLoopWorkflow<Tools extends ToolSet = ToolSe
|
|
|
516
516
|
}>;
|
|
517
517
|
}, "strip", import("zod").ZodTypeAny, {
|
|
518
518
|
output: {
|
|
519
|
+
steps: any[];
|
|
519
520
|
usage: {
|
|
520
521
|
inputTokens: number;
|
|
521
522
|
outputTokens: number;
|
|
@@ -523,7 +524,6 @@ export declare function createAgenticLoopWorkflow<Tools extends ToolSet = ToolSe
|
|
|
523
524
|
reasoningTokens?: number | undefined;
|
|
524
525
|
cachedInputTokens?: number | undefined;
|
|
525
526
|
};
|
|
526
|
-
steps: any[];
|
|
527
527
|
text?: string | undefined;
|
|
528
528
|
reasoning?: any[] | undefined;
|
|
529
529
|
sources?: any[] | undefined;
|
|
@@ -538,8 +538,8 @@ export declare function createAgenticLoopWorkflow<Tools extends ToolSet = ToolSe
|
|
|
538
538
|
};
|
|
539
539
|
messageId: string;
|
|
540
540
|
metadata: {
|
|
541
|
-
id?: string | undefined;
|
|
542
541
|
providerMetadata?: Record<string, any> | undefined;
|
|
542
|
+
id?: string | undefined;
|
|
543
543
|
headers?: Record<string, string> | undefined;
|
|
544
544
|
model?: string | undefined;
|
|
545
545
|
request?: Record<string, any> | undefined;
|
|
@@ -574,6 +574,7 @@ export declare function createAgenticLoopWorkflow<Tools extends ToolSet = ToolSe
|
|
|
574
574
|
};
|
|
575
575
|
}, {
|
|
576
576
|
output: {
|
|
577
|
+
steps: any[];
|
|
577
578
|
usage: {
|
|
578
579
|
inputTokens: number;
|
|
579
580
|
outputTokens: number;
|
|
@@ -581,7 +582,6 @@ export declare function createAgenticLoopWorkflow<Tools extends ToolSet = ToolSe
|
|
|
581
582
|
reasoningTokens?: number | undefined;
|
|
582
583
|
cachedInputTokens?: number | undefined;
|
|
583
584
|
};
|
|
584
|
-
steps: any[];
|
|
585
585
|
text?: string | undefined;
|
|
586
586
|
reasoning?: any[] | undefined;
|
|
587
587
|
sources?: any[] | undefined;
|
|
@@ -596,8 +596,8 @@ export declare function createAgenticLoopWorkflow<Tools extends ToolSet = ToolSe
|
|
|
596
596
|
};
|
|
597
597
|
messageId: string;
|
|
598
598
|
metadata: {
|
|
599
|
-
id?: string | undefined;
|
|
600
599
|
providerMetadata?: Record<string, any> | undefined;
|
|
600
|
+
id?: string | undefined;
|
|
601
601
|
headers?: Record<string, string> | undefined;
|
|
602
602
|
model?: string | undefined;
|
|
603
603
|
request?: Record<string, any> | undefined;
|
|
@@ -678,6 +678,7 @@ export declare function createAgenticLoopWorkflow<Tools extends ToolSet = ToolSe
|
|
|
678
678
|
}>;
|
|
679
679
|
steps: import("zod").ZodArray<import("zod").ZodAny, "many">;
|
|
680
680
|
}, "strip", import("zod").ZodTypeAny, {
|
|
681
|
+
steps: any[];
|
|
681
682
|
usage: {
|
|
682
683
|
inputTokens: number;
|
|
683
684
|
outputTokens: number;
|
|
@@ -685,7 +686,6 @@ export declare function createAgenticLoopWorkflow<Tools extends ToolSet = ToolSe
|
|
|
685
686
|
reasoningTokens?: number | undefined;
|
|
686
687
|
cachedInputTokens?: number | undefined;
|
|
687
688
|
};
|
|
688
|
-
steps: any[];
|
|
689
689
|
text?: string | undefined;
|
|
690
690
|
reasoning?: any[] | undefined;
|
|
691
691
|
sources?: any[] | undefined;
|
|
@@ -698,6 +698,7 @@ export declare function createAgenticLoopWorkflow<Tools extends ToolSet = ToolSe
|
|
|
698
698
|
staticToolResults?: any[] | undefined;
|
|
699
699
|
dynamicToolResults?: any[] | undefined;
|
|
700
700
|
}, {
|
|
701
|
+
steps: any[];
|
|
701
702
|
usage: {
|
|
702
703
|
inputTokens: number;
|
|
703
704
|
outputTokens: number;
|
|
@@ -705,7 +706,6 @@ export declare function createAgenticLoopWorkflow<Tools extends ToolSet = ToolSe
|
|
|
705
706
|
reasoningTokens?: number | undefined;
|
|
706
707
|
cachedInputTokens?: number | undefined;
|
|
707
708
|
};
|
|
708
|
-
steps: any[];
|
|
709
709
|
text?: string | undefined;
|
|
710
710
|
reasoning?: any[] | undefined;
|
|
711
711
|
sources?: any[] | undefined;
|
|
@@ -740,8 +740,8 @@ export declare function createAgenticLoopWorkflow<Tools extends ToolSet = ToolSe
|
|
|
740
740
|
headers: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>>;
|
|
741
741
|
request: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodAny>>;
|
|
742
742
|
}, "strip", import("zod").ZodTypeAny, {
|
|
743
|
-
id?: string | undefined;
|
|
744
743
|
providerMetadata?: Record<string, any> | undefined;
|
|
744
|
+
id?: string | undefined;
|
|
745
745
|
headers?: Record<string, string> | undefined;
|
|
746
746
|
model?: string | undefined;
|
|
747
747
|
request?: Record<string, any> | undefined;
|
|
@@ -753,8 +753,8 @@ export declare function createAgenticLoopWorkflow<Tools extends ToolSet = ToolSe
|
|
|
753
753
|
modelProvider: string;
|
|
754
754
|
} | undefined;
|
|
755
755
|
}, {
|
|
756
|
-
id?: string | undefined;
|
|
757
756
|
providerMetadata?: Record<string, any> | undefined;
|
|
757
|
+
id?: string | undefined;
|
|
758
758
|
headers?: Record<string, string> | undefined;
|
|
759
759
|
model?: string | undefined;
|
|
760
760
|
request?: Record<string, any> | undefined;
|
|
@@ -826,6 +826,7 @@ export declare function createAgenticLoopWorkflow<Tools extends ToolSet = ToolSe
|
|
|
826
826
|
}>;
|
|
827
827
|
}, "strip", import("zod").ZodTypeAny, {
|
|
828
828
|
output: {
|
|
829
|
+
steps: any[];
|
|
829
830
|
usage: {
|
|
830
831
|
inputTokens: number;
|
|
831
832
|
outputTokens: number;
|
|
@@ -833,7 +834,6 @@ export declare function createAgenticLoopWorkflow<Tools extends ToolSet = ToolSe
|
|
|
833
834
|
reasoningTokens?: number | undefined;
|
|
834
835
|
cachedInputTokens?: number | undefined;
|
|
835
836
|
};
|
|
836
|
-
steps: any[];
|
|
837
837
|
text?: string | undefined;
|
|
838
838
|
reasoning?: any[] | undefined;
|
|
839
839
|
sources?: any[] | undefined;
|
|
@@ -848,8 +848,8 @@ export declare function createAgenticLoopWorkflow<Tools extends ToolSet = ToolSe
|
|
|
848
848
|
};
|
|
849
849
|
messageId: string;
|
|
850
850
|
metadata: {
|
|
851
|
-
id?: string | undefined;
|
|
852
851
|
providerMetadata?: Record<string, any> | undefined;
|
|
852
|
+
id?: string | undefined;
|
|
853
853
|
headers?: Record<string, string> | undefined;
|
|
854
854
|
model?: string | undefined;
|
|
855
855
|
request?: Record<string, any> | undefined;
|
|
@@ -884,6 +884,7 @@ export declare function createAgenticLoopWorkflow<Tools extends ToolSet = ToolSe
|
|
|
884
884
|
};
|
|
885
885
|
}, {
|
|
886
886
|
output: {
|
|
887
|
+
steps: any[];
|
|
887
888
|
usage: {
|
|
888
889
|
inputTokens: number;
|
|
889
890
|
outputTokens: number;
|
|
@@ -891,7 +892,6 @@ export declare function createAgenticLoopWorkflow<Tools extends ToolSet = ToolSe
|
|
|
891
892
|
reasoningTokens?: number | undefined;
|
|
892
893
|
cachedInputTokens?: number | undefined;
|
|
893
894
|
};
|
|
894
|
-
steps: any[];
|
|
895
895
|
text?: string | undefined;
|
|
896
896
|
reasoning?: any[] | undefined;
|
|
897
897
|
sources?: any[] | undefined;
|
|
@@ -906,8 +906,8 @@ export declare function createAgenticLoopWorkflow<Tools extends ToolSet = ToolSe
|
|
|
906
906
|
};
|
|
907
907
|
messageId: string;
|
|
908
908
|
metadata: {
|
|
909
|
-
id?: string | undefined;
|
|
910
909
|
providerMetadata?: Record<string, any> | undefined;
|
|
910
|
+
id?: string | undefined;
|
|
911
911
|
headers?: Record<string, string> | undefined;
|
|
912
912
|
model?: string | undefined;
|
|
913
913
|
request?: Record<string, any> | undefined;
|
|
@@ -162,6 +162,7 @@ export declare const llmIterationOutputSchema: z.ZodObject<{
|
|
|
162
162
|
}>;
|
|
163
163
|
steps: z.ZodArray<z.ZodAny, "many">;
|
|
164
164
|
}, "strip", z.ZodTypeAny, {
|
|
165
|
+
steps: any[];
|
|
165
166
|
usage: {
|
|
166
167
|
inputTokens: number;
|
|
167
168
|
outputTokens: number;
|
|
@@ -169,7 +170,6 @@ export declare const llmIterationOutputSchema: z.ZodObject<{
|
|
|
169
170
|
reasoningTokens?: number | undefined;
|
|
170
171
|
cachedInputTokens?: number | undefined;
|
|
171
172
|
};
|
|
172
|
-
steps: any[];
|
|
173
173
|
text?: string | undefined;
|
|
174
174
|
reasoning?: any[] | undefined;
|
|
175
175
|
sources?: any[] | undefined;
|
|
@@ -182,6 +182,7 @@ export declare const llmIterationOutputSchema: z.ZodObject<{
|
|
|
182
182
|
staticToolResults?: any[] | undefined;
|
|
183
183
|
dynamicToolResults?: any[] | undefined;
|
|
184
184
|
}, {
|
|
185
|
+
steps: any[];
|
|
185
186
|
usage: {
|
|
186
187
|
inputTokens: number;
|
|
187
188
|
outputTokens: number;
|
|
@@ -189,7 +190,6 @@ export declare const llmIterationOutputSchema: z.ZodObject<{
|
|
|
189
190
|
reasoningTokens?: number | undefined;
|
|
190
191
|
cachedInputTokens?: number | undefined;
|
|
191
192
|
};
|
|
192
|
-
steps: any[];
|
|
193
193
|
text?: string | undefined;
|
|
194
194
|
reasoning?: any[] | undefined;
|
|
195
195
|
sources?: any[] | undefined;
|
|
@@ -224,8 +224,8 @@ export declare const llmIterationOutputSchema: z.ZodObject<{
|
|
|
224
224
|
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
225
225
|
request: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
226
226
|
}, "strip", z.ZodTypeAny, {
|
|
227
|
-
id?: string | undefined;
|
|
228
227
|
providerMetadata?: Record<string, any> | undefined;
|
|
228
|
+
id?: string | undefined;
|
|
229
229
|
headers?: Record<string, string> | undefined;
|
|
230
230
|
model?: string | undefined;
|
|
231
231
|
request?: Record<string, any> | undefined;
|
|
@@ -237,8 +237,8 @@ export declare const llmIterationOutputSchema: z.ZodObject<{
|
|
|
237
237
|
modelProvider: string;
|
|
238
238
|
} | undefined;
|
|
239
239
|
}, {
|
|
240
|
-
id?: string | undefined;
|
|
241
240
|
providerMetadata?: Record<string, any> | undefined;
|
|
241
|
+
id?: string | undefined;
|
|
242
242
|
headers?: Record<string, string> | undefined;
|
|
243
243
|
model?: string | undefined;
|
|
244
244
|
request?: Record<string, any> | undefined;
|
|
@@ -310,6 +310,7 @@ export declare const llmIterationOutputSchema: z.ZodObject<{
|
|
|
310
310
|
}>;
|
|
311
311
|
}, "strip", z.ZodTypeAny, {
|
|
312
312
|
output: {
|
|
313
|
+
steps: any[];
|
|
313
314
|
usage: {
|
|
314
315
|
inputTokens: number;
|
|
315
316
|
outputTokens: number;
|
|
@@ -317,7 +318,6 @@ export declare const llmIterationOutputSchema: z.ZodObject<{
|
|
|
317
318
|
reasoningTokens?: number | undefined;
|
|
318
319
|
cachedInputTokens?: number | undefined;
|
|
319
320
|
};
|
|
320
|
-
steps: any[];
|
|
321
321
|
text?: string | undefined;
|
|
322
322
|
reasoning?: any[] | undefined;
|
|
323
323
|
sources?: any[] | undefined;
|
|
@@ -332,8 +332,8 @@ export declare const llmIterationOutputSchema: z.ZodObject<{
|
|
|
332
332
|
};
|
|
333
333
|
messageId: string;
|
|
334
334
|
metadata: {
|
|
335
|
-
id?: string | undefined;
|
|
336
335
|
providerMetadata?: Record<string, any> | undefined;
|
|
336
|
+
id?: string | undefined;
|
|
337
337
|
headers?: Record<string, string> | undefined;
|
|
338
338
|
model?: string | undefined;
|
|
339
339
|
request?: Record<string, any> | undefined;
|
|
@@ -368,6 +368,7 @@ export declare const llmIterationOutputSchema: z.ZodObject<{
|
|
|
368
368
|
};
|
|
369
369
|
}, {
|
|
370
370
|
output: {
|
|
371
|
+
steps: any[];
|
|
371
372
|
usage: {
|
|
372
373
|
inputTokens: number;
|
|
373
374
|
outputTokens: number;
|
|
@@ -375,7 +376,6 @@ export declare const llmIterationOutputSchema: z.ZodObject<{
|
|
|
375
376
|
reasoningTokens?: number | undefined;
|
|
376
377
|
cachedInputTokens?: number | undefined;
|
|
377
378
|
};
|
|
378
|
-
steps: any[];
|
|
379
379
|
text?: string | undefined;
|
|
380
380
|
reasoning?: any[] | undefined;
|
|
381
381
|
sources?: any[] | undefined;
|
|
@@ -390,8 +390,8 @@ export declare const llmIterationOutputSchema: z.ZodObject<{
|
|
|
390
390
|
};
|
|
391
391
|
messageId: string;
|
|
392
392
|
metadata: {
|
|
393
|
-
id?: string | undefined;
|
|
394
393
|
providerMetadata?: Record<string, any> | undefined;
|
|
394
|
+
id?: string | undefined;
|
|
395
395
|
headers?: Record<string, string> | undefined;
|
|
396
396
|
model?: string | undefined;
|
|
397
397
|
request?: Record<string, any> | undefined;
|
package/dist/mastra/index.cjs
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkMSFEDB5Z_cjs = require('../chunk-MSFEDB5Z.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
Object.defineProperty(exports, "Mastra", {
|
|
8
8
|
enumerable: true,
|
|
9
|
-
get: function () { return
|
|
9
|
+
get: function () { return chunkMSFEDB5Z_cjs.Mastra; }
|
|
10
10
|
});
|
|
11
11
|
//# sourceMappingURL=index.cjs.map
|
|
12
12
|
//# sourceMappingURL=index.cjs.map
|
package/dist/mastra/index.js
CHANGED
package/dist/memory/index.cjs
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkQETEFQ7T_cjs = require('../chunk-QETEFQ7T.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
Object.defineProperty(exports, "MastraMemory", {
|
|
8
8
|
enumerable: true,
|
|
9
|
-
get: function () { return
|
|
9
|
+
get: function () { return chunkQETEFQ7T_cjs.MastraMemory; }
|
|
10
10
|
});
|
|
11
11
|
Object.defineProperty(exports, "MemoryProcessor", {
|
|
12
12
|
enumerable: true,
|
|
13
|
-
get: function () { return
|
|
13
|
+
get: function () { return chunkQETEFQ7T_cjs.MemoryProcessor; }
|
|
14
14
|
});
|
|
15
15
|
Object.defineProperty(exports, "memoryDefaultOptions", {
|
|
16
16
|
enumerable: true,
|
|
17
|
-
get: function () { return
|
|
17
|
+
get: function () { return chunkQETEFQ7T_cjs.memoryDefaultOptions; }
|
|
18
18
|
});
|
|
19
19
|
//# sourceMappingURL=index.cjs.map
|
|
20
20
|
//# sourceMappingURL=index.cjs.map
|
package/dist/memory/index.js
CHANGED
|
@@ -1,48 +1,48 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkZWWHTQ72_cjs = require('../chunk-ZWWHTQ72.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
Object.defineProperty(exports, "BatchPartsProcessor", {
|
|
8
8
|
enumerable: true,
|
|
9
|
-
get: function () { return
|
|
9
|
+
get: function () { return chunkZWWHTQ72_cjs.BatchPartsProcessor; }
|
|
10
10
|
});
|
|
11
11
|
Object.defineProperty(exports, "LanguageDetector", {
|
|
12
12
|
enumerable: true,
|
|
13
|
-
get: function () { return
|
|
13
|
+
get: function () { return chunkZWWHTQ72_cjs.LanguageDetector; }
|
|
14
14
|
});
|
|
15
15
|
Object.defineProperty(exports, "ModerationProcessor", {
|
|
16
16
|
enumerable: true,
|
|
17
|
-
get: function () { return
|
|
17
|
+
get: function () { return chunkZWWHTQ72_cjs.ModerationProcessor; }
|
|
18
18
|
});
|
|
19
19
|
Object.defineProperty(exports, "PIIDetector", {
|
|
20
20
|
enumerable: true,
|
|
21
|
-
get: function () { return
|
|
21
|
+
get: function () { return chunkZWWHTQ72_cjs.PIIDetector; }
|
|
22
22
|
});
|
|
23
23
|
Object.defineProperty(exports, "ProcessorState", {
|
|
24
24
|
enumerable: true,
|
|
25
|
-
get: function () { return
|
|
25
|
+
get: function () { return chunkZWWHTQ72_cjs.ProcessorState; }
|
|
26
26
|
});
|
|
27
27
|
Object.defineProperty(exports, "PromptInjectionDetector", {
|
|
28
28
|
enumerable: true,
|
|
29
|
-
get: function () { return
|
|
29
|
+
get: function () { return chunkZWWHTQ72_cjs.PromptInjectionDetector; }
|
|
30
30
|
});
|
|
31
31
|
Object.defineProperty(exports, "StructuredOutputProcessor", {
|
|
32
32
|
enumerable: true,
|
|
33
|
-
get: function () { return
|
|
33
|
+
get: function () { return chunkZWWHTQ72_cjs.StructuredOutputProcessor; }
|
|
34
34
|
});
|
|
35
35
|
Object.defineProperty(exports, "SystemPromptScrubber", {
|
|
36
36
|
enumerable: true,
|
|
37
|
-
get: function () { return
|
|
37
|
+
get: function () { return chunkZWWHTQ72_cjs.SystemPromptScrubber; }
|
|
38
38
|
});
|
|
39
39
|
Object.defineProperty(exports, "TokenLimiterProcessor", {
|
|
40
40
|
enumerable: true,
|
|
41
|
-
get: function () { return
|
|
41
|
+
get: function () { return chunkZWWHTQ72_cjs.TokenLimiterProcessor; }
|
|
42
42
|
});
|
|
43
43
|
Object.defineProperty(exports, "UnicodeNormalizer", {
|
|
44
44
|
enumerable: true,
|
|
45
|
-
get: function () { return
|
|
45
|
+
get: function () { return chunkZWWHTQ72_cjs.UnicodeNormalizer; }
|
|
46
46
|
});
|
|
47
47
|
//# sourceMappingURL=index.cjs.map
|
|
48
48
|
//# sourceMappingURL=index.cjs.map
|
package/dist/processors/index.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { BatchPartsProcessor, LanguageDetector, ModerationProcessor, PIIDetector, ProcessorState, PromptInjectionDetector, StructuredOutputProcessor, SystemPromptScrubber, TokenLimiterProcessor, UnicodeNormalizer } from '../chunk-
|
|
1
|
+
export { BatchPartsProcessor, LanguageDetector, ModerationProcessor, PIIDetector, ProcessorState, PromptInjectionDetector, StructuredOutputProcessor, SystemPromptScrubber, TokenLimiterProcessor, UnicodeNormalizer } from '../chunk-GSQD3QNR.js';
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
|
3
3
|
//# sourceMappingURL=index.js.map
|
package/dist/relevance/index.cjs
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkCSHVFDF6_cjs = require('../chunk-CSHVFDF6.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
Object.defineProperty(exports, "CohereRelevanceScorer", {
|
|
8
8
|
enumerable: true,
|
|
9
|
-
get: function () { return
|
|
9
|
+
get: function () { return chunkCSHVFDF6_cjs.CohereRelevanceScorer; }
|
|
10
10
|
});
|
|
11
11
|
Object.defineProperty(exports, "MastraAgentRelevanceScorer", {
|
|
12
12
|
enumerable: true,
|
|
13
|
-
get: function () { return
|
|
13
|
+
get: function () { return chunkCSHVFDF6_cjs.MastraAgentRelevanceScorer; }
|
|
14
14
|
});
|
|
15
15
|
Object.defineProperty(exports, "createSimilarityPrompt", {
|
|
16
16
|
enumerable: true,
|
|
17
|
-
get: function () { return
|
|
17
|
+
get: function () { return chunkCSHVFDF6_cjs.createSimilarityPrompt; }
|
|
18
18
|
});
|
|
19
19
|
//# sourceMappingURL=index.cjs.map
|
|
20
20
|
//# sourceMappingURL=index.cjs.map
|
package/dist/relevance/index.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { CohereRelevanceScorer, MastraAgentRelevanceScorer, createSimilarityPrompt } from '../chunk-
|
|
1
|
+
export { CohereRelevanceScorer, MastraAgentRelevanceScorer, createSimilarityPrompt } from '../chunk-4DWBTEHS.js';
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
|
3
3
|
//# sourceMappingURL=index.js.map
|
package/dist/scores/index.cjs
CHANGED
|
@@ -1,37 +1,37 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
var
|
|
3
|
+
var chunkDGL7I4HZ_cjs = require('../chunk-DGL7I4HZ.cjs');
|
|
4
|
+
var chunkW54LWXCG_cjs = require('../chunk-W54LWXCG.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
Object.defineProperty(exports, "MastraScorer", {
|
|
9
9
|
enumerable: true,
|
|
10
|
-
get: function () { return
|
|
10
|
+
get: function () { return chunkDGL7I4HZ_cjs.MastraScorer; }
|
|
11
11
|
});
|
|
12
12
|
Object.defineProperty(exports, "createScorer", {
|
|
13
13
|
enumerable: true,
|
|
14
|
-
get: function () { return
|
|
14
|
+
get: function () { return chunkDGL7I4HZ_cjs.createScorer; }
|
|
15
15
|
});
|
|
16
16
|
Object.defineProperty(exports, "runExperiment", {
|
|
17
17
|
enumerable: true,
|
|
18
|
-
get: function () { return
|
|
18
|
+
get: function () { return chunkDGL7I4HZ_cjs.runExperiment; }
|
|
19
19
|
});
|
|
20
20
|
Object.defineProperty(exports, "saveScorePayloadSchema", {
|
|
21
21
|
enumerable: true,
|
|
22
|
-
get: function () { return
|
|
22
|
+
get: function () { return chunkW54LWXCG_cjs.saveScorePayloadSchema; }
|
|
23
23
|
});
|
|
24
24
|
Object.defineProperty(exports, "scoreResultSchema", {
|
|
25
25
|
enumerable: true,
|
|
26
|
-
get: function () { return
|
|
26
|
+
get: function () { return chunkW54LWXCG_cjs.scoreResultSchema; }
|
|
27
27
|
});
|
|
28
28
|
Object.defineProperty(exports, "scoringExtractStepResultSchema", {
|
|
29
29
|
enumerable: true,
|
|
30
|
-
get: function () { return
|
|
30
|
+
get: function () { return chunkW54LWXCG_cjs.scoringExtractStepResultSchema; }
|
|
31
31
|
});
|
|
32
32
|
Object.defineProperty(exports, "scoringValueSchema", {
|
|
33
33
|
enumerable: true,
|
|
34
|
-
get: function () { return
|
|
34
|
+
get: function () { return chunkW54LWXCG_cjs.scoringValueSchema; }
|
|
35
35
|
});
|
|
36
36
|
//# sourceMappingURL=index.cjs.map
|
|
37
37
|
//# sourceMappingURL=index.cjs.map
|
package/dist/scores/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { MastraScorer, createScorer, runExperiment } from '../chunk-
|
|
2
|
-
export { saveScorePayloadSchema, scoreResultSchema, scoringExtractStepResultSchema, scoringValueSchema } from '../chunk-
|
|
1
|
+
export { MastraScorer, createScorer, runExperiment } from '../chunk-HHPXFPNO.js';
|
|
2
|
+
export { saveScorePayloadSchema, scoreResultSchema, scoringExtractStepResultSchema, scoringValueSchema } from '../chunk-EMTBCXQQ.js';
|
|
3
3
|
//# sourceMappingURL=index.js.map
|
|
4
4
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var
|
|
3
|
+
var chunkQLPSR67Y_cjs = require('../../chunk-QLPSR67Y.cjs');
|
|
4
|
+
var chunkW54LWXCG_cjs = require('../../chunk-W54LWXCG.cjs');
|
|
5
|
+
var chunkRDD5YB3T_cjs = require('../../chunk-RDD5YB3T.cjs');
|
|
6
6
|
var chunk5NTO7S5I_cjs = require('../../chunk-5NTO7S5I.cjs');
|
|
7
7
|
var pMap = require('p-map');
|
|
8
8
|
var z = require('zod');
|
|
@@ -76,7 +76,7 @@ function normalizeMessageContent(content) {
|
|
|
76
76
|
role: "user",
|
|
77
77
|
parts: content.map((part) => ({ type: part.type, text: part.text }))
|
|
78
78
|
};
|
|
79
|
-
const converted =
|
|
79
|
+
const converted = chunkRDD5YB3T_cjs.convertMessages(tempMessage).to("AIV4.UI");
|
|
80
80
|
return converted[0]?.content || "";
|
|
81
81
|
}
|
|
82
82
|
function convertToUIMessage(message, createdAt) {
|
|
@@ -94,7 +94,7 @@ function convertToUIMessage(message, createdAt) {
|
|
|
94
94
|
parts: message.content.map((part) => ({ type: part.type, text: part.text }))
|
|
95
95
|
};
|
|
96
96
|
}
|
|
97
|
-
const converted =
|
|
97
|
+
const converted = chunkRDD5YB3T_cjs.convertMessages(messageInput).to("AIV4.UI");
|
|
98
98
|
const result = converted[0];
|
|
99
99
|
if (!result) {
|
|
100
100
|
throw new Error("Failed to convert message");
|
|
@@ -234,7 +234,7 @@ function transformTraceToScorerInputAndOutput(trace) {
|
|
|
234
234
|
}
|
|
235
235
|
|
|
236
236
|
// src/scores/scoreTraces/scoreTracesWorkflow.ts
|
|
237
|
-
var getTraceStep =
|
|
237
|
+
var getTraceStep = chunkQLPSR67Y_cjs.createStep({
|
|
238
238
|
id: "__process-trace-scoring",
|
|
239
239
|
inputSchema: z__default.default.object({
|
|
240
240
|
targets: z__default.default.array(
|
|
@@ -362,7 +362,7 @@ async function runScorerOnTarget({
|
|
|
362
362
|
await attachScoreToSpan({ storage, span, scoreRecord: savedScoreRecord });
|
|
363
363
|
}
|
|
364
364
|
async function validateAndSaveScore({ storage, scorerResult }) {
|
|
365
|
-
const payloadToSave =
|
|
365
|
+
const payloadToSave = chunkW54LWXCG_cjs.saveScorePayloadSchema.parse(scorerResult);
|
|
366
366
|
const result = await storage.saveScore(payloadToSave);
|
|
367
367
|
return result.score;
|
|
368
368
|
}
|
|
@@ -404,7 +404,7 @@ async function attachScoreToSpan({
|
|
|
404
404
|
updates: { links: [...existingLinks, link] }
|
|
405
405
|
});
|
|
406
406
|
}
|
|
407
|
-
var scoreTracesWorkflow =
|
|
407
|
+
var scoreTracesWorkflow = chunkQLPSR67Y_cjs.createWorkflow({
|
|
408
408
|
id: "__batch-scoring-traces",
|
|
409
409
|
inputSchema: z__default.default.object({
|
|
410
410
|
targets: z__default.default.array(
|