@mastra/core 1.26.0-alpha.11 → 1.26.0-alpha.13
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 +16 -0
- package/dist/agent/agent.d.ts.map +1 -1
- package/dist/agent/index.cjs +8 -8
- package/dist/agent/index.js +1 -1
- package/dist/agent/types.d.ts +7 -1
- package/dist/agent/types.d.ts.map +1 -1
- package/dist/agent/workflows/prepare-stream/map-results-step.d.ts.map +1 -1
- package/dist/agent/workflows/prepare-stream/schema.d.ts +1 -0
- package/dist/agent/workflows/prepare-stream/schema.d.ts.map +1 -1
- package/dist/browser/index.cjs +2 -2
- package/dist/browser/index.js +1 -1
- package/dist/channels/index.cjs +4 -4
- package/dist/channels/index.js +1 -1
- package/dist/{chunk-CXIQCUHL.js → chunk-24FTWXDR.js} +3 -3
- package/dist/{chunk-CXIQCUHL.js.map → chunk-24FTWXDR.js.map} +1 -1
- package/dist/{chunk-RSFZN7OV.cjs → chunk-2NQ2TF5F.cjs} +389 -316
- package/dist/chunk-2NQ2TF5F.cjs.map +1 -0
- package/dist/{chunk-ECT5553H.cjs → chunk-34M2QMAZ.cjs} +292 -292
- package/dist/{chunk-ECT5553H.cjs.map → chunk-34M2QMAZ.cjs.map} +1 -1
- package/dist/{chunk-BJCPVJJV.js → chunk-37OQ7B3U.js} +3 -3
- package/dist/{chunk-BJCPVJJV.js.map → chunk-37OQ7B3U.js.map} +1 -1
- package/dist/{chunk-TER3JXU5.cjs → chunk-4MLJKGJI.cjs} +52 -22
- package/dist/chunk-4MLJKGJI.cjs.map +1 -0
- package/dist/{chunk-WBPTY4Y7.cjs → chunk-7IMHDDED.cjs} +57 -57
- package/dist/{chunk-WBPTY4Y7.cjs.map → chunk-7IMHDDED.cjs.map} +1 -1
- package/dist/{chunk-2QPYXXQP.js → chunk-DHKEEJPE.js} +3 -3
- package/dist/{chunk-2QPYXXQP.js.map → chunk-DHKEEJPE.js.map} +1 -1
- package/dist/{chunk-72TFCXLB.js → chunk-DLDGEMBE.js} +381 -308
- package/dist/chunk-DLDGEMBE.js.map +1 -0
- package/dist/{chunk-IFMX323P.cjs → chunk-ER7WPKHP.cjs} +7 -7
- package/dist/{chunk-IFMX323P.cjs.map → chunk-ER7WPKHP.cjs.map} +1 -1
- package/dist/{chunk-5EU2N7AI.js → chunk-FE3JBPGZ.js} +9 -9
- package/dist/{chunk-5EU2N7AI.js.map → chunk-FE3JBPGZ.js.map} +1 -1
- package/dist/{chunk-TJ4FSWVQ.js → chunk-GDUBYVBH.js} +4 -4
- package/dist/{chunk-TJ4FSWVQ.js.map → chunk-GDUBYVBH.js.map} +1 -1
- package/dist/{chunk-6SZ4HY7N.cjs → chunk-GSJT6X23.cjs} +10 -9
- package/dist/chunk-GSJT6X23.cjs.map +1 -0
- package/dist/{chunk-HGZ5C3XG.cjs → chunk-KEXLOZNA.cjs} +17 -17
- package/dist/{chunk-HGZ5C3XG.cjs.map → chunk-KEXLOZNA.cjs.map} +1 -1
- package/dist/{chunk-MT2NFL3T.js → chunk-NTGYHDWA.js} +40 -10
- package/dist/chunk-NTGYHDWA.js.map +1 -0
- package/dist/{chunk-KSTYF5BD.js → chunk-SQAGQFGX.js} +3 -3
- package/dist/{chunk-KSTYF5BD.js.map → chunk-SQAGQFGX.js.map} +1 -1
- package/dist/{chunk-BQN6OA5U.js → chunk-T5WE2PEP.js} +6 -6
- package/dist/{chunk-BQN6OA5U.js.map → chunk-T5WE2PEP.js.map} +1 -1
- package/dist/{chunk-SLO7BNJL.cjs → chunk-TITDW65H.cjs} +9 -9
- package/dist/{chunk-SLO7BNJL.cjs.map → chunk-TITDW65H.cjs.map} +1 -1
- package/dist/{chunk-M7NIAKE6.cjs → chunk-WBZ5SRGR.cjs} +3 -3
- package/dist/{chunk-M7NIAKE6.cjs.map → chunk-WBZ5SRGR.cjs.map} +1 -1
- package/dist/{chunk-B3A3OLBO.cjs → chunk-WDJZB44P.cjs} +224 -224
- package/dist/{chunk-B3A3OLBO.cjs.map → chunk-WDJZB44P.cjs.map} +1 -1
- package/dist/{chunk-HTSHN5E4.js → chunk-WSVLXQT6.js} +8 -7
- package/dist/chunk-WSVLXQT6.js.map +1 -0
- package/dist/{chunk-DELWJ5NK.js → chunk-WYPOS74A.js} +3 -3
- package/dist/{chunk-DELWJ5NK.js.map → chunk-WYPOS74A.js.map} +1 -1
- package/dist/{chunk-5IIRXFH2.cjs → chunk-YQ5QJC3S.cjs} +5 -5
- package/dist/{chunk-5IIRXFH2.cjs.map → chunk-YQ5QJC3S.cjs.map} +1 -1
- package/dist/datasets/experiment/index.d.ts.map +1 -1
- package/dist/datasets/index.cjs +11 -11
- package/dist/datasets/index.js +1 -1
- package/dist/docs/SKILL.md +3 -1
- package/dist/docs/assets/SOURCE_MAP.json +191 -191
- package/dist/docs/references/docs-agents-structured-output.md +22 -0
- package/dist/docs/references/docs-memory-storage.md +1 -0
- package/dist/docs/references/reference-storage-redis.md +266 -0
- package/dist/docs/references/reference-tools-tavily.md +307 -0
- package/dist/docs/references/reference.md +2 -0
- package/dist/evals/index.cjs +5 -5
- package/dist/evals/index.js +2 -2
- package/dist/evals/scoreTraces/index.cjs +3 -3
- package/dist/evals/scoreTraces/index.js +1 -1
- package/dist/harness/index.cjs +7 -7
- package/dist/harness/index.js +5 -5
- package/dist/index.cjs +2 -2
- package/dist/index.js +1 -1
- package/dist/llm/index.cjs +20 -20
- package/dist/llm/index.js +5 -5
- package/dist/llm/model/provider-types.generated.d.ts +15 -0
- package/dist/loop/index.cjs +14 -14
- package/dist/loop/index.js +1 -1
- package/dist/loop/workflows/agentic-execution/build-messages-from-chunks.d.ts +32 -0
- package/dist/loop/workflows/agentic-execution/build-messages-from-chunks.d.ts.map +1 -0
- package/dist/loop/workflows/agentic-execution/llm-execution-step.d.ts.map +1 -1
- package/dist/loop/workflows/run-state.d.ts +0 -9
- package/dist/loop/workflows/run-state.d.ts.map +1 -1
- package/dist/mastra/index.cjs +2 -2
- package/dist/mastra/index.js +1 -1
- package/dist/mastra-47JQIPP2.cjs +12 -0
- package/dist/{mastra-UBXRRSVL.cjs.map → mastra-47JQIPP2.cjs.map} +1 -1
- package/dist/mastra-MEZUGGZZ.js +3 -0
- package/dist/{mastra-YR56DXR7.js.map → mastra-MEZUGGZZ.js.map} +1 -1
- package/dist/memory/index.cjs +19 -19
- package/dist/memory/index.js +1 -1
- package/dist/models-dev-BUQGQZCQ.js +3 -0
- package/dist/{models-dev-B24Y4NYV.js.map → models-dev-BUQGQZCQ.js.map} +1 -1
- package/dist/models-dev-INA3VBAK.cjs +12 -0
- package/dist/{models-dev-EMLWCDMI.cjs.map → models-dev-INA3VBAK.cjs.map} +1 -1
- package/dist/netlify-BW7IYASM.cjs +12 -0
- package/dist/{netlify-BFZBVACL.cjs.map → netlify-BW7IYASM.cjs.map} +1 -1
- package/dist/netlify-EQPVEYNW.js +3 -0
- package/dist/{netlify-W7DGKAGR.js.map → netlify-EQPVEYNW.js.map} +1 -1
- package/dist/processor-provider/index.cjs +10 -10
- package/dist/processor-provider/index.js +1 -1
- package/dist/processors/index.cjs +45 -45
- package/dist/processors/index.js +1 -1
- package/dist/processors/processors/structured-output.d.ts +13 -12
- package/dist/processors/processors/structured-output.d.ts.map +1 -1
- package/dist/provider-registry-4FV6CXQI.cjs +44 -0
- package/dist/{provider-registry-OLA6QVLP.cjs.map → provider-registry-4FV6CXQI.cjs.map} +1 -1
- package/dist/provider-registry-EAKPPU44.js +3 -0
- package/dist/{provider-registry-LGHC4U7P.js.map → provider-registry-EAKPPU44.js.map} +1 -1
- package/dist/provider-registry.json +32 -2
- package/dist/relevance/index.cjs +3 -3
- package/dist/relevance/index.js +1 -1
- package/dist/stream/aisdk/v5/execute.d.ts.map +1 -1
- package/dist/stream/base/output.d.ts.map +1 -1
- package/dist/stream/index.cjs +8 -8
- package/dist/stream/index.js +1 -1
- package/dist/tool-loop-agent/index.cjs +4 -4
- package/dist/tool-loop-agent/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 +24 -24
- package/dist/workflows/index.js +1 -1
- package/package.json +2 -2
- package/src/llm/model/provider-types.generated.d.ts +15 -0
- package/dist/chunk-6SZ4HY7N.cjs.map +0 -1
- package/dist/chunk-72TFCXLB.js.map +0 -1
- package/dist/chunk-HTSHN5E4.js.map +0 -1
- package/dist/chunk-MT2NFL3T.js.map +0 -1
- package/dist/chunk-RSFZN7OV.cjs.map +0 -1
- package/dist/chunk-TER3JXU5.cjs.map +0 -1
- package/dist/mastra-UBXRRSVL.cjs +0 -12
- package/dist/mastra-YR56DXR7.js +0 -3
- package/dist/models-dev-B24Y4NYV.js +0 -3
- package/dist/models-dev-EMLWCDMI.cjs +0 -12
- package/dist/netlify-BFZBVACL.cjs +0 -12
- package/dist/netlify-W7DGKAGR.js +0 -3
- package/dist/provider-registry-LGHC4U7P.js +0 -3
- package/dist/provider-registry-OLA6QVLP.cjs +0 -44
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var chunkWDJZB44P_cjs = require('./chunk-WDJZB44P.cjs');
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
Object.defineProperty(exports, "ModelsDevGateway", {
|
|
8
|
+
enumerable: true,
|
|
9
|
+
get: function () { return chunkWDJZB44P_cjs.ModelsDevGateway; }
|
|
10
|
+
});
|
|
11
|
+
//# sourceMappingURL=models-dev-INA3VBAK.cjs.map
|
|
12
|
+
//# sourceMappingURL=models-dev-INA3VBAK.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":[],"names":[],"mappings":"","file":"models-dev-
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"models-dev-INA3VBAK.cjs"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var chunkTITDW65H_cjs = require('./chunk-TITDW65H.cjs');
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
Object.defineProperty(exports, "NetlifyGateway", {
|
|
8
|
+
enumerable: true,
|
|
9
|
+
get: function () { return chunkTITDW65H_cjs.NetlifyGateway; }
|
|
10
|
+
});
|
|
11
|
+
//# sourceMappingURL=netlify-BW7IYASM.cjs.map
|
|
12
|
+
//# sourceMappingURL=netlify-BW7IYASM.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":[],"names":[],"mappings":"","file":"netlify-
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"netlify-BW7IYASM.cjs"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":[],"names":[],"mappings":"","file":"netlify-
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"netlify-EQPVEYNW.js"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunk2NQ2TF5F_cjs = require('../chunk-2NQ2TF5F.cjs');
|
|
4
4
|
var v4 = require('zod/v4');
|
|
5
5
|
|
|
6
6
|
// src/processor-provider/types.ts
|
|
@@ -67,7 +67,7 @@ var unicodeNormalizerProvider = {
|
|
|
67
67
|
}),
|
|
68
68
|
availablePhases: ["processInput"],
|
|
69
69
|
createProcessor(config) {
|
|
70
|
-
return new
|
|
70
|
+
return new chunk2NQ2TF5F_cjs.UnicodeNormalizer(config);
|
|
71
71
|
}
|
|
72
72
|
};
|
|
73
73
|
var tokenLimiterProvider = {
|
|
@@ -83,7 +83,7 @@ var tokenLimiterProvider = {
|
|
|
83
83
|
}),
|
|
84
84
|
availablePhases: ["processInput", "processOutputStream", "processOutputResult"],
|
|
85
85
|
createProcessor(config) {
|
|
86
|
-
return new
|
|
86
|
+
return new chunk2NQ2TF5F_cjs.TokenLimiterProcessor(
|
|
87
87
|
config
|
|
88
88
|
);
|
|
89
89
|
}
|
|
@@ -99,7 +99,7 @@ var toolCallFilterProvider = {
|
|
|
99
99
|
}),
|
|
100
100
|
availablePhases: ["processInput"],
|
|
101
101
|
createProcessor(config) {
|
|
102
|
-
return new
|
|
102
|
+
return new chunk2NQ2TF5F_cjs.ToolCallFilter(config);
|
|
103
103
|
}
|
|
104
104
|
};
|
|
105
105
|
var batchPartsProvider = {
|
|
@@ -115,7 +115,7 @@ var batchPartsProvider = {
|
|
|
115
115
|
}),
|
|
116
116
|
availablePhases: ["processOutputStream"],
|
|
117
117
|
createProcessor(config) {
|
|
118
|
-
return new
|
|
118
|
+
return new chunk2NQ2TF5F_cjs.BatchPartsProcessor(config);
|
|
119
119
|
}
|
|
120
120
|
};
|
|
121
121
|
var moderationProvider = {
|
|
@@ -137,7 +137,7 @@ var moderationProvider = {
|
|
|
137
137
|
}),
|
|
138
138
|
availablePhases: ["processInput", "processOutputResult", "processOutputStream"],
|
|
139
139
|
createProcessor(config) {
|
|
140
|
-
return new
|
|
140
|
+
return new chunk2NQ2TF5F_cjs.ModerationProcessor(config);
|
|
141
141
|
}
|
|
142
142
|
};
|
|
143
143
|
var promptInjectionDetectorProvider = {
|
|
@@ -158,7 +158,7 @@ var promptInjectionDetectorProvider = {
|
|
|
158
158
|
}),
|
|
159
159
|
availablePhases: ["processInput"],
|
|
160
160
|
createProcessor(config) {
|
|
161
|
-
return new
|
|
161
|
+
return new chunk2NQ2TF5F_cjs.PromptInjectionDetector(config);
|
|
162
162
|
}
|
|
163
163
|
};
|
|
164
164
|
var piiDetectorProvider = {
|
|
@@ -181,7 +181,7 @@ var piiDetectorProvider = {
|
|
|
181
181
|
}),
|
|
182
182
|
availablePhases: ["processInput"],
|
|
183
183
|
createProcessor(config) {
|
|
184
|
-
return new
|
|
184
|
+
return new chunk2NQ2TF5F_cjs.PIIDetector(config);
|
|
185
185
|
}
|
|
186
186
|
};
|
|
187
187
|
var languageDetectorProvider = {
|
|
@@ -204,7 +204,7 @@ var languageDetectorProvider = {
|
|
|
204
204
|
}),
|
|
205
205
|
availablePhases: ["processInput"],
|
|
206
206
|
createProcessor(config) {
|
|
207
|
-
return new
|
|
207
|
+
return new chunk2NQ2TF5F_cjs.LanguageDetector(config);
|
|
208
208
|
}
|
|
209
209
|
};
|
|
210
210
|
var systemPromptScrubberProvider = {
|
|
@@ -225,7 +225,7 @@ var systemPromptScrubberProvider = {
|
|
|
225
225
|
}),
|
|
226
226
|
availablePhases: ["processOutputStream", "processOutputResult"],
|
|
227
227
|
createProcessor(config) {
|
|
228
|
-
return new
|
|
228
|
+
return new chunk2NQ2TF5F_cjs.SystemPromptScrubber(config);
|
|
229
229
|
}
|
|
230
230
|
};
|
|
231
231
|
var BUILT_IN_PROCESSOR_PROVIDERS = {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { UnicodeNormalizer, TokenLimiterProcessor, ToolCallFilter, BatchPartsProcessor, ModerationProcessor, PromptInjectionDetector, PIIDetector, LanguageDetector, SystemPromptScrubber } from '../chunk-
|
|
1
|
+
import { UnicodeNormalizer, TokenLimiterProcessor, ToolCallFilter, BatchPartsProcessor, ModerationProcessor, PromptInjectionDetector, PIIDetector, LanguageDetector, SystemPromptScrubber } from '../chunk-DLDGEMBE.js';
|
|
2
2
|
import { z } from 'zod/v4';
|
|
3
3
|
|
|
4
4
|
// src/processor-provider/types.ts
|
|
@@ -1,184 +1,184 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunk2NQ2TF5F_cjs = require('../chunk-2NQ2TF5F.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
Object.defineProperty(exports, "AgentsMDInjector", {
|
|
8
8
|
enumerable: true,
|
|
9
|
-
get: function () { return
|
|
9
|
+
get: function () { return chunk2NQ2TF5F_cjs.AgentsMDInjector; }
|
|
10
10
|
});
|
|
11
11
|
Object.defineProperty(exports, "BaseProcessor", {
|
|
12
12
|
enumerable: true,
|
|
13
|
-
get: function () { return
|
|
13
|
+
get: function () { return chunk2NQ2TF5F_cjs.BaseProcessor; }
|
|
14
14
|
});
|
|
15
15
|
Object.defineProperty(exports, "BatchPartsProcessor", {
|
|
16
16
|
enumerable: true,
|
|
17
|
-
get: function () { return
|
|
17
|
+
get: function () { return chunk2NQ2TF5F_cjs.BatchPartsProcessor; }
|
|
18
18
|
});
|
|
19
19
|
Object.defineProperty(exports, "FilePartSchema", {
|
|
20
20
|
enumerable: true,
|
|
21
|
-
get: function () { return
|
|
21
|
+
get: function () { return chunk2NQ2TF5F_cjs.FilePartSchema; }
|
|
22
22
|
});
|
|
23
23
|
Object.defineProperty(exports, "ImagePartSchema", {
|
|
24
24
|
enumerable: true,
|
|
25
|
-
get: function () { return
|
|
25
|
+
get: function () { return chunk2NQ2TF5F_cjs.ImagePartSchema; }
|
|
26
26
|
});
|
|
27
27
|
Object.defineProperty(exports, "LanguageDetector", {
|
|
28
28
|
enumerable: true,
|
|
29
|
-
get: function () { return
|
|
29
|
+
get: function () { return chunk2NQ2TF5F_cjs.LanguageDetector; }
|
|
30
30
|
});
|
|
31
31
|
Object.defineProperty(exports, "MessageContentSchema", {
|
|
32
32
|
enumerable: true,
|
|
33
|
-
get: function () { return
|
|
33
|
+
get: function () { return chunk2NQ2TF5F_cjs.MessageContentSchema; }
|
|
34
34
|
});
|
|
35
35
|
Object.defineProperty(exports, "MessageHistory", {
|
|
36
36
|
enumerable: true,
|
|
37
|
-
get: function () { return
|
|
37
|
+
get: function () { return chunk2NQ2TF5F_cjs.MessageHistory; }
|
|
38
38
|
});
|
|
39
39
|
Object.defineProperty(exports, "MessagePartSchema", {
|
|
40
40
|
enumerable: true,
|
|
41
|
-
get: function () { return
|
|
41
|
+
get: function () { return chunk2NQ2TF5F_cjs.MessagePartSchema; }
|
|
42
42
|
});
|
|
43
43
|
Object.defineProperty(exports, "ModerationProcessor", {
|
|
44
44
|
enumerable: true,
|
|
45
|
-
get: function () { return
|
|
45
|
+
get: function () { return chunk2NQ2TF5F_cjs.ModerationProcessor; }
|
|
46
46
|
});
|
|
47
47
|
Object.defineProperty(exports, "PIIDetector", {
|
|
48
48
|
enumerable: true,
|
|
49
|
-
get: function () { return
|
|
49
|
+
get: function () { return chunk2NQ2TF5F_cjs.PIIDetector; }
|
|
50
50
|
});
|
|
51
51
|
Object.defineProperty(exports, "PrefillErrorHandler", {
|
|
52
52
|
enumerable: true,
|
|
53
|
-
get: function () { return
|
|
53
|
+
get: function () { return chunk2NQ2TF5F_cjs.PrefillErrorHandler; }
|
|
54
54
|
});
|
|
55
55
|
Object.defineProperty(exports, "ProcessorInputPhaseSchema", {
|
|
56
56
|
enumerable: true,
|
|
57
|
-
get: function () { return
|
|
57
|
+
get: function () { return chunk2NQ2TF5F_cjs.ProcessorInputPhaseSchema; }
|
|
58
58
|
});
|
|
59
59
|
Object.defineProperty(exports, "ProcessorInputStepPhaseSchema", {
|
|
60
60
|
enumerable: true,
|
|
61
|
-
get: function () { return
|
|
61
|
+
get: function () { return chunk2NQ2TF5F_cjs.ProcessorInputStepPhaseSchema; }
|
|
62
62
|
});
|
|
63
63
|
Object.defineProperty(exports, "ProcessorMessageContentSchema", {
|
|
64
64
|
enumerable: true,
|
|
65
|
-
get: function () { return
|
|
65
|
+
get: function () { return chunk2NQ2TF5F_cjs.ProcessorMessageContentSchema; }
|
|
66
66
|
});
|
|
67
67
|
Object.defineProperty(exports, "ProcessorMessageSchema", {
|
|
68
68
|
enumerable: true,
|
|
69
|
-
get: function () { return
|
|
69
|
+
get: function () { return chunk2NQ2TF5F_cjs.ProcessorMessageSchema; }
|
|
70
70
|
});
|
|
71
71
|
Object.defineProperty(exports, "ProcessorOutputResultPhaseSchema", {
|
|
72
72
|
enumerable: true,
|
|
73
|
-
get: function () { return
|
|
73
|
+
get: function () { return chunk2NQ2TF5F_cjs.ProcessorOutputResultPhaseSchema; }
|
|
74
74
|
});
|
|
75
75
|
Object.defineProperty(exports, "ProcessorOutputStepPhaseSchema", {
|
|
76
76
|
enumerable: true,
|
|
77
|
-
get: function () { return
|
|
77
|
+
get: function () { return chunk2NQ2TF5F_cjs.ProcessorOutputStepPhaseSchema; }
|
|
78
78
|
});
|
|
79
79
|
Object.defineProperty(exports, "ProcessorOutputStreamPhaseSchema", {
|
|
80
80
|
enumerable: true,
|
|
81
|
-
get: function () { return
|
|
81
|
+
get: function () { return chunk2NQ2TF5F_cjs.ProcessorOutputStreamPhaseSchema; }
|
|
82
82
|
});
|
|
83
83
|
Object.defineProperty(exports, "ProcessorRunner", {
|
|
84
84
|
enumerable: true,
|
|
85
|
-
get: function () { return
|
|
85
|
+
get: function () { return chunk2NQ2TF5F_cjs.ProcessorRunner; }
|
|
86
86
|
});
|
|
87
87
|
Object.defineProperty(exports, "ProcessorState", {
|
|
88
88
|
enumerable: true,
|
|
89
|
-
get: function () { return
|
|
89
|
+
get: function () { return chunk2NQ2TF5F_cjs.ProcessorState; }
|
|
90
90
|
});
|
|
91
91
|
Object.defineProperty(exports, "ProcessorStepInputSchema", {
|
|
92
92
|
enumerable: true,
|
|
93
|
-
get: function () { return
|
|
93
|
+
get: function () { return chunk2NQ2TF5F_cjs.ProcessorStepInputSchema; }
|
|
94
94
|
});
|
|
95
95
|
Object.defineProperty(exports, "ProcessorStepOutputSchema", {
|
|
96
96
|
enumerable: true,
|
|
97
|
-
get: function () { return
|
|
97
|
+
get: function () { return chunk2NQ2TF5F_cjs.ProcessorStepOutputSchema; }
|
|
98
98
|
});
|
|
99
99
|
Object.defineProperty(exports, "ProcessorStepSchema", {
|
|
100
100
|
enumerable: true,
|
|
101
|
-
get: function () { return
|
|
101
|
+
get: function () { return chunk2NQ2TF5F_cjs.ProcessorStepSchema; }
|
|
102
102
|
});
|
|
103
103
|
Object.defineProperty(exports, "PromptInjectionDetector", {
|
|
104
104
|
enumerable: true,
|
|
105
|
-
get: function () { return
|
|
105
|
+
get: function () { return chunk2NQ2TF5F_cjs.PromptInjectionDetector; }
|
|
106
106
|
});
|
|
107
107
|
Object.defineProperty(exports, "ReasoningPartSchema", {
|
|
108
108
|
enumerable: true,
|
|
109
|
-
get: function () { return
|
|
109
|
+
get: function () { return chunk2NQ2TF5F_cjs.ReasoningPartSchema; }
|
|
110
110
|
});
|
|
111
111
|
Object.defineProperty(exports, "SemanticRecall", {
|
|
112
112
|
enumerable: true,
|
|
113
|
-
get: function () { return
|
|
113
|
+
get: function () { return chunk2NQ2TF5F_cjs.SemanticRecall; }
|
|
114
114
|
});
|
|
115
115
|
Object.defineProperty(exports, "SkillSearchProcessor", {
|
|
116
116
|
enumerable: true,
|
|
117
|
-
get: function () { return
|
|
117
|
+
get: function () { return chunk2NQ2TF5F_cjs.SkillSearchProcessor; }
|
|
118
118
|
});
|
|
119
119
|
Object.defineProperty(exports, "SkillsProcessor", {
|
|
120
120
|
enumerable: true,
|
|
121
|
-
get: function () { return
|
|
121
|
+
get: function () { return chunk2NQ2TF5F_cjs.SkillsProcessor; }
|
|
122
122
|
});
|
|
123
123
|
Object.defineProperty(exports, "SourcePartSchema", {
|
|
124
124
|
enumerable: true,
|
|
125
|
-
get: function () { return
|
|
125
|
+
get: function () { return chunk2NQ2TF5F_cjs.SourcePartSchema; }
|
|
126
126
|
});
|
|
127
127
|
Object.defineProperty(exports, "StepStartPartSchema", {
|
|
128
128
|
enumerable: true,
|
|
129
|
-
get: function () { return
|
|
129
|
+
get: function () { return chunk2NQ2TF5F_cjs.StepStartPartSchema; }
|
|
130
130
|
});
|
|
131
131
|
Object.defineProperty(exports, "StructuredOutputProcessor", {
|
|
132
132
|
enumerable: true,
|
|
133
|
-
get: function () { return
|
|
133
|
+
get: function () { return chunk2NQ2TF5F_cjs.StructuredOutputProcessor; }
|
|
134
134
|
});
|
|
135
135
|
Object.defineProperty(exports, "SystemPromptScrubber", {
|
|
136
136
|
enumerable: true,
|
|
137
|
-
get: function () { return
|
|
137
|
+
get: function () { return chunk2NQ2TF5F_cjs.SystemPromptScrubber; }
|
|
138
138
|
});
|
|
139
139
|
Object.defineProperty(exports, "TextPartSchema", {
|
|
140
140
|
enumerable: true,
|
|
141
|
-
get: function () { return
|
|
141
|
+
get: function () { return chunk2NQ2TF5F_cjs.TextPartSchema; }
|
|
142
142
|
});
|
|
143
143
|
Object.defineProperty(exports, "TokenLimiter", {
|
|
144
144
|
enumerable: true,
|
|
145
|
-
get: function () { return
|
|
145
|
+
get: function () { return chunk2NQ2TF5F_cjs.TokenLimiterProcessor; }
|
|
146
146
|
});
|
|
147
147
|
Object.defineProperty(exports, "TokenLimiterProcessor", {
|
|
148
148
|
enumerable: true,
|
|
149
|
-
get: function () { return
|
|
149
|
+
get: function () { return chunk2NQ2TF5F_cjs.TokenLimiterProcessor; }
|
|
150
150
|
});
|
|
151
151
|
Object.defineProperty(exports, "ToolCallFilter", {
|
|
152
152
|
enumerable: true,
|
|
153
|
-
get: function () { return
|
|
153
|
+
get: function () { return chunk2NQ2TF5F_cjs.ToolCallFilter; }
|
|
154
154
|
});
|
|
155
155
|
Object.defineProperty(exports, "ToolInvocationPartSchema", {
|
|
156
156
|
enumerable: true,
|
|
157
|
-
get: function () { return
|
|
157
|
+
get: function () { return chunk2NQ2TF5F_cjs.ToolInvocationPartSchema; }
|
|
158
158
|
});
|
|
159
159
|
Object.defineProperty(exports, "ToolSearchProcessor", {
|
|
160
160
|
enumerable: true,
|
|
161
|
-
get: function () { return
|
|
161
|
+
get: function () { return chunk2NQ2TF5F_cjs.ToolSearchProcessor; }
|
|
162
162
|
});
|
|
163
163
|
Object.defineProperty(exports, "UnicodeNormalizer", {
|
|
164
164
|
enumerable: true,
|
|
165
|
-
get: function () { return
|
|
165
|
+
get: function () { return chunk2NQ2TF5F_cjs.UnicodeNormalizer; }
|
|
166
166
|
});
|
|
167
167
|
Object.defineProperty(exports, "WorkingMemory", {
|
|
168
168
|
enumerable: true,
|
|
169
|
-
get: function () { return
|
|
169
|
+
get: function () { return chunk2NQ2TF5F_cjs.WorkingMemory; }
|
|
170
170
|
});
|
|
171
171
|
Object.defineProperty(exports, "WorkspaceInstructionsProcessor", {
|
|
172
172
|
enumerable: true,
|
|
173
|
-
get: function () { return
|
|
173
|
+
get: function () { return chunk2NQ2TF5F_cjs.WorkspaceInstructionsProcessor; }
|
|
174
174
|
});
|
|
175
175
|
Object.defineProperty(exports, "globalEmbeddingCache", {
|
|
176
176
|
enumerable: true,
|
|
177
|
-
get: function () { return
|
|
177
|
+
get: function () { return chunk2NQ2TF5F_cjs.globalEmbeddingCache; }
|
|
178
178
|
});
|
|
179
179
|
Object.defineProperty(exports, "isProcessorWorkflow", {
|
|
180
180
|
enumerable: true,
|
|
181
|
-
get: function () { return
|
|
181
|
+
get: function () { return chunk2NQ2TF5F_cjs.isProcessorWorkflow; }
|
|
182
182
|
});
|
|
183
183
|
//# sourceMappingURL=index.cjs.map
|
|
184
184
|
//# sourceMappingURL=index.cjs.map
|
package/dist/processors/index.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { AgentsMDInjector, BaseProcessor, BatchPartsProcessor, FilePartSchema, ImagePartSchema, LanguageDetector, MessageContentSchema, MessageHistory, MessagePartSchema, ModerationProcessor, PIIDetector, PrefillErrorHandler, ProcessorInputPhaseSchema, ProcessorInputStepPhaseSchema, ProcessorMessageContentSchema, ProcessorMessageSchema, ProcessorOutputResultPhaseSchema, ProcessorOutputStepPhaseSchema, ProcessorOutputStreamPhaseSchema, ProcessorRunner, ProcessorState, ProcessorStepInputSchema, ProcessorStepOutputSchema, ProcessorStepSchema, PromptInjectionDetector, ReasoningPartSchema, SemanticRecall, SkillSearchProcessor, SkillsProcessor, SourcePartSchema, StepStartPartSchema, StructuredOutputProcessor, SystemPromptScrubber, TextPartSchema, TokenLimiterProcessor as TokenLimiter, TokenLimiterProcessor, ToolCallFilter, ToolInvocationPartSchema, ToolSearchProcessor, UnicodeNormalizer, WorkingMemory, WorkspaceInstructionsProcessor, globalEmbeddingCache, isProcessorWorkflow } from '../chunk-
|
|
1
|
+
export { AgentsMDInjector, BaseProcessor, BatchPartsProcessor, FilePartSchema, ImagePartSchema, LanguageDetector, MessageContentSchema, MessageHistory, MessagePartSchema, ModerationProcessor, PIIDetector, PrefillErrorHandler, ProcessorInputPhaseSchema, ProcessorInputStepPhaseSchema, ProcessorMessageContentSchema, ProcessorMessageSchema, ProcessorOutputResultPhaseSchema, ProcessorOutputStepPhaseSchema, ProcessorOutputStreamPhaseSchema, ProcessorRunner, ProcessorState, ProcessorStepInputSchema, ProcessorStepOutputSchema, ProcessorStepSchema, PromptInjectionDetector, ReasoningPartSchema, SemanticRecall, SkillSearchProcessor, SkillsProcessor, SourcePartSchema, StepStartPartSchema, StructuredOutputProcessor, SystemPromptScrubber, TextPartSchema, TokenLimiterProcessor as TokenLimiter, TokenLimiterProcessor, ToolCallFilter, ToolInvocationPartSchema, ToolSearchProcessor, UnicodeNormalizer, WorkingMemory, WorkspaceInstructionsProcessor, globalEmbeddingCache, isProcessorWorkflow } from '../chunk-DLDGEMBE.js';
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
|
3
3
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { Agent } from '../../agent/index.js';
|
|
2
2
|
import type { StructuredOutputOptions } from '../../agent/types.js';
|
|
3
3
|
import type { Mastra } from '../../mastra/index.js';
|
|
4
|
-
import type { ObservabilityContext } from '../../observability/index.js';
|
|
5
4
|
import type { StandardSchemaWithJSON } from '../../schema/index.js';
|
|
6
5
|
import type { ChunkType } from '../../stream/index.js';
|
|
7
|
-
import type { Processor } from '../index.js';
|
|
6
|
+
import type { ProcessOutputStreamArgs, Processor } from '../index.js';
|
|
8
7
|
export type { StructuredOutputOptions } from '../../agent/types.js';
|
|
9
8
|
export declare const STRUCTURED_OUTPUT_PROCESSOR_NAME = "structured-output";
|
|
10
9
|
/**
|
|
@@ -24,6 +23,10 @@ export declare class StructuredOutputProcessor<OUTPUT extends {}> implements Pro
|
|
|
24
23
|
readonly name = "Structured Output";
|
|
25
24
|
schema: StandardSchemaWithJSON<OUTPUT>;
|
|
26
25
|
private structuringAgent;
|
|
26
|
+
private structuringModel;
|
|
27
|
+
private structuringInstructions;
|
|
28
|
+
private agent?;
|
|
29
|
+
private useAgent;
|
|
27
30
|
private errorStrategy;
|
|
28
31
|
private fallbackValue?;
|
|
29
32
|
private isStructuringAgentStreamStarted;
|
|
@@ -32,16 +35,14 @@ export declare class StructuredOutputProcessor<OUTPUT extends {}> implements Pro
|
|
|
32
35
|
private logger?;
|
|
33
36
|
constructor(options: StructuredOutputOptions<OUTPUT>);
|
|
34
37
|
__registerMastra(mastra: Mastra): void;
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
streamParts: ChunkType[];
|
|
38
|
-
state: Record<string, unknown> & {
|
|
39
|
-
controller?: TransformStreamDefaultController<ChunkType<OUTPUT>>;
|
|
40
|
-
};
|
|
41
|
-
abort: (reason?: string, options?: unknown) => never;
|
|
42
|
-
retryCount: number;
|
|
43
|
-
} & Partial<ObservabilityContext>): Promise<ChunkType | null | undefined>;
|
|
38
|
+
setAgent(agent: Agent<any, any, any>): void;
|
|
39
|
+
processOutputStream(args: ProcessOutputStreamArgs): Promise<ChunkType | null | undefined>;
|
|
44
40
|
private processAndEmitStructuredOutput;
|
|
41
|
+
/**
|
|
42
|
+
* Get the structuring stream, using the explicit agent with model override and
|
|
43
|
+
* read-only memory when request context provides thread info, falling back to the bare internal agent.
|
|
44
|
+
*/
|
|
45
|
+
private getStructuringStream;
|
|
45
46
|
/**
|
|
46
47
|
* Build a structured markdown prompt from stream parts
|
|
47
48
|
* Collects chunks by type and formats them in a consistent structure
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"structured-output.d.ts","sourceRoot":"","sources":["../../../src/processors/processors/structured-output.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"structured-output.d.ts","sourceRoot":"","sources":["../../../src/processors/processors/structured-output.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AAEpC,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,mBAAmB,CAAC;AAKjE,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AAI3C,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,cAAc,CAAC;AAE3D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAE9C,OAAO,KAAK,EAAE,uBAAuB,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AAEnE,YAAY,EAAE,uBAAuB,EAAE,MAAM,mBAAmB,CAAC;AAEjE,eAAO,MAAM,gCAAgC,sBAAsB,CAAC;AAEpE;;;;;;;;;;;GAWG;AACH,qBAAa,yBAAyB,CAAC,MAAM,SAAS,EAAE,CAAE,YAAW,SAAS,CAAC,mBAAmB,CAAC;IACjG,QAAQ,CAAC,EAAE,uBAAoC;IAC/C,QAAQ,CAAC,IAAI,uBAAuB;IAE7B,MAAM,EAAE,sBAAsB,CAAC,MAAM,CAAC,CAAC;IAC9C,OAAO,CAAC,gBAAgB,CAA6B;IACrD,OAAO,CAAC,gBAAgB,CAAoB;IAC5C,OAAO,CAAC,uBAAuB,CAAS;IACxC,OAAO,CAAC,KAAK,CAAC,CAAuB;IACrC,OAAO,CAAC,QAAQ,CAAS;IACzB,OAAO,CAAC,aAAa,CAAiC;IACtD,OAAO,CAAC,aAAa,CAAC,CAAS;IAC/B,OAAO,CAAC,+BAA+B,CAAS;IAChD,OAAO,CAAC,mBAAmB,CAAC,CAAU;IACtC,OAAO,CAAC,eAAe,CAAC,CAAkB;IAC1C,OAAO,CAAC,MAAM,CAAC,CAAgB;gBAEnB,OAAO,EAAE,uBAAuB,CAAC,MAAM,CAAC;IAoCpD,gBAAgB,CAAC,MAAM,EAAE,MAAM;IAI/B,QAAQ,CAAC,KAAK,EAAE,KAAK,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,CAAC;IAI9B,mBAAmB,CAAC,IAAI,EAAE,uBAAuB,GAAG,OAAO,CAAC,SAAS,GAAG,IAAI,GAAG,SAAS,CAAC;YA0BjF,8BAA8B;IAqE5C;;;OAGG;YACW,oBAAoB;IA4ElC;;;OAGG;IACH,OAAO,CAAC,sBAAsB;IA6D9B;;OAEG;IACH,OAAO,CAAC,oBAAoB;IAe5B;;OAEG;IACH,OAAO,CAAC,WAAW;IAkBnB,OAAO,CAAC,eAAe;CAgBxB"}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var chunk4MLJKGJI_cjs = require('./chunk-4MLJKGJI.cjs');
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
Object.defineProperty(exports, "GatewayRegistry", {
|
|
8
|
+
enumerable: true,
|
|
9
|
+
get: function () { return chunk4MLJKGJI_cjs.GatewayRegistry; }
|
|
10
|
+
});
|
|
11
|
+
Object.defineProperty(exports, "PROVIDER_MODELS", {
|
|
12
|
+
enumerable: true,
|
|
13
|
+
get: function () { return chunk4MLJKGJI_cjs.PROVIDER_MODELS; }
|
|
14
|
+
});
|
|
15
|
+
Object.defineProperty(exports, "PROVIDER_REGISTRY", {
|
|
16
|
+
enumerable: true,
|
|
17
|
+
get: function () { return chunk4MLJKGJI_cjs.PROVIDER_REGISTRY; }
|
|
18
|
+
});
|
|
19
|
+
Object.defineProperty(exports, "getProviderConfig", {
|
|
20
|
+
enumerable: true,
|
|
21
|
+
get: function () { return chunk4MLJKGJI_cjs.getProviderConfig; }
|
|
22
|
+
});
|
|
23
|
+
Object.defineProperty(exports, "getRegisteredProviders", {
|
|
24
|
+
enumerable: true,
|
|
25
|
+
get: function () { return chunk4MLJKGJI_cjs.getRegisteredProviders; }
|
|
26
|
+
});
|
|
27
|
+
Object.defineProperty(exports, "isOfflineMode", {
|
|
28
|
+
enumerable: true,
|
|
29
|
+
get: function () { return chunk4MLJKGJI_cjs.isOfflineMode; }
|
|
30
|
+
});
|
|
31
|
+
Object.defineProperty(exports, "isProviderRegistered", {
|
|
32
|
+
enumerable: true,
|
|
33
|
+
get: function () { return chunk4MLJKGJI_cjs.isProviderRegistered; }
|
|
34
|
+
});
|
|
35
|
+
Object.defineProperty(exports, "isValidModelId", {
|
|
36
|
+
enumerable: true,
|
|
37
|
+
get: function () { return chunk4MLJKGJI_cjs.isValidModelId; }
|
|
38
|
+
});
|
|
39
|
+
Object.defineProperty(exports, "parseModelString", {
|
|
40
|
+
enumerable: true,
|
|
41
|
+
get: function () { return chunk4MLJKGJI_cjs.parseModelString; }
|
|
42
|
+
});
|
|
43
|
+
//# sourceMappingURL=provider-registry-4FV6CXQI.cjs.map
|
|
44
|
+
//# sourceMappingURL=provider-registry-4FV6CXQI.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":[],"names":[],"mappings":"","file":"provider-registry-
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"provider-registry-4FV6CXQI.cjs"}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export { GatewayRegistry, PROVIDER_MODELS, PROVIDER_REGISTRY, getProviderConfig, getRegisteredProviders, isOfflineMode, isProviderRegistered, isValidModelId, parseModelString } from './chunk-NTGYHDWA.js';
|
|
2
|
+
//# sourceMappingURL=provider-registry-EAKPPU44.js.map
|
|
3
|
+
//# sourceMappingURL=provider-registry-EAKPPU44.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":[],"names":[],"mappings":"","file":"provider-registry-
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"provider-registry-EAKPPU44.js"}
|