@mastra/core 0.17.2-alpha.0 → 0.18.0-alpha.2
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 +25 -0
- package/dist/agent/agent.d.ts +4 -4
- package/dist/agent/agent.d.ts.map +1 -1
- package/dist/agent/agent.types.d.ts +1 -1
- package/dist/agent/agent.types.d.ts.map +1 -1
- package/dist/agent/index.cjs +8 -8
- package/dist/agent/index.js +1 -1
- package/dist/agent/input-processor/index.cjs +6 -6
- package/dist/agent/input-processor/index.js +1 -1
- package/dist/agent/types.d.ts +8 -6
- package/dist/agent/types.d.ts.map +1 -1
- package/dist/agent/workflows/prepare-stream/index.d.ts +2 -1
- package/dist/agent/workflows/prepare-stream/index.d.ts.map +1 -1
- package/dist/agent/workflows/prepare-stream/map-results-step.d.ts +2 -1
- package/dist/agent/workflows/prepare-stream/map-results-step.d.ts.map +1 -1
- package/dist/agent/workflows/prepare-stream/prepare-memory-step.d.ts +2 -1
- package/dist/agent/workflows/prepare-stream/prepare-memory-step.d.ts.map +1 -1
- package/dist/{chunk-RF32ODBL.js → chunk-4VMYYXFD.js} +7 -43
- package/dist/chunk-4VMYYXFD.js.map +1 -0
- package/dist/{chunk-R655GQ3Z.js → chunk-5GZUTAC3.js} +27 -23
- package/dist/chunk-5GZUTAC3.js.map +1 -0
- package/dist/{chunk-DK7N45JH.cjs → chunk-6V4L7V2Q.cjs} +27 -22
- package/dist/chunk-6V4L7V2Q.cjs.map +1 -0
- package/dist/{chunk-RGJ7F32F.cjs → chunk-BFLZKJAS.cjs} +12 -8
- package/dist/chunk-BFLZKJAS.cjs.map +1 -0
- package/dist/{chunk-3N57EBJB.cjs → chunk-GCUTIOQR.cjs} +6 -6
- package/dist/{chunk-3N57EBJB.cjs.map → chunk-GCUTIOQR.cjs.map} +1 -1
- package/dist/{chunk-XSZYAAUC.js → chunk-GGMAYEJY.js} +8 -4
- package/dist/chunk-GGMAYEJY.js.map +1 -0
- package/dist/{chunk-L77INLRG.js → chunk-ROT2EVXS.js} +3 -3
- package/dist/{chunk-L77INLRG.js.map → chunk-ROT2EVXS.js.map} +1 -1
- package/dist/{chunk-TD2CGJTC.cjs → chunk-SVZWWLGF.cjs} +4 -4
- package/dist/{chunk-TD2CGJTC.cjs.map → chunk-SVZWWLGF.cjs.map} +1 -1
- package/dist/{chunk-HBOOZ4W3.cjs → chunk-SYLRGTK6.cjs} +11 -47
- package/dist/chunk-SYLRGTK6.cjs.map +1 -0
- package/dist/{chunk-JXKSCEDW.js → chunk-TKIKIC36.js} +4 -4
- package/dist/{chunk-JXKSCEDW.js.map → chunk-TKIKIC36.js.map} +1 -1
- package/dist/index.cjs +21 -17
- package/dist/index.js +4 -4
- package/dist/loop/index.cjs +2 -2
- package/dist/loop/index.js +1 -1
- package/dist/loop/network/index.d.ts +6 -6
- package/dist/mastra/index.cjs +2 -2
- package/dist/mastra/index.js +1 -1
- package/dist/network/vNext/index.cjs +27 -27
- package/dist/network/vNext/index.d.ts +17 -17
- package/dist/network/vNext/index.js +1 -1
- package/dist/processors/index.cjs +10 -10
- package/dist/processors/index.js +1 -1
- package/dist/relevance/index.cjs +4 -4
- package/dist/relevance/index.js +1 -1
- package/dist/scores/base.d.ts +24 -1
- package/dist/scores/base.d.ts.map +1 -1
- package/dist/scores/index.cjs +8 -8
- package/dist/scores/index.js +1 -1
- package/dist/stream/index.cjs +4 -4
- package/dist/stream/index.js +1 -1
- package/dist/workflows/default.d.ts.map +1 -1
- package/dist/workflows/evented/index.cjs +10 -10
- package/dist/workflows/evented/index.js +1 -1
- package/dist/workflows/evented/step-executor.d.ts.map +1 -1
- package/dist/workflows/index.cjs +14 -10
- 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/step.d.ts +4 -2
- package/dist/workflows/step.d.ts.map +1 -1
- package/package.json +1 -1
- package/dist/chunk-DK7N45JH.cjs.map +0 -1
- package/dist/chunk-HBOOZ4W3.cjs.map +0 -1
- package/dist/chunk-R655GQ3Z.js.map +0 -1
- package/dist/chunk-RF32ODBL.js.map +0 -1
- package/dist/chunk-RGJ7F32F.cjs.map +0 -1
- package/dist/chunk-XSZYAAUC.js.map +0 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunk6V4L7V2Q_cjs = require('../../chunk-6V4L7V2Q.cjs');
|
|
4
4
|
var chunkABJOUEVA_cjs = require('../../chunk-ABJOUEVA.cjs');
|
|
5
5
|
var chunkWYBYCVS3_cjs = require('../../chunk-WYBYCVS3.cjs');
|
|
6
6
|
var chunkGPWMM745_cjs = require('../../chunk-GPWMM745.cjs');
|
|
@@ -212,7 +212,7 @@ var NewAgentNetwork = class extends chunk4L3P3PCP_cjs.MastraBase {
|
|
|
212
212
|
|
|
213
213
|
Keep in mind that the user only sees the final result of the task. When reviewing completion, you should know that the user will not see the intermediate results.
|
|
214
214
|
`;
|
|
215
|
-
return new
|
|
215
|
+
return new chunk6V4L7V2Q_cjs.Agent({
|
|
216
216
|
name: "routing-agent",
|
|
217
217
|
instructions,
|
|
218
218
|
model: this.#model,
|
|
@@ -228,7 +228,7 @@ var NewAgentNetwork = class extends chunk4L3P3PCP_cjs.MastraBase {
|
|
|
228
228
|
resourceId
|
|
229
229
|
}) {
|
|
230
230
|
const networkWorkflow = this.createWorkflow({ runtimeContext });
|
|
231
|
-
const finalStep =
|
|
231
|
+
const finalStep = chunk6V4L7V2Q_cjs.createStep({
|
|
232
232
|
id: "final-step",
|
|
233
233
|
inputSchema: networkWorkflow.outputSchema,
|
|
234
234
|
outputSchema: networkWorkflow.outputSchema,
|
|
@@ -242,12 +242,12 @@ var NewAgentNetwork = class extends chunk4L3P3PCP_cjs.MastraBase {
|
|
|
242
242
|
return inputData;
|
|
243
243
|
}
|
|
244
244
|
});
|
|
245
|
-
const mainWorkflow =
|
|
245
|
+
const mainWorkflow = chunk6V4L7V2Q_cjs.createWorkflow({
|
|
246
246
|
id: "Agent-Network-Main-Workflow",
|
|
247
247
|
inputSchema: zod.z.object({
|
|
248
248
|
iteration: zod.z.number(),
|
|
249
249
|
task: zod.z.string(),
|
|
250
|
-
resourceType:
|
|
250
|
+
resourceType: chunk6V4L7V2Q_cjs.RESOURCE_TYPES,
|
|
251
251
|
threadId: zod.z.string().optional(),
|
|
252
252
|
threadResourceId: zod.z.string().optional()
|
|
253
253
|
}),
|
|
@@ -287,7 +287,7 @@ var NewAgentNetwork = class extends chunk4L3P3PCP_cjs.MastraBase {
|
|
|
287
287
|
resourceId
|
|
288
288
|
}) {
|
|
289
289
|
const networkWorkflow = this.createWorkflow({ runtimeContext });
|
|
290
|
-
const finalStep =
|
|
290
|
+
const finalStep = chunk6V4L7V2Q_cjs.createStep({
|
|
291
291
|
id: "final-step",
|
|
292
292
|
inputSchema: networkWorkflow.outputSchema,
|
|
293
293
|
outputSchema: networkWorkflow.outputSchema,
|
|
@@ -301,13 +301,13 @@ var NewAgentNetwork = class extends chunk4L3P3PCP_cjs.MastraBase {
|
|
|
301
301
|
return inputData;
|
|
302
302
|
}
|
|
303
303
|
});
|
|
304
|
-
const mainWorkflow =
|
|
304
|
+
const mainWorkflow = chunk6V4L7V2Q_cjs.createWorkflow({
|
|
305
305
|
id: "Agent-Network-Main-Workflow",
|
|
306
306
|
inputSchema: zod.z.object({
|
|
307
307
|
iteration: zod.z.number(),
|
|
308
308
|
task: zod.z.string(),
|
|
309
309
|
resourceId: zod.z.string(),
|
|
310
|
-
resourceType:
|
|
310
|
+
resourceType: chunk6V4L7V2Q_cjs.RESOURCE_TYPES,
|
|
311
311
|
result: zod.z.string().optional(),
|
|
312
312
|
threadId: zod.z.string().optional(),
|
|
313
313
|
threadResourceId: zod.z.string().optional(),
|
|
@@ -317,7 +317,7 @@ var NewAgentNetwork = class extends chunk4L3P3PCP_cjs.MastraBase {
|
|
|
317
317
|
outputSchema: zod.z.object({
|
|
318
318
|
task: zod.z.string(),
|
|
319
319
|
resourceId: zod.z.string(),
|
|
320
|
-
resourceType:
|
|
320
|
+
resourceType: chunk6V4L7V2Q_cjs.RESOURCE_TYPES,
|
|
321
321
|
prompt: zod.z.string(),
|
|
322
322
|
result: zod.z.string(),
|
|
323
323
|
isComplete: zod.z.boolean().optional(),
|
|
@@ -351,12 +351,12 @@ var NewAgentNetwork = class extends chunk4L3P3PCP_cjs.MastraBase {
|
|
|
351
351
|
createWorkflow({ runtimeContext }) {
|
|
352
352
|
const runId = this.#mastra?.generateId() || crypto.randomUUID();
|
|
353
353
|
const runtimeContextToUse = runtimeContext || new chunkGPWMM745_cjs.RuntimeContext();
|
|
354
|
-
const routingStep =
|
|
354
|
+
const routingStep = chunk6V4L7V2Q_cjs.createStep({
|
|
355
355
|
id: "routing-step",
|
|
356
356
|
inputSchema: zod.z.object({
|
|
357
357
|
task: zod.z.string(),
|
|
358
358
|
resourceId: zod.z.string(),
|
|
359
|
-
resourceType:
|
|
359
|
+
resourceType: chunk6V4L7V2Q_cjs.RESOURCE_TYPES,
|
|
360
360
|
result: zod.z.string().optional(),
|
|
361
361
|
iteration: zod.z.number(),
|
|
362
362
|
threadId: zod.z.string().optional(),
|
|
@@ -367,7 +367,7 @@ var NewAgentNetwork = class extends chunk4L3P3PCP_cjs.MastraBase {
|
|
|
367
367
|
outputSchema: zod.z.object({
|
|
368
368
|
task: zod.z.string(),
|
|
369
369
|
resourceId: zod.z.string(),
|
|
370
|
-
resourceType:
|
|
370
|
+
resourceType: chunk6V4L7V2Q_cjs.RESOURCE_TYPES,
|
|
371
371
|
prompt: zod.z.string(),
|
|
372
372
|
result: zod.z.string(),
|
|
373
373
|
isComplete: zod.z.boolean().optional(),
|
|
@@ -456,7 +456,7 @@ ${completionResult.object.finalResult}` : ""}
|
|
|
456
456
|
const options = {
|
|
457
457
|
output: zod.z.object({
|
|
458
458
|
resourceId: zod.z.string(),
|
|
459
|
-
resourceType:
|
|
459
|
+
resourceType: chunk6V4L7V2Q_cjs.RESOURCE_TYPES,
|
|
460
460
|
prompt: zod.z.string(),
|
|
461
461
|
selectionReason: zod.z.string()
|
|
462
462
|
}),
|
|
@@ -481,12 +481,12 @@ ${completionResult.object.finalResult}` : ""}
|
|
|
481
481
|
};
|
|
482
482
|
}
|
|
483
483
|
});
|
|
484
|
-
const agentStep =
|
|
484
|
+
const agentStep = chunk6V4L7V2Q_cjs.createStep({
|
|
485
485
|
id: "agent-step",
|
|
486
486
|
inputSchema: zod.z.object({
|
|
487
487
|
task: zod.z.string(),
|
|
488
488
|
resourceId: zod.z.string(),
|
|
489
|
-
resourceType:
|
|
489
|
+
resourceType: chunk6V4L7V2Q_cjs.RESOURCE_TYPES,
|
|
490
490
|
prompt: zod.z.string(),
|
|
491
491
|
result: zod.z.string(),
|
|
492
492
|
isComplete: zod.z.boolean().optional(),
|
|
@@ -496,7 +496,7 @@ ${completionResult.object.finalResult}` : ""}
|
|
|
496
496
|
outputSchema: zod.z.object({
|
|
497
497
|
task: zod.z.string(),
|
|
498
498
|
resourceId: zod.z.string(),
|
|
499
|
-
resourceType:
|
|
499
|
+
resourceType: chunk6V4L7V2Q_cjs.RESOURCE_TYPES,
|
|
500
500
|
result: zod.z.string(),
|
|
501
501
|
isComplete: zod.z.boolean().optional(),
|
|
502
502
|
iteration: zod.z.number()
|
|
@@ -617,12 +617,12 @@ ${completionResult.object.finalResult}` : ""}
|
|
|
617
617
|
};
|
|
618
618
|
}
|
|
619
619
|
});
|
|
620
|
-
const workflowStep =
|
|
620
|
+
const workflowStep = chunk6V4L7V2Q_cjs.createStep({
|
|
621
621
|
id: "workflow-step",
|
|
622
622
|
inputSchema: zod.z.object({
|
|
623
623
|
task: zod.z.string(),
|
|
624
624
|
resourceId: zod.z.string(),
|
|
625
|
-
resourceType:
|
|
625
|
+
resourceType: chunk6V4L7V2Q_cjs.RESOURCE_TYPES,
|
|
626
626
|
prompt: zod.z.string(),
|
|
627
627
|
result: zod.z.string(),
|
|
628
628
|
isComplete: zod.z.boolean().optional(),
|
|
@@ -632,7 +632,7 @@ ${completionResult.object.finalResult}` : ""}
|
|
|
632
632
|
outputSchema: zod.z.object({
|
|
633
633
|
task: zod.z.string(),
|
|
634
634
|
resourceId: zod.z.string(),
|
|
635
|
-
resourceType:
|
|
635
|
+
resourceType: chunk6V4L7V2Q_cjs.RESOURCE_TYPES,
|
|
636
636
|
result: zod.z.string(),
|
|
637
637
|
isComplete: zod.z.boolean().optional(),
|
|
638
638
|
iteration: zod.z.number()
|
|
@@ -739,12 +739,12 @@ ${completionResult.object.finalResult}` : ""}
|
|
|
739
739
|
};
|
|
740
740
|
}
|
|
741
741
|
});
|
|
742
|
-
const toolStep =
|
|
742
|
+
const toolStep = chunk6V4L7V2Q_cjs.createStep({
|
|
743
743
|
id: "toolStep",
|
|
744
744
|
inputSchema: zod.z.object({
|
|
745
745
|
task: zod.z.string(),
|
|
746
746
|
resourceId: zod.z.string(),
|
|
747
|
-
resourceType:
|
|
747
|
+
resourceType: chunk6V4L7V2Q_cjs.RESOURCE_TYPES,
|
|
748
748
|
prompt: zod.z.string(),
|
|
749
749
|
result: zod.z.string(),
|
|
750
750
|
isComplete: zod.z.boolean().optional(),
|
|
@@ -754,7 +754,7 @@ ${completionResult.object.finalResult}` : ""}
|
|
|
754
754
|
outputSchema: zod.z.object({
|
|
755
755
|
task: zod.z.string(),
|
|
756
756
|
resourceId: zod.z.string(),
|
|
757
|
-
resourceType:
|
|
757
|
+
resourceType: chunk6V4L7V2Q_cjs.RESOURCE_TYPES,
|
|
758
758
|
result: zod.z.string(),
|
|
759
759
|
isComplete: zod.z.boolean().optional(),
|
|
760
760
|
iteration: zod.z.number()
|
|
@@ -811,12 +811,12 @@ ${completionResult.object.finalResult}` : ""}
|
|
|
811
811
|
};
|
|
812
812
|
}
|
|
813
813
|
});
|
|
814
|
-
const finishStep =
|
|
814
|
+
const finishStep = chunk6V4L7V2Q_cjs.createStep({
|
|
815
815
|
id: "finish-step",
|
|
816
816
|
inputSchema: zod.z.object({
|
|
817
817
|
task: zod.z.string(),
|
|
818
818
|
resourceId: zod.z.string(),
|
|
819
|
-
resourceType:
|
|
819
|
+
resourceType: chunk6V4L7V2Q_cjs.RESOURCE_TYPES,
|
|
820
820
|
prompt: zod.z.string(),
|
|
821
821
|
result: zod.z.string(),
|
|
822
822
|
isComplete: zod.z.boolean().optional(),
|
|
@@ -838,12 +838,12 @@ ${completionResult.object.finalResult}` : ""}
|
|
|
838
838
|
};
|
|
839
839
|
}
|
|
840
840
|
});
|
|
841
|
-
const networkWorkflow =
|
|
841
|
+
const networkWorkflow = chunk6V4L7V2Q_cjs.createWorkflow({
|
|
842
842
|
id: "Agent-Network-Outer-Workflow",
|
|
843
843
|
inputSchema: zod.z.object({
|
|
844
844
|
task: zod.z.string(),
|
|
845
845
|
resourceId: zod.z.string(),
|
|
846
|
-
resourceType:
|
|
846
|
+
resourceType: chunk6V4L7V2Q_cjs.RESOURCE_TYPES,
|
|
847
847
|
result: zod.z.string().optional(),
|
|
848
848
|
iteration: zod.z.number(),
|
|
849
849
|
threadId: zod.z.string().optional(),
|
|
@@ -854,7 +854,7 @@ ${completionResult.object.finalResult}` : ""}
|
|
|
854
854
|
outputSchema: zod.z.object({
|
|
855
855
|
task: zod.z.string(),
|
|
856
856
|
resourceId: zod.z.string(),
|
|
857
|
-
resourceType:
|
|
857
|
+
resourceType: chunk6V4L7V2Q_cjs.RESOURCE_TYPES,
|
|
858
858
|
prompt: zod.z.string(),
|
|
859
859
|
result: zod.z.string(),
|
|
860
860
|
isComplete: zod.z.boolean().optional(),
|
|
@@ -59,7 +59,7 @@ export declare class NewAgentNetwork extends MastraBase {
|
|
|
59
59
|
prompt: string;
|
|
60
60
|
iteration: number;
|
|
61
61
|
task: string;
|
|
62
|
-
resourceType: "none" | "tool" | "
|
|
62
|
+
resourceType: "none" | "tool" | "agent" | "workflow";
|
|
63
63
|
isOneOff: boolean;
|
|
64
64
|
threadId?: string | undefined;
|
|
65
65
|
threadResourceId?: string | undefined;
|
|
@@ -69,7 +69,7 @@ export declare class NewAgentNetwork extends MastraBase {
|
|
|
69
69
|
input: {
|
|
70
70
|
iteration: number;
|
|
71
71
|
task: string;
|
|
72
|
-
resourceType: "none" | "tool" | "
|
|
72
|
+
resourceType: "none" | "tool" | "agent" | "workflow";
|
|
73
73
|
threadId?: string | undefined;
|
|
74
74
|
threadResourceId?: string | undefined;
|
|
75
75
|
};
|
|
@@ -98,7 +98,7 @@ export declare class NewAgentNetwork extends MastraBase {
|
|
|
98
98
|
resourceId: string;
|
|
99
99
|
iteration: number;
|
|
100
100
|
task: string;
|
|
101
|
-
resourceType: "none" | "tool" | "
|
|
101
|
+
resourceType: "none" | "tool" | "agent" | "workflow";
|
|
102
102
|
isOneOff: boolean;
|
|
103
103
|
verboseIntrospection: boolean;
|
|
104
104
|
threadId?: string | undefined;
|
|
@@ -108,7 +108,7 @@ export declare class NewAgentNetwork extends MastraBase {
|
|
|
108
108
|
resourceId: string;
|
|
109
109
|
iteration: number;
|
|
110
110
|
task: string;
|
|
111
|
-
resourceType: "none" | "tool" | "
|
|
111
|
+
resourceType: "none" | "tool" | "agent" | "workflow";
|
|
112
112
|
isOneOff: boolean;
|
|
113
113
|
verboseIntrospection: boolean;
|
|
114
114
|
threadId?: string | undefined;
|
|
@@ -129,7 +129,7 @@ export declare class NewAgentNetwork extends MastraBase {
|
|
|
129
129
|
prompt: string;
|
|
130
130
|
iteration: number;
|
|
131
131
|
task: string;
|
|
132
|
-
resourceType: "none" | "tool" | "
|
|
132
|
+
resourceType: "none" | "tool" | "agent" | "workflow";
|
|
133
133
|
isComplete?: boolean | undefined;
|
|
134
134
|
completionReason?: string | undefined;
|
|
135
135
|
}, {
|
|
@@ -138,7 +138,7 @@ export declare class NewAgentNetwork extends MastraBase {
|
|
|
138
138
|
prompt: string;
|
|
139
139
|
iteration: number;
|
|
140
140
|
task: string;
|
|
141
|
-
resourceType: "none" | "tool" | "
|
|
141
|
+
resourceType: "none" | "tool" | "agent" | "workflow";
|
|
142
142
|
isComplete?: boolean | undefined;
|
|
143
143
|
completionReason?: string | undefined;
|
|
144
144
|
}>, import("../..").Step<string, any, any, any, any, import("../..").DefaultEngineType>[]>>;
|
|
@@ -159,7 +159,7 @@ export declare class NewAgentNetwork extends MastraBase {
|
|
|
159
159
|
resourceId: string;
|
|
160
160
|
iteration: number;
|
|
161
161
|
task: string;
|
|
162
|
-
resourceType: "none" | "tool" | "
|
|
162
|
+
resourceType: "none" | "tool" | "agent" | "workflow";
|
|
163
163
|
isOneOff: boolean;
|
|
164
164
|
verboseIntrospection: boolean;
|
|
165
165
|
threadId?: string | undefined;
|
|
@@ -169,7 +169,7 @@ export declare class NewAgentNetwork extends MastraBase {
|
|
|
169
169
|
resourceId: string;
|
|
170
170
|
iteration: number;
|
|
171
171
|
task: string;
|
|
172
|
-
resourceType: "none" | "tool" | "
|
|
172
|
+
resourceType: "none" | "tool" | "agent" | "workflow";
|
|
173
173
|
isOneOff: boolean;
|
|
174
174
|
verboseIntrospection: boolean;
|
|
175
175
|
threadId?: string | undefined;
|
|
@@ -193,7 +193,7 @@ export declare class NewAgentNetwork extends MastraBase {
|
|
|
193
193
|
prompt: string;
|
|
194
194
|
iteration: number;
|
|
195
195
|
task: string;
|
|
196
|
-
resourceType: "none" | "tool" | "
|
|
196
|
+
resourceType: "none" | "tool" | "agent" | "workflow";
|
|
197
197
|
isOneOff: boolean;
|
|
198
198
|
threadId?: string | undefined;
|
|
199
199
|
threadResourceId?: string | undefined;
|
|
@@ -205,7 +205,7 @@ export declare class NewAgentNetwork extends MastraBase {
|
|
|
205
205
|
prompt: string;
|
|
206
206
|
iteration: number;
|
|
207
207
|
task: string;
|
|
208
|
-
resourceType: "none" | "tool" | "
|
|
208
|
+
resourceType: "none" | "tool" | "agent" | "workflow";
|
|
209
209
|
isOneOff: boolean;
|
|
210
210
|
threadId?: string | undefined;
|
|
211
211
|
threadResourceId?: string | undefined;
|
|
@@ -225,7 +225,7 @@ export declare class NewAgentNetwork extends MastraBase {
|
|
|
225
225
|
resourceId: string;
|
|
226
226
|
iteration: number;
|
|
227
227
|
task: string;
|
|
228
|
-
resourceType: "none" | "tool" | "
|
|
228
|
+
resourceType: "none" | "tool" | "agent" | "workflow";
|
|
229
229
|
isOneOff: boolean;
|
|
230
230
|
verboseIntrospection: boolean;
|
|
231
231
|
threadId?: string | undefined;
|
|
@@ -235,7 +235,7 @@ export declare class NewAgentNetwork extends MastraBase {
|
|
|
235
235
|
resourceId: string;
|
|
236
236
|
iteration: number;
|
|
237
237
|
task: string;
|
|
238
|
-
resourceType: "none" | "tool" | "
|
|
238
|
+
resourceType: "none" | "tool" | "agent" | "workflow";
|
|
239
239
|
isOneOff: boolean;
|
|
240
240
|
verboseIntrospection: boolean;
|
|
241
241
|
threadId?: string | undefined;
|
|
@@ -250,7 +250,7 @@ export declare class NewAgentNetwork extends MastraBase {
|
|
|
250
250
|
task: string;
|
|
251
251
|
result: string;
|
|
252
252
|
resourceId: string;
|
|
253
|
-
resourceType: "none" | "tool" | "
|
|
253
|
+
resourceType: "none" | "tool" | "agent" | "workflow";
|
|
254
254
|
}>;
|
|
255
255
|
stream(messages: MessageListInput, { runtimeContext, threadId, resourceId, }: {
|
|
256
256
|
runtimeContext?: RuntimeContext;
|
|
@@ -272,7 +272,7 @@ export declare class NewAgentNetwork extends MastraBase {
|
|
|
272
272
|
resourceId: string;
|
|
273
273
|
iteration: number;
|
|
274
274
|
task: string;
|
|
275
|
-
resourceType: "none" | "tool" | "
|
|
275
|
+
resourceType: "none" | "tool" | "agent" | "workflow";
|
|
276
276
|
isOneOff: boolean;
|
|
277
277
|
verboseIntrospection: boolean;
|
|
278
278
|
threadId?: string | undefined;
|
|
@@ -282,7 +282,7 @@ export declare class NewAgentNetwork extends MastraBase {
|
|
|
282
282
|
resourceId: string;
|
|
283
283
|
iteration: number;
|
|
284
284
|
task: string;
|
|
285
|
-
resourceType: "none" | "tool" | "
|
|
285
|
+
resourceType: "none" | "tool" | "agent" | "workflow";
|
|
286
286
|
isOneOff: boolean;
|
|
287
287
|
verboseIntrospection: boolean;
|
|
288
288
|
threadId?: string | undefined;
|
|
@@ -306,7 +306,7 @@ export declare class NewAgentNetwork extends MastraBase {
|
|
|
306
306
|
prompt: string;
|
|
307
307
|
iteration: number;
|
|
308
308
|
task: string;
|
|
309
|
-
resourceType: "none" | "tool" | "
|
|
309
|
+
resourceType: "none" | "tool" | "agent" | "workflow";
|
|
310
310
|
isOneOff: boolean;
|
|
311
311
|
threadId?: string | undefined;
|
|
312
312
|
threadResourceId?: string | undefined;
|
|
@@ -318,7 +318,7 @@ export declare class NewAgentNetwork extends MastraBase {
|
|
|
318
318
|
prompt: string;
|
|
319
319
|
iteration: number;
|
|
320
320
|
task: string;
|
|
321
|
-
resourceType: "none" | "tool" | "
|
|
321
|
+
resourceType: "none" | "tool" | "agent" | "workflow";
|
|
322
322
|
isOneOff: boolean;
|
|
323
323
|
threadId?: string | undefined;
|
|
324
324
|
threadResourceId?: string | undefined;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Agent, createStep, createWorkflow, RESOURCE_TYPES } from '../../chunk-
|
|
1
|
+
import { Agent, createStep, createWorkflow, RESOURCE_TYPES } from '../../chunk-5GZUTAC3.js';
|
|
2
2
|
import { EMITTER_SYMBOL } from '../../chunk-NLNKQD2T.js';
|
|
3
3
|
import { MessageList } from '../../chunk-CIPXOPLS.js';
|
|
4
4
|
import { RuntimeContext } from '../../chunk-HLRWYUFN.js';
|
|
@@ -1,44 +1,44 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunk6V4L7V2Q_cjs = require('../chunk-6V4L7V2Q.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 chunk6V4L7V2Q_cjs.BatchPartsProcessor; }
|
|
10
10
|
});
|
|
11
11
|
Object.defineProperty(exports, "LanguageDetector", {
|
|
12
12
|
enumerable: true,
|
|
13
|
-
get: function () { return
|
|
13
|
+
get: function () { return chunk6V4L7V2Q_cjs.LanguageDetector; }
|
|
14
14
|
});
|
|
15
15
|
Object.defineProperty(exports, "ModerationProcessor", {
|
|
16
16
|
enumerable: true,
|
|
17
|
-
get: function () { return
|
|
17
|
+
get: function () { return chunk6V4L7V2Q_cjs.ModerationProcessor; }
|
|
18
18
|
});
|
|
19
19
|
Object.defineProperty(exports, "PIIDetector", {
|
|
20
20
|
enumerable: true,
|
|
21
|
-
get: function () { return
|
|
21
|
+
get: function () { return chunk6V4L7V2Q_cjs.PIIDetector; }
|
|
22
22
|
});
|
|
23
23
|
Object.defineProperty(exports, "PromptInjectionDetector", {
|
|
24
24
|
enumerable: true,
|
|
25
|
-
get: function () { return
|
|
25
|
+
get: function () { return chunk6V4L7V2Q_cjs.PromptInjectionDetector; }
|
|
26
26
|
});
|
|
27
27
|
Object.defineProperty(exports, "StructuredOutputProcessor", {
|
|
28
28
|
enumerable: true,
|
|
29
|
-
get: function () { return
|
|
29
|
+
get: function () { return chunk6V4L7V2Q_cjs.StructuredOutputProcessor; }
|
|
30
30
|
});
|
|
31
31
|
Object.defineProperty(exports, "SystemPromptScrubber", {
|
|
32
32
|
enumerable: true,
|
|
33
|
-
get: function () { return
|
|
33
|
+
get: function () { return chunk6V4L7V2Q_cjs.SystemPromptScrubber; }
|
|
34
34
|
});
|
|
35
35
|
Object.defineProperty(exports, "TokenLimiterProcessor", {
|
|
36
36
|
enumerable: true,
|
|
37
|
-
get: function () { return
|
|
37
|
+
get: function () { return chunk6V4L7V2Q_cjs.TokenLimiterProcessor; }
|
|
38
38
|
});
|
|
39
39
|
Object.defineProperty(exports, "UnicodeNormalizer", {
|
|
40
40
|
enumerable: true,
|
|
41
|
-
get: function () { return
|
|
41
|
+
get: function () { return chunk6V4L7V2Q_cjs.UnicodeNormalizer; }
|
|
42
42
|
});
|
|
43
43
|
//# sourceMappingURL=index.cjs.map
|
|
44
44
|
//# sourceMappingURL=index.cjs.map
|
package/dist/processors/index.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { BatchPartsProcessor, LanguageDetector, ModerationProcessor, PIIDetector, PromptInjectionDetector, StructuredOutputProcessor, SystemPromptScrubber, TokenLimiterProcessor, UnicodeNormalizer } from '../chunk-
|
|
1
|
+
export { BatchPartsProcessor, LanguageDetector, ModerationProcessor, PIIDetector, PromptInjectionDetector, StructuredOutputProcessor, SystemPromptScrubber, TokenLimiterProcessor, UnicodeNormalizer } from '../chunk-5GZUTAC3.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 chunkSVZWWLGF_cjs = require('../chunk-SVZWWLGF.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 chunkSVZWWLGF_cjs.CohereRelevanceScorer; }
|
|
10
10
|
});
|
|
11
11
|
Object.defineProperty(exports, "MastraAgentRelevanceScorer", {
|
|
12
12
|
enumerable: true,
|
|
13
|
-
get: function () { return
|
|
13
|
+
get: function () { return chunkSVZWWLGF_cjs.MastraAgentRelevanceScorer; }
|
|
14
14
|
});
|
|
15
15
|
Object.defineProperty(exports, "createSimilarityPrompt", {
|
|
16
16
|
enumerable: true,
|
|
17
|
-
get: function () { return
|
|
17
|
+
get: function () { return chunkSVZWWLGF_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-ROT2EVXS.js';
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
|
3
3
|
//# sourceMappingURL=index.js.map
|
package/dist/scores/base.d.ts
CHANGED
|
@@ -1,12 +1,18 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
import type { TracingContext } from '../ai-tracing/index.js';
|
|
3
3
|
import type { MastraLanguageModel } from '../llm/model/shared.types.js';
|
|
4
|
-
import type { ScoringSamplingConfig } from './types.js';
|
|
4
|
+
import type { ScoringSamplingConfig, ScorerRunInputForAgent, ScorerRunOutputForAgent } from './types.js';
|
|
5
5
|
interface ScorerStepDefinition {
|
|
6
6
|
name: string;
|
|
7
7
|
definition: any;
|
|
8
8
|
isPromptObject: boolean;
|
|
9
9
|
}
|
|
10
|
+
type ScorerTypeShortcuts = {
|
|
11
|
+
agent: {
|
|
12
|
+
input: ScorerRunInputForAgent;
|
|
13
|
+
output: ScorerRunOutputForAgent;
|
|
14
|
+
};
|
|
15
|
+
};
|
|
10
16
|
interface ScorerConfig<TName extends string = string, TInput = any, TRunOutput = any> {
|
|
11
17
|
name: TName;
|
|
12
18
|
description: string;
|
|
@@ -14,6 +20,10 @@ interface ScorerConfig<TName extends string = string, TInput = any, TRunOutput =
|
|
|
14
20
|
model: MastraLanguageModel;
|
|
15
21
|
instructions: string;
|
|
16
22
|
};
|
|
23
|
+
type?: keyof ScorerTypeShortcuts | {
|
|
24
|
+
input: z.ZodSchema<TInput>;
|
|
25
|
+
output: z.ZodSchema<TRunOutput>;
|
|
26
|
+
};
|
|
17
27
|
}
|
|
18
28
|
interface ScorerRun<TInput = any, TOutput = any> {
|
|
19
29
|
runId?: string;
|
|
@@ -83,6 +93,10 @@ declare class MastraScorer<TName extends string = string, TInput = any, TRunOutp
|
|
|
83
93
|
private steps;
|
|
84
94
|
private originalPromptObjects;
|
|
85
95
|
constructor(config: ScorerConfig<TName, TInput, TRunOutput>, steps?: Array<ScorerStepDefinition>, originalPromptObjects?: Map<string, PromptObject<any, any, any, TInput, TRunOutput> | GenerateReasonPromptObject<any, TInput, TRunOutput> | GenerateScorePromptObject<any, TInput, TRunOutput>>);
|
|
96
|
+
get type(): "agent" | {
|
|
97
|
+
input: z.ZodType<TInput, z.ZodTypeDef, TInput>;
|
|
98
|
+
output: z.ZodType<TRunOutput, z.ZodTypeDef, TRunOutput>;
|
|
99
|
+
} | undefined;
|
|
86
100
|
get name(): TName;
|
|
87
101
|
get description(): string;
|
|
88
102
|
get judge(): {
|
|
@@ -107,6 +121,15 @@ declare class MastraScorer<TName extends string = string, TInput = any, TRunOutp
|
|
|
107
121
|
private executePromptStep;
|
|
108
122
|
private transformToScorerResult;
|
|
109
123
|
}
|
|
124
|
+
export declare function createScorer<TName extends string, TType extends keyof ScorerTypeShortcuts>(config: Omit<ScorerConfig<TName, any, any>, 'type'> & {
|
|
125
|
+
type: TType;
|
|
126
|
+
}): MastraScorer<TName, ScorerTypeShortcuts[TType]['input'], ScorerTypeShortcuts[TType]['output'], {}>;
|
|
127
|
+
export declare function createScorer<TName extends string, TInputSchema extends z.ZodTypeAny, TOutputSchema extends z.ZodTypeAny>(config: Omit<ScorerConfig<TName, z.infer<TInputSchema>, z.infer<TOutputSchema>>, 'type'> & {
|
|
128
|
+
type: {
|
|
129
|
+
input: TInputSchema;
|
|
130
|
+
output: TOutputSchema;
|
|
131
|
+
};
|
|
132
|
+
}): MastraScorer<TName, z.infer<TInputSchema>, z.infer<TOutputSchema>, {}>;
|
|
110
133
|
export declare function createScorer<TInput = any, TRunOutput = any, TName extends string = string>(config: ScorerConfig<TName, TInput, TRunOutput>): MastraScorer<TName, TInput, TRunOutput, {}>;
|
|
111
134
|
export type MastraScorerEntry = {
|
|
112
135
|
scorer: MastraScorer<any, any, any>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"base.d.ts","sourceRoot":"","sources":["../../src/scores/base.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AAEpD,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAC;AAErE,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"base.d.ts","sourceRoot":"","sources":["../../src/scores/base.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AAEpD,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAC;AAErE,OAAO,KAAK,EAAE,qBAAqB,EAAE,sBAAsB,EAAE,uBAAuB,EAAE,MAAM,SAAS,CAAC;AAEtG,UAAU,oBAAoB;IAC5B,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,EAAE,GAAG,CAAC;IAChB,cAAc,EAAE,OAAO,CAAC;CACzB;AAGD,KAAK,mBAAmB,GAAG;IACzB,KAAK,EAAE;QACL,KAAK,EAAE,sBAAsB,CAAC;QAC9B,MAAM,EAAE,uBAAuB,CAAC;KACjC,CAAC;CACH,CAAC;AAMF,UAAU,YAAY,CAAC,KAAK,SAAS,MAAM,GAAG,MAAM,EAAE,MAAM,GAAG,GAAG,EAAE,UAAU,GAAG,GAAG;IAClF,IAAI,EAAE,KAAK,CAAC;IACZ,WAAW,EAAE,MAAM,CAAC;IACpB,KAAK,CAAC,EAAE;QACN,KAAK,EAAE,mBAAmB,CAAC;QAC3B,YAAY,EAAE,MAAM,CAAC;KACtB,CAAC;IAEF,IAAI,CAAC,EACD,MAAM,mBAAmB,GACzB;QACE,KAAK,EAAE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EAAE,CAAC,CAAC;AAG1E,wBAAgB,YAAY,CAAC,MAAM,GAAG,GAAG,EAAE,UAAU,GAAG,GAAG,EAAE,KAAK,SAAS,MAAM,GAAG,MAAM,EACxF,MAAM,EAAE,YAAY,CAAC,KAAK,EAAE,MAAM,EAAE,UAAU,CAAC,GAC9C,YAAY,CAAC,KAAK,EAAE,MAAM,EAAE,UAAU,EAAE,EAAE,CAAC,CAAC;AAY/C,MAAM,MAAM,iBAAiB,GAAG;IAC9B,MAAM,EAAE,YAAY,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,CAAC,CAAC;IACpC,QAAQ,CAAC,EAAE,qBAAqB,CAAC;CAClC,CAAC;AAEF,MAAM,MAAM,aAAa,GAAG,MAAM,CAAC,MAAM,EAAE,iBAAiB,CAAC,CAAC;AAG9D,YAAY,EAAE,YAAY,EAAE,SAAS,EAAE,YAAY,EAAE,CAAC;AAEtD,OAAO,EAAE,YAAY,EAAE,CAAC"}
|
package/dist/scores/index.cjs
CHANGED
|
@@ -1,36 +1,36 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkBFLZKJAS_cjs = require('../chunk-BFLZKJAS.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
Object.defineProperty(exports, "MastraScorer", {
|
|
8
8
|
enumerable: true,
|
|
9
|
-
get: function () { return
|
|
9
|
+
get: function () { return chunkBFLZKJAS_cjs.MastraScorer; }
|
|
10
10
|
});
|
|
11
11
|
Object.defineProperty(exports, "createScorer", {
|
|
12
12
|
enumerable: true,
|
|
13
|
-
get: function () { return
|
|
13
|
+
get: function () { return chunkBFLZKJAS_cjs.createScorer; }
|
|
14
14
|
});
|
|
15
15
|
Object.defineProperty(exports, "runExperiment", {
|
|
16
16
|
enumerable: true,
|
|
17
|
-
get: function () { return
|
|
17
|
+
get: function () { return chunkBFLZKJAS_cjs.runExperiment; }
|
|
18
18
|
});
|
|
19
19
|
Object.defineProperty(exports, "saveScorePayloadSchema", {
|
|
20
20
|
enumerable: true,
|
|
21
|
-
get: function () { return
|
|
21
|
+
get: function () { return chunkBFLZKJAS_cjs.saveScorePayloadSchema; }
|
|
22
22
|
});
|
|
23
23
|
Object.defineProperty(exports, "scoreResultSchema", {
|
|
24
24
|
enumerable: true,
|
|
25
|
-
get: function () { return
|
|
25
|
+
get: function () { return chunkBFLZKJAS_cjs.scoreResultSchema; }
|
|
26
26
|
});
|
|
27
27
|
Object.defineProperty(exports, "scoringExtractStepResultSchema", {
|
|
28
28
|
enumerable: true,
|
|
29
|
-
get: function () { return
|
|
29
|
+
get: function () { return chunkBFLZKJAS_cjs.scoringExtractStepResultSchema; }
|
|
30
30
|
});
|
|
31
31
|
Object.defineProperty(exports, "scoringValueSchema", {
|
|
32
32
|
enumerable: true,
|
|
33
|
-
get: function () { return
|
|
33
|
+
get: function () { return chunkBFLZKJAS_cjs.scoringValueSchema; }
|
|
34
34
|
});
|
|
35
35
|
//# sourceMappingURL=index.cjs.map
|
|
36
36
|
//# sourceMappingURL=index.cjs.map
|
package/dist/scores/index.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { MastraScorer, createScorer, runExperiment, saveScorePayloadSchema, scoreResultSchema, scoringExtractStepResultSchema, scoringValueSchema } from '../chunk-
|
|
1
|
+
export { MastraScorer, createScorer, runExperiment, saveScorePayloadSchema, scoreResultSchema, scoringExtractStepResultSchema, scoringValueSchema } from '../chunk-GGMAYEJY.js';
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
|
3
3
|
//# sourceMappingURL=index.js.map
|
package/dist/stream/index.cjs
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunk6V4L7V2Q_cjs = require('../chunk-6V4L7V2Q.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
Object.defineProperty(exports, "AISDKV5OutputStream", {
|
|
8
8
|
enumerable: true,
|
|
9
|
-
get: function () { return
|
|
9
|
+
get: function () { return chunk6V4L7V2Q_cjs.AISDKV5OutputStream; }
|
|
10
10
|
});
|
|
11
11
|
Object.defineProperty(exports, "ChunkFrom", {
|
|
12
12
|
enumerable: true,
|
|
13
|
-
get: function () { return
|
|
13
|
+
get: function () { return chunk6V4L7V2Q_cjs.ChunkFrom; }
|
|
14
14
|
});
|
|
15
15
|
Object.defineProperty(exports, "MastraModelOutput", {
|
|
16
16
|
enumerable: true,
|
|
17
|
-
get: function () { return
|
|
17
|
+
get: function () { return chunk6V4L7V2Q_cjs.MastraModelOutput; }
|
|
18
18
|
});
|
|
19
19
|
//# sourceMappingURL=index.cjs.map
|
|
20
20
|
//# sourceMappingURL=index.cjs.map
|
package/dist/stream/index.js
CHANGED