@mastra/core 1.23.0-alpha.4 → 1.23.0-alpha.5
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 +8 -8
- package/dist/agent/index.js +1 -1
- package/dist/base.cjs +2 -2
- package/dist/base.d.ts.map +1 -1
- package/dist/base.js +1 -1
- package/dist/browser/index.cjs +6 -6
- package/dist/browser/index.js +3 -3
- package/dist/bundler/index.cjs +2 -2
- package/dist/bundler/index.js +1 -1
- package/dist/cache/index.cjs +3 -3
- package/dist/cache/index.js +1 -1
- package/dist/channels/index.cjs +4 -4
- package/dist/channels/index.js +1 -1
- package/dist/{chunk-CIV5MFO6.cjs → chunk-25EDFTQD.cjs} +4 -4
- package/dist/{chunk-CIV5MFO6.cjs.map → chunk-25EDFTQD.cjs.map} +1 -1
- package/dist/{chunk-K6W2C7PA.js → chunk-3APK6ZID.js} +3 -3
- package/dist/{chunk-K6W2C7PA.js.map → chunk-3APK6ZID.js.map} +1 -1
- package/dist/{chunk-YRDMMXBW.cjs → chunk-47RKHZIP.cjs} +34 -2
- package/dist/chunk-47RKHZIP.cjs.map +1 -0
- package/dist/{chunk-JK5YBBUS.cjs → chunk-4W26D7S6.cjs} +13 -13
- package/dist/chunk-4W26D7S6.cjs.map +1 -0
- package/dist/{chunk-7273BIRR.js → chunk-6UQKQBIB.js} +3 -3
- package/dist/{chunk-7273BIRR.js.map → chunk-6UQKQBIB.js.map} +1 -1
- package/dist/{chunk-G5WUD7SF.js → chunk-72EQLBZY.js} +3 -3
- package/dist/{chunk-G5WUD7SF.js.map → chunk-72EQLBZY.js.map} +1 -1
- package/dist/{chunk-C3G6OQ52.cjs → chunk-7DONY7OL.cjs} +10 -11
- package/dist/chunk-7DONY7OL.cjs.map +1 -0
- package/dist/{chunk-HBO2PK7W.cjs → chunk-7GW2TQXP.cjs} +4 -3
- package/dist/chunk-7GW2TQXP.cjs.map +1 -0
- package/dist/{chunk-74IXDLKF.cjs → chunk-7STIIXEL.cjs} +3 -3
- package/dist/{chunk-74IXDLKF.cjs.map → chunk-7STIIXEL.cjs.map} +1 -1
- package/dist/{chunk-44P7C37G.js → chunk-BMS7MLQV.js} +31 -3
- package/dist/chunk-BMS7MLQV.js.map +1 -0
- package/dist/{chunk-GEI2HTYE.js → chunk-C77V6J36.js} +3 -3
- package/dist/{chunk-GEI2HTYE.js.map → chunk-C77V6J36.js.map} +1 -1
- package/dist/{chunk-ANFGVHG2.cjs → chunk-DAQ4JZQA.cjs} +4 -4
- package/dist/{chunk-ANFGVHG2.cjs.map → chunk-DAQ4JZQA.cjs.map} +1 -1
- package/dist/{chunk-M3LRSDLL.js → chunk-DBBWTK24.js} +4 -3
- package/dist/chunk-DBBWTK24.js.map +1 -0
- package/dist/{chunk-JSG6FULW.cjs → chunk-DO4JBKMT.cjs} +109 -110
- package/dist/chunk-DO4JBKMT.cjs.map +1 -0
- package/dist/{chunk-PGXL3YYH.js → chunk-EG3UGEUZ.js} +4 -4
- package/dist/{chunk-PGXL3YYH.js.map → chunk-EG3UGEUZ.js.map} +1 -1
- package/dist/{chunk-KRDAO5BB.js → chunk-EXORPYDN.js} +3 -3
- package/dist/{chunk-KRDAO5BB.js.map → chunk-EXORPYDN.js.map} +1 -1
- package/dist/{chunk-DKK77FIJ.cjs → chunk-FCQNDFEW.cjs} +7 -7
- package/dist/chunk-FCQNDFEW.cjs.map +1 -0
- package/dist/{chunk-SQXNHM6M.cjs → chunk-FSHOQBGF.cjs} +28 -28
- package/dist/{chunk-SQXNHM6M.cjs.map → chunk-FSHOQBGF.cjs.map} +1 -1
- package/dist/{chunk-3EXOZA2Y.js → chunk-HQXVBGBM.js} +3 -3
- package/dist/{chunk-3EXOZA2Y.js.map → chunk-HQXVBGBM.js.map} +1 -1
- package/dist/{chunk-UUVQS3OG.js → chunk-HWAEQSOO.js} +12 -12
- package/dist/{chunk-UUVQS3OG.js.map → chunk-HWAEQSOO.js.map} +1 -1
- package/dist/{chunk-OF675HEC.cjs → chunk-I4YMMVQ3.cjs} +4 -4
- package/dist/{chunk-OF675HEC.cjs.map → chunk-I4YMMVQ3.cjs.map} +1 -1
- package/dist/{chunk-C264FG5X.js → chunk-I6XSSR4Z.js} +8 -8
- package/dist/{chunk-C264FG5X.js.map → chunk-I6XSSR4Z.js.map} +1 -1
- package/dist/{chunk-JAAICSXU.cjs → chunk-JF3WPB75.cjs} +32 -32
- package/dist/{chunk-JAAICSXU.cjs.map → chunk-JF3WPB75.cjs.map} +1 -1
- package/dist/{chunk-R577LMHJ.cjs → chunk-JJFGNYVY.cjs} +7 -7
- package/dist/{chunk-R577LMHJ.cjs.map → chunk-JJFGNYVY.cjs.map} +1 -1
- package/dist/{chunk-MISEF5LK.js → chunk-JNXWDPCZ.js} +6 -6
- package/dist/chunk-JNXWDPCZ.js.map +1 -0
- package/dist/{chunk-AQUKI2MV.js → chunk-L2MCWEEX.js} +6 -6
- package/dist/{chunk-AQUKI2MV.js.map → chunk-L2MCWEEX.js.map} +1 -1
- package/dist/{chunk-6VIWRHC3.js → chunk-QIJFD7ZC.js} +5 -5
- package/dist/{chunk-6VIWRHC3.js.map → chunk-QIJFD7ZC.js.map} +1 -1
- package/dist/{chunk-7QI6WHSE.js → chunk-QRK2HWHI.js} +8 -8
- package/dist/{chunk-7QI6WHSE.js.map → chunk-QRK2HWHI.js.map} +1 -1
- package/dist/{chunk-KCVSVDQ2.js → chunk-QYQSXRFZ.js} +13 -14
- package/dist/chunk-QYQSXRFZ.js.map +1 -0
- package/dist/{chunk-T26CFBWF.cjs → chunk-RAD2NM47.cjs} +4 -4
- package/dist/{chunk-T26CFBWF.cjs.map → chunk-RAD2NM47.cjs.map} +1 -1
- package/dist/{chunk-NBOTSCZC.js → chunk-TG46FM6X.js} +4 -4
- package/dist/{chunk-NBOTSCZC.js.map → chunk-TG46FM6X.js.map} +1 -1
- package/dist/{chunk-Y67VWDR7.cjs → chunk-TKH2A57J.cjs} +185 -185
- package/dist/{chunk-Y67VWDR7.cjs.map → chunk-TKH2A57J.cjs.map} +1 -1
- package/dist/{chunk-DBN5B2LH.cjs → chunk-UENWRQLR.cjs} +18 -18
- package/dist/{chunk-DBN5B2LH.cjs.map → chunk-UENWRQLR.cjs.map} +1 -1
- package/dist/{chunk-ZOLIH66J.cjs → chunk-V7AX2MSJ.cjs} +20 -20
- package/dist/{chunk-ZOLIH66J.cjs.map → chunk-V7AX2MSJ.cjs.map} +1 -1
- package/dist/{chunk-Z2IR7J5I.js → chunk-VO6R5RZT.js} +8 -9
- package/dist/chunk-VO6R5RZT.js.map +1 -0
- package/dist/{chunk-DNW46JHP.js → chunk-WENZPAHS.js} +4 -4
- package/dist/chunk-WENZPAHS.js.map +1 -0
- package/dist/{chunk-HIC3WGQU.cjs → chunk-X6CDTXAM.cjs} +11 -11
- package/dist/{chunk-HIC3WGQU.cjs.map → chunk-X6CDTXAM.cjs.map} +1 -1
- package/dist/{chunk-CHY6AP6N.cjs → chunk-XFLQVMNH.cjs} +26 -26
- package/dist/{chunk-CHY6AP6N.cjs.map → chunk-XFLQVMNH.cjs.map} +1 -1
- package/dist/{chunk-OFABGAOY.cjs → chunk-XZCYFQ4N.cjs} +64 -65
- package/dist/chunk-XZCYFQ4N.cjs.map +1 -0
- package/dist/{chunk-LBL7GNPF.cjs → chunk-YR7XRMDN.cjs} +10 -10
- package/dist/{chunk-LBL7GNPF.cjs.map → chunk-YR7XRMDN.cjs.map} +1 -1
- package/dist/{chunk-XGUUUEE4.js → chunk-Z34TVGNZ.js} +4 -4
- package/dist/{chunk-XGUUUEE4.js.map → chunk-Z34TVGNZ.js.map} +1 -1
- package/dist/{chunk-EHBTASCW.js → chunk-Z63F3XHK.js} +5 -6
- package/dist/chunk-Z63F3XHK.js.map +1 -0
- package/dist/{chunk-KJDRVBAH.cjs → chunk-Z67JQNEH.cjs} +11 -11
- package/dist/{chunk-KJDRVBAH.cjs.map → chunk-Z67JQNEH.cjs.map} +1 -1
- package/dist/{chunk-QVTTP5HC.js → chunk-ZCBMZ24O.js} +3 -3
- package/dist/{chunk-QVTTP5HC.js.map → chunk-ZCBMZ24O.js.map} +1 -1
- package/dist/{chunk-NMO7ITAY.js → chunk-ZHYPWNWS.js} +5 -5
- package/dist/{chunk-NMO7ITAY.js.map → chunk-ZHYPWNWS.js.map} +1 -1
- package/dist/{chunk-B7JN64YW.cjs → chunk-ZUN5CMDY.cjs} +86 -86
- package/dist/{chunk-B7JN64YW.cjs.map → chunk-ZUN5CMDY.cjs.map} +1 -1
- package/dist/datasets/index.cjs +17 -17
- package/dist/datasets/index.js +2 -2
- package/dist/deployer/index.cjs +2 -2
- package/dist/deployer/index.js +1 -1
- package/dist/docs/SKILL.md +2 -2
- package/dist/docs/assets/SOURCE_MAP.json +499 -499
- package/dist/docs/references/reference-templates-overview.md +88 -14
- package/dist/evals/index.cjs +23 -23
- package/dist/evals/index.js +3 -3
- package/dist/evals/scoreTraces/index.cjs +7 -7
- package/dist/evals/scoreTraces/index.js +3 -3
- package/dist/harness/index.cjs +13 -13
- package/dist/harness/index.js +7 -7
- 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/logger/default-logger.d.ts +1 -1
- package/dist/logger/default-logger.d.ts.map +1 -1
- package/dist/logger/index.cjs +12 -12
- package/dist/logger/index.js +2 -2
- package/dist/loop/index.cjs +14 -14
- package/dist/loop/index.js +1 -1
- package/dist/mastra/index.cjs +2 -2
- package/dist/mastra/index.js +1 -1
- package/dist/mastra-O4WWP6N5.js +3 -0
- package/dist/{mastra-5WYO5ZWG.js.map → mastra-O4WWP6N5.js.map} +1 -1
- package/dist/mastra-VHS7LVQG.cjs +12 -0
- package/dist/{mastra-LIISVKXT.cjs.map → mastra-VHS7LVQG.cjs.map} +1 -1
- package/dist/mcp/index.cjs +4 -4
- package/dist/mcp/index.js +2 -2
- package/dist/memory/index.cjs +17 -17
- package/dist/memory/index.js +1 -1
- package/dist/models-dev-3IPTEPRM.cjs +12 -0
- package/dist/{models-dev-GD4LL56A.cjs.map → models-dev-3IPTEPRM.cjs.map} +1 -1
- package/dist/models-dev-4W7JQVWR.js +3 -0
- package/dist/{models-dev-CJ7IIPNG.js.map → models-dev-4W7JQVWR.js.map} +1 -1
- package/dist/netlify-FZBGNFDI.js +3 -0
- package/dist/{netlify-PMGHRONJ.js.map → netlify-FZBGNFDI.js.map} +1 -1
- package/dist/netlify-XT32D45G.cjs +12 -0
- package/dist/{netlify-6V7UBVTK.cjs.map → netlify-XT32D45G.cjs.map} +1 -1
- package/dist/observability/context-storage.cjs +28 -14
- package/dist/observability/context-storage.cjs.map +1 -1
- package/dist/observability/context-storage.d.ts.map +1 -1
- package/dist/observability/context-storage.js +28 -1
- package/dist/observability/context-storage.js.map +1 -1
- package/dist/observability/index.cjs +26 -10
- package/dist/observability/index.js +1 -1
- package/dist/observability/utils.d.ts +27 -0
- package/dist/observability/utils.d.ts.map +1 -1
- package/dist/processor-provider/index.cjs +10 -10
- package/dist/processor-provider/index.js +1 -1
- package/dist/processors/index.cjs +44 -44
- package/dist/processors/index.js +1 -1
- package/dist/provider-registry-AWL2JDVF.js +3 -0
- package/dist/{provider-registry-JV46DWD7.js.map → provider-registry-AWL2JDVF.js.map} +1 -1
- package/dist/provider-registry-X5PBSJ2G.cjs +40 -0
- package/dist/{provider-registry-U26G7C4O.cjs.map → provider-registry-X5PBSJ2G.cjs.map} +1 -1
- package/dist/relevance/index.cjs +3 -3
- package/dist/relevance/index.js +1 -1
- package/dist/server/index.cjs +5 -5
- package/dist/server/index.js +2 -2
- package/dist/storage/constants.cjs +56 -56
- package/dist/storage/constants.js +1 -1
- package/dist/storage/index.cjs +286 -286
- package/dist/storage/index.js +3 -3
- package/dist/stream/index.cjs +8 -8
- package/dist/stream/index.js +1 -1
- package/dist/test-utils/llm-mock.cjs +4 -4
- package/dist/test-utils/llm-mock.js +1 -1
- package/dist/tool-loop-agent/index.cjs +4 -4
- package/dist/tool-loop-agent/index.js +1 -1
- package/dist/tts/index.cjs +2 -2
- package/dist/tts/index.js +1 -1
- package/dist/utils.cjs +25 -25
- package/dist/utils.js +1 -1
- package/dist/vector/index.cjs +9 -9
- package/dist/vector/index.js +2 -2
- 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 +24 -24
- package/dist/workflows/index.js +1 -1
- package/dist/workspace/index.cjs +68 -68
- package/dist/workspace/index.js +1 -1
- package/package.json +5 -5
- package/dist/chunk-2DKOLMVJ.js +0 -28
- package/dist/chunk-2DKOLMVJ.js.map +0 -1
- package/dist/chunk-44P7C37G.js.map +0 -1
- package/dist/chunk-C3G6OQ52.cjs.map +0 -1
- package/dist/chunk-D5FMOLQZ.cjs +0 -32
- package/dist/chunk-D5FMOLQZ.cjs.map +0 -1
- package/dist/chunk-DKK77FIJ.cjs.map +0 -1
- package/dist/chunk-DNW46JHP.js.map +0 -1
- package/dist/chunk-EHBTASCW.js.map +0 -1
- package/dist/chunk-HBO2PK7W.cjs.map +0 -1
- package/dist/chunk-JK5YBBUS.cjs.map +0 -1
- package/dist/chunk-JSG6FULW.cjs.map +0 -1
- package/dist/chunk-KCVSVDQ2.js.map +0 -1
- package/dist/chunk-M3LRSDLL.js.map +0 -1
- package/dist/chunk-MISEF5LK.js.map +0 -1
- package/dist/chunk-OFABGAOY.cjs.map +0 -1
- package/dist/chunk-YRDMMXBW.cjs.map +0 -1
- package/dist/chunk-Z2IR7J5I.js.map +0 -1
- package/dist/mastra-5WYO5ZWG.js +0 -3
- package/dist/mastra-LIISVKXT.cjs +0 -12
- package/dist/models-dev-CJ7IIPNG.js +0 -3
- package/dist/models-dev-GD4LL56A.cjs +0 -12
- package/dist/netlify-6V7UBVTK.cjs +0 -12
- package/dist/netlify-PMGHRONJ.js +0 -3
- package/dist/provider-registry-JV46DWD7.js +0 -3
- package/dist/provider-registry-U26G7C4O.cjs +0 -40
|
@@ -1,28 +1,27 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
+
var chunkX6CDTXAM_cjs = require('./chunk-X6CDTXAM.cjs');
|
|
4
|
+
var chunkRAD2NM47_cjs = require('./chunk-RAD2NM47.cjs');
|
|
3
5
|
var chunkZCBG4ZQT_cjs = require('./chunk-ZCBG4ZQT.cjs');
|
|
4
|
-
var
|
|
5
|
-
var chunkT26CFBWF_cjs = require('./chunk-T26CFBWF.cjs');
|
|
6
|
-
var chunkSQXNHM6M_cjs = require('./chunk-SQXNHM6M.cjs');
|
|
6
|
+
var chunkFSHOQBGF_cjs = require('./chunk-FSHOQBGF.cjs');
|
|
7
7
|
var chunkWAPY5X7M_cjs = require('./chunk-WAPY5X7M.cjs');
|
|
8
8
|
var chunkY3APFUXZ_cjs = require('./chunk-Y3APFUXZ.cjs');
|
|
9
9
|
var chunkCFMZZDO2_cjs = require('./chunk-CFMZZDO2.cjs');
|
|
10
|
+
var chunkDAQ4JZQA_cjs = require('./chunk-DAQ4JZQA.cjs');
|
|
10
11
|
var chunkOQDRPRKM_cjs = require('./chunk-OQDRPRKM.cjs');
|
|
11
12
|
var chunkMR7ZWBL6_cjs = require('./chunk-MR7ZWBL6.cjs');
|
|
12
|
-
var
|
|
13
|
-
var
|
|
14
|
-
var
|
|
15
|
-
var chunkC3G6OQ52_cjs = require('./chunk-C3G6OQ52.cjs');
|
|
16
|
-
var chunkD5FMOLQZ_cjs = require('./chunk-D5FMOLQZ.cjs');
|
|
17
|
-
var chunkB4OOPFD3_cjs = require('./chunk-B4OOPFD3.cjs');
|
|
13
|
+
var chunkZUN5CMDY_cjs = require('./chunk-ZUN5CMDY.cjs');
|
|
14
|
+
var chunk4W26D7S6_cjs = require('./chunk-4W26D7S6.cjs');
|
|
15
|
+
var chunk7DONY7OL_cjs = require('./chunk-7DONY7OL.cjs');
|
|
18
16
|
var chunkKJBMTK5B_cjs = require('./chunk-KJBMTK5B.cjs');
|
|
19
17
|
var chunkLDLHW3QN_cjs = require('./chunk-LDLHW3QN.cjs');
|
|
20
18
|
var chunkXB4FLS7A_cjs = require('./chunk-XB4FLS7A.cjs');
|
|
21
|
-
var
|
|
19
|
+
var chunkB4OOPFD3_cjs = require('./chunk-B4OOPFD3.cjs');
|
|
20
|
+
var chunk47RKHZIP_cjs = require('./chunk-47RKHZIP.cjs');
|
|
22
21
|
var chunk5WBEMKE2_cjs = require('./chunk-5WBEMKE2.cjs');
|
|
23
22
|
var chunk4U7ZLI36_cjs = require('./chunk-4U7ZLI36.cjs');
|
|
24
|
-
var
|
|
25
|
-
var
|
|
23
|
+
var chunkFCQNDFEW_cjs = require('./chunk-FCQNDFEW.cjs');
|
|
24
|
+
var chunk7GW2TQXP_cjs = require('./chunk-7GW2TQXP.cjs');
|
|
26
25
|
var chunkBVWXTWXP_cjs = require('./chunk-BVWXTWXP.cjs');
|
|
27
26
|
var v4 = require('zod/v4');
|
|
28
27
|
var crypto2 = require('crypto');
|
|
@@ -1101,7 +1100,7 @@ var ProcessorState = class {
|
|
|
1101
1100
|
this.span = parentSpan?.createChildSpan({
|
|
1102
1101
|
type: "processor_run" /* PROCESSOR_RUN */,
|
|
1103
1102
|
name: `output stream processor: ${options.processorName}`,
|
|
1104
|
-
entityType:
|
|
1103
|
+
entityType: chunk47RKHZIP_cjs.EntityType.OUTPUT_PROCESSOR,
|
|
1105
1104
|
entityName: options.processorName,
|
|
1106
1105
|
attributes: {
|
|
1107
1106
|
processorExecutor: "legacy",
|
|
@@ -1278,7 +1277,7 @@ var ProcessorRunner = class _ProcessorRunner {
|
|
|
1278
1277
|
const processorSpan = parentSpan?.createChildSpan({
|
|
1279
1278
|
type: "processor_run" /* PROCESSOR_RUN */,
|
|
1280
1279
|
name: `output processor: ${processor.id}`,
|
|
1281
|
-
entityType:
|
|
1280
|
+
entityType: chunk47RKHZIP_cjs.EntityType.OUTPUT_PROCESSOR,
|
|
1282
1281
|
entityId: processor.id,
|
|
1283
1282
|
entityName: processor.name,
|
|
1284
1283
|
attributes: {
|
|
@@ -1578,7 +1577,7 @@ var ProcessorRunner = class _ProcessorRunner {
|
|
|
1578
1577
|
const processorSpan = parentSpan?.createChildSpan({
|
|
1579
1578
|
type: "processor_run" /* PROCESSOR_RUN */,
|
|
1580
1579
|
name: `input processor: ${processor.id}`,
|
|
1581
|
-
entityType:
|
|
1580
|
+
entityType: chunk47RKHZIP_cjs.EntityType.INPUT_PROCESSOR,
|
|
1582
1581
|
entityId: processor.id,
|
|
1583
1582
|
entityName: processor.name,
|
|
1584
1583
|
attributes: {
|
|
@@ -1777,7 +1776,7 @@ var ProcessorRunner = class _ProcessorRunner {
|
|
|
1777
1776
|
const processorSpan = currentSpan?.createChildSpan({
|
|
1778
1777
|
type: "processor_run" /* PROCESSOR_RUN */,
|
|
1779
1778
|
name: `input step processor: ${processor.id}`,
|
|
1780
|
-
entityType:
|
|
1779
|
+
entityType: chunk47RKHZIP_cjs.EntityType.INPUT_STEP_PROCESSOR,
|
|
1781
1780
|
entityId: processor.id,
|
|
1782
1781
|
entityName: processor.name,
|
|
1783
1782
|
attributes: {
|
|
@@ -1942,7 +1941,7 @@ var ProcessorRunner = class _ProcessorRunner {
|
|
|
1942
1941
|
const processorSpan = parentSpan?.createChildSpan({
|
|
1943
1942
|
type: "processor_run" /* PROCESSOR_RUN */,
|
|
1944
1943
|
name: `output step processor: ${processor.id}`,
|
|
1945
|
-
entityType:
|
|
1944
|
+
entityType: chunk47RKHZIP_cjs.EntityType.OUTPUT_STEP_PROCESSOR,
|
|
1946
1945
|
entityId: processor.id,
|
|
1947
1946
|
entityName: processor.name,
|
|
1948
1947
|
attributes: {
|
|
@@ -2079,7 +2078,7 @@ var ProcessorRunner = class _ProcessorRunner {
|
|
|
2079
2078
|
}
|
|
2080
2079
|
const { model: _model, ...rest } = result;
|
|
2081
2080
|
if (result.model) {
|
|
2082
|
-
const resolvedModel = await
|
|
2081
|
+
const resolvedModel = await chunkZUN5CMDY_cjs.resolveModelConfig(result.model);
|
|
2083
2082
|
const isSupported = isSupportedLanguageModel(resolvedModel);
|
|
2084
2083
|
if (!isSupported) {
|
|
2085
2084
|
throw new chunk4U7ZLI36_cjs.MastraError({
|
|
@@ -2125,7 +2124,7 @@ function safeError(controller, error) {
|
|
|
2125
2124
|
return false;
|
|
2126
2125
|
}
|
|
2127
2126
|
}
|
|
2128
|
-
var MastraModelInput = class extends
|
|
2127
|
+
var MastraModelInput = class extends chunkFCQNDFEW_cjs.MastraBase {
|
|
2129
2128
|
initialize({ runId, createStream, onResult }) {
|
|
2130
2129
|
const self = this;
|
|
2131
2130
|
const stream = new ReadableStream({
|
|
@@ -2707,7 +2706,7 @@ function createDestructurableOutput(output) {
|
|
|
2707
2706
|
}
|
|
2708
2707
|
});
|
|
2709
2708
|
}
|
|
2710
|
-
var MastraModelOutput = class extends
|
|
2709
|
+
var MastraModelOutput = class extends chunkFCQNDFEW_cjs.MastraBase {
|
|
2711
2710
|
#status = "running";
|
|
2712
2711
|
#error;
|
|
2713
2712
|
#baseStream;
|
|
@@ -2824,7 +2823,7 @@ var MastraModelOutput = class extends chunkDKK77FIJ_cjs.MastraBase {
|
|
|
2824
2823
|
this.#transportRef = options.transportRef;
|
|
2825
2824
|
this.#returnScorerData = !!options.returnScorerData;
|
|
2826
2825
|
this.runId = options.runId;
|
|
2827
|
-
const resultSpan =
|
|
2826
|
+
const resultSpan = chunk47RKHZIP_cjs.getRootExportSpan(options.tracingContext?.currentSpan);
|
|
2828
2827
|
this.traceId = resultSpan?.externalTraceId;
|
|
2829
2828
|
this.spanId = resultSpan?.id;
|
|
2830
2829
|
this.#model = _model;
|
|
@@ -6466,11 +6465,11 @@ var ProcessorStepOutputSchema = v4.z.object({
|
|
|
6466
6465
|
var ProcessorStepSchema = ProcessorStepInputSchema;
|
|
6467
6466
|
|
|
6468
6467
|
// src/workflows/execution-engine.ts
|
|
6469
|
-
var ExecutionEngine = class extends
|
|
6468
|
+
var ExecutionEngine = class extends chunkFCQNDFEW_cjs.MastraBase {
|
|
6470
6469
|
mastra;
|
|
6471
6470
|
options;
|
|
6472
6471
|
constructor({ mastra, options }) {
|
|
6473
|
-
super({ name: "ExecutionEngine", component:
|
|
6472
|
+
super({ name: "ExecutionEngine", component: chunk7GW2TQXP_cjs.RegisteredLogger.WORKFLOW });
|
|
6474
6473
|
this.mastra = mastra;
|
|
6475
6474
|
this.options = options;
|
|
6476
6475
|
}
|
|
@@ -6800,7 +6799,7 @@ var createTimeTravelExecutionParams = (params) => {
|
|
|
6800
6799
|
result = void 0;
|
|
6801
6800
|
}
|
|
6802
6801
|
if (result) {
|
|
6803
|
-
const formattedResult =
|
|
6802
|
+
const formattedResult = chunk7DONY7OL_cjs.removeUndefinedValues(result);
|
|
6804
6803
|
stepResults[stepId] = formattedResult;
|
|
6805
6804
|
}
|
|
6806
6805
|
});
|
|
@@ -7358,7 +7357,7 @@ async function executeLoop(engine, params) {
|
|
|
7358
7357
|
options: {
|
|
7359
7358
|
type: "workflow_conditional_eval" /* WORKFLOW_CONDITIONAL_EVAL */,
|
|
7360
7359
|
name: `condition: '${entry.loopType}'`,
|
|
7361
|
-
input:
|
|
7360
|
+
input: chunk7DONY7OL_cjs.selectFields(result.output, ["stepResult", "output.text", "output.object", "messages"]),
|
|
7362
7361
|
attributes: {
|
|
7363
7362
|
conditionIndex: iteration
|
|
7364
7363
|
},
|
|
@@ -8530,7 +8529,7 @@ async function executeStep(engine, params) {
|
|
|
8530
8529
|
options: {
|
|
8531
8530
|
name: `workflow step: '${step.id}'`,
|
|
8532
8531
|
type: "workflow_step" /* WORKFLOW_STEP */,
|
|
8533
|
-
entityType:
|
|
8532
|
+
entityType: chunk47RKHZIP_cjs.EntityType.WORKFLOW_STEP,
|
|
8534
8533
|
entityId: step.id,
|
|
8535
8534
|
input: inputData,
|
|
8536
8535
|
tracingPolicy: engine.options?.tracingPolicy,
|
|
@@ -8618,7 +8617,7 @@ async function executeStep(engine, params) {
|
|
|
8618
8617
|
deprecationMessage: runCountDeprecationMessage,
|
|
8619
8618
|
logger: engine.getLogger()
|
|
8620
8619
|
});
|
|
8621
|
-
return
|
|
8620
|
+
return chunk47RKHZIP_cjs.executeWithContext({ span: stepSpan, fn: () => step.execute(proxiedData) });
|
|
8622
8621
|
};
|
|
8623
8622
|
let execResults;
|
|
8624
8623
|
const retries = step.retries ?? executionContext.retryConfig.attempts ?? 0;
|
|
@@ -9855,16 +9854,16 @@ function createStepFromProcessor(processor) {
|
|
|
9855
9854
|
const getProcessorEntityType = (phase) => {
|
|
9856
9855
|
switch (phase) {
|
|
9857
9856
|
case "input":
|
|
9858
|
-
return
|
|
9857
|
+
return chunk47RKHZIP_cjs.EntityType.INPUT_PROCESSOR;
|
|
9859
9858
|
case "inputStep":
|
|
9860
|
-
return
|
|
9859
|
+
return chunk47RKHZIP_cjs.EntityType.INPUT_STEP_PROCESSOR;
|
|
9861
9860
|
case "outputStream":
|
|
9862
9861
|
case "outputResult":
|
|
9863
|
-
return
|
|
9862
|
+
return chunk47RKHZIP_cjs.EntityType.OUTPUT_PROCESSOR;
|
|
9864
9863
|
case "outputStep":
|
|
9865
|
-
return
|
|
9864
|
+
return chunk47RKHZIP_cjs.EntityType.OUTPUT_STEP_PROCESSOR;
|
|
9866
9865
|
default:
|
|
9867
|
-
return
|
|
9866
|
+
return chunk47RKHZIP_cjs.EntityType.OUTPUT_PROCESSOR;
|
|
9868
9867
|
}
|
|
9869
9868
|
};
|
|
9870
9869
|
const getSpanNamePrefix = (phase) => {
|
|
@@ -10020,7 +10019,7 @@ function createStepFromProcessor(processor) {
|
|
|
10020
10019
|
};
|
|
10021
10020
|
const executePhaseWithSpan = async (fn) => {
|
|
10022
10021
|
try {
|
|
10023
|
-
const result = await
|
|
10022
|
+
const result = await chunk47RKHZIP_cjs.executeWithContext({ span: processorSpan, fn });
|
|
10024
10023
|
processorSpan?.end({ output: result });
|
|
10025
10024
|
return result;
|
|
10026
10025
|
} catch (error) {
|
|
@@ -10164,7 +10163,7 @@ function createStepFromProcessor(processor) {
|
|
|
10164
10163
|
processorSpan2 = parentSpan.createChildSpan({
|
|
10165
10164
|
type: "processor_run" /* PROCESSOR_RUN */,
|
|
10166
10165
|
name: `output stream processor: ${processor.id}`,
|
|
10167
|
-
entityType:
|
|
10166
|
+
entityType: chunk47RKHZIP_cjs.EntityType.OUTPUT_PROCESSOR,
|
|
10168
10167
|
entityId: processor.id,
|
|
10169
10168
|
entityName: processor.name ?? processor.id,
|
|
10170
10169
|
input: { phase, totalChunks: 0 },
|
|
@@ -10389,7 +10388,7 @@ function cloneWorkflow(workflow, opts) {
|
|
|
10389
10388
|
wf.commit();
|
|
10390
10389
|
return wf;
|
|
10391
10390
|
}
|
|
10392
|
-
var Workflow = class extends
|
|
10391
|
+
var Workflow = class extends chunkFCQNDFEW_cjs.MastraBase {
|
|
10393
10392
|
id;
|
|
10394
10393
|
description;
|
|
10395
10394
|
inputSchema;
|
|
@@ -10425,7 +10424,7 @@ var Workflow = class extends chunkDKK77FIJ_cjs.MastraBase {
|
|
|
10425
10424
|
options = {},
|
|
10426
10425
|
type
|
|
10427
10426
|
}) {
|
|
10428
|
-
super({ name: id, component:
|
|
10427
|
+
super({ name: id, component: chunk7GW2TQXP_cjs.RegisteredLogger.WORKFLOW });
|
|
10429
10428
|
this.id = id;
|
|
10430
10429
|
this.description = description;
|
|
10431
10430
|
this.inputSchema = inputSchema ? chunkXB4FLS7A_cjs.toStandardSchema(inputSchema) : inputSchema;
|
|
@@ -11426,10 +11425,10 @@ var Run = class {
|
|
|
11426
11425
|
...rest
|
|
11427
11426
|
}) {
|
|
11428
11427
|
const observabilityContext = chunkB4OOPFD3_cjs.resolveObservabilityContext(rest);
|
|
11429
|
-
const workflowSpan =
|
|
11428
|
+
const workflowSpan = chunk47RKHZIP_cjs.getOrCreateSpan({
|
|
11430
11429
|
type: "workflow_run" /* WORKFLOW_RUN */,
|
|
11431
11430
|
name: `workflow run: '${this.workflowId}'`,
|
|
11432
|
-
entityType:
|
|
11431
|
+
entityType: chunk47RKHZIP_cjs.EntityType.WORKFLOW_RUN,
|
|
11433
11432
|
entityId: this.workflowId,
|
|
11434
11433
|
entityName: this.workflowId,
|
|
11435
11434
|
input: inputData,
|
|
@@ -11946,10 +11945,10 @@ var Run = class {
|
|
|
11946
11945
|
traceId: effectiveTraceId,
|
|
11947
11946
|
parentSpanId: shouldUsePersistedParentSpan ? persistedTracingContext?.spanId : params.tracingOptions?.parentSpanId
|
|
11948
11947
|
};
|
|
11949
|
-
const workflowSpan =
|
|
11948
|
+
const workflowSpan = chunk47RKHZIP_cjs.getOrCreateSpan({
|
|
11950
11949
|
type: "workflow_run" /* WORKFLOW_RUN */,
|
|
11951
11950
|
name: `workflow run: '${this.workflowId}' (resumed)`,
|
|
11952
|
-
entityType:
|
|
11951
|
+
entityType: chunk47RKHZIP_cjs.EntityType.WORKFLOW_RUN,
|
|
11953
11952
|
entityId: this.workflowId,
|
|
11954
11953
|
entityName: this.workflowId,
|
|
11955
11954
|
input: resumeDataToUse,
|
|
@@ -12066,10 +12065,10 @@ var Run = class {
|
|
|
12066
12065
|
requestContextToUse.set(key, value);
|
|
12067
12066
|
}
|
|
12068
12067
|
}
|
|
12069
|
-
const workflowSpan =
|
|
12068
|
+
const workflowSpan = chunk47RKHZIP_cjs.getOrCreateSpan({
|
|
12070
12069
|
type: "workflow_run" /* WORKFLOW_RUN */,
|
|
12071
12070
|
name: `workflow run: '${this.workflowId}'`,
|
|
12072
|
-
entityType:
|
|
12071
|
+
entityType: chunk47RKHZIP_cjs.EntityType.WORKFLOW_RUN,
|
|
12073
12072
|
entityId: this.workflowId,
|
|
12074
12073
|
entityName: this.workflowId,
|
|
12075
12074
|
metadata: {
|
|
@@ -12164,11 +12163,11 @@ var Run = class {
|
|
|
12164
12163
|
requestContextToUse.set(key, value);
|
|
12165
12164
|
}
|
|
12166
12165
|
}
|
|
12167
|
-
const workflowSpan =
|
|
12166
|
+
const workflowSpan = chunk47RKHZIP_cjs.getOrCreateSpan({
|
|
12168
12167
|
type: "workflow_run" /* WORKFLOW_RUN */,
|
|
12169
12168
|
name: `workflow run: '${this.workflowId}'`,
|
|
12170
12169
|
input: inputData,
|
|
12171
|
-
entityType:
|
|
12170
|
+
entityType: chunk47RKHZIP_cjs.EntityType.WORKFLOW_RUN,
|
|
12172
12171
|
entityId: this.workflowId,
|
|
12173
12172
|
entityName: this.workflowId,
|
|
12174
12173
|
metadata: {
|
|
@@ -12543,10 +12542,10 @@ var MastraScorer = class _MastraScorer {
|
|
|
12543
12542
|
runId = crypto2.randomUUID();
|
|
12544
12543
|
}
|
|
12545
12544
|
const normalizedRequestContext = this.normalizeRunRequestContext(input.requestContext);
|
|
12546
|
-
const evalSpan =
|
|
12545
|
+
const evalSpan = chunk47RKHZIP_cjs.getOrCreateSpan({
|
|
12547
12546
|
type: "scorer_run" /* SCORER_RUN */,
|
|
12548
12547
|
name: `scorer run: '${this.id}'`,
|
|
12549
|
-
entityType:
|
|
12548
|
+
entityType: chunk47RKHZIP_cjs.EntityType.SCORER,
|
|
12550
12549
|
entityId: this.id,
|
|
12551
12550
|
input: {
|
|
12552
12551
|
input: input.input,
|
|
@@ -12586,7 +12585,7 @@ var MastraScorer = class _MastraScorer {
|
|
|
12586
12585
|
}
|
|
12587
12586
|
let workflowResult;
|
|
12588
12587
|
try {
|
|
12589
|
-
workflowResult = await
|
|
12588
|
+
workflowResult = await chunk47RKHZIP_cjs.executeWithContext({
|
|
12590
12589
|
span: evalSpan,
|
|
12591
12590
|
fn: () => workflowRun.start({
|
|
12592
12591
|
inputData: {
|
|
@@ -12692,7 +12691,7 @@ var MastraScorer = class _MastraScorer {
|
|
|
12692
12691
|
const stepSpan = scorerRunSpan?.createChildSpan({
|
|
12693
12692
|
type: "scorer_step" /* SCORER_STEP */,
|
|
12694
12693
|
name: `scorer step: '${scorerStep.name}'`,
|
|
12695
|
-
entityType:
|
|
12694
|
+
entityType: chunk47RKHZIP_cjs.EntityType.SCORER,
|
|
12696
12695
|
entityId: this.config.id ?? this.config.name,
|
|
12697
12696
|
input: context,
|
|
12698
12697
|
attributes: {
|
|
@@ -12709,7 +12708,7 @@ var MastraScorer = class _MastraScorer {
|
|
|
12709
12708
|
let prompt;
|
|
12710
12709
|
let judgeModel;
|
|
12711
12710
|
try {
|
|
12712
|
-
await
|
|
12711
|
+
await chunk47RKHZIP_cjs.executeWithContext({
|
|
12713
12712
|
span: stepSpan,
|
|
12714
12713
|
fn: async () => {
|
|
12715
12714
|
if (scorerStep.isPromptObject) {
|
|
@@ -12777,7 +12776,7 @@ var MastraScorer = class _MastraScorer {
|
|
|
12777
12776
|
validateInputs: false
|
|
12778
12777
|
}
|
|
12779
12778
|
});
|
|
12780
|
-
workflow.__setLogger(this.#mastra?.getLogger() ??
|
|
12779
|
+
workflow.__setLogger(this.#mastra?.getLogger() ?? chunkDAQ4JZQA_cjs.noopLogger);
|
|
12781
12780
|
let chainedWorkflow = workflow;
|
|
12782
12781
|
for (const step of workflowSteps) {
|
|
12783
12782
|
chainedWorkflow = chainedWorkflow.then(step);
|
|
@@ -12814,7 +12813,7 @@ var MastraScorer = class _MastraScorer {
|
|
|
12814
12813
|
}
|
|
12815
12814
|
});
|
|
12816
12815
|
}
|
|
12817
|
-
const resolvedModel = await
|
|
12816
|
+
const resolvedModel = await chunkZUN5CMDY_cjs.resolveModelConfig(modelConfig, void 0, this.#mastra);
|
|
12818
12817
|
const judgeModel = resolvedModel.modelId;
|
|
12819
12818
|
const judge = new Agent({
|
|
12820
12819
|
id: "judge",
|
|
@@ -13045,7 +13044,7 @@ async function runDefaultCompletionCheck(agent, context, streamContext, abortSig
|
|
|
13045
13044
|
Primitives already executed: ${completedPrimitives.join(", ")}` : "";
|
|
13046
13045
|
const completionPrompt = `
|
|
13047
13046
|
The ${context.selectedPrimitive.type} ${context.selectedPrimitive.id} has contributed to the task.
|
|
13048
|
-
This is the result: ${
|
|
13047
|
+
This is the result: ${chunk7DONY7OL_cjs.safeStringify(context.primitiveResult)}
|
|
13049
13048
|
|
|
13050
13049
|
${completedSection}
|
|
13051
13050
|
|
|
@@ -13141,7 +13140,7 @@ async function generateFinalResult(agent, context, streamContext, abortSignal, o
|
|
|
13141
13140
|
Original task: ${context.originalTask}
|
|
13142
13141
|
|
|
13143
13142
|
The ${context.selectedPrimitive.type} ${context.selectedPrimitive.id} produced this result:
|
|
13144
|
-
${
|
|
13143
|
+
${chunk7DONY7OL_cjs.safeStringify(context.primitiveResult)}
|
|
13145
13144
|
|
|
13146
13145
|
IMPORTANT: If the above result is from an AGENT PRIMITIVE and it is a suitable final result itself considering the original task, then finalResult should be an empty string or undefined.
|
|
13147
13146
|
You should evaluate if the above result is comprehensive enough to accomplish the user's original task.
|
|
@@ -13199,7 +13198,7 @@ async function generateStructuredFinalResult(agent, context, structuredOutputOpt
|
|
|
13199
13198
|
Original task: ${context.originalTask}
|
|
13200
13199
|
|
|
13201
13200
|
The ${context.selectedPrimitive.type} ${context.selectedPrimitive.id} produced this result:
|
|
13202
|
-
${
|
|
13201
|
+
${chunk7DONY7OL_cjs.safeStringify(context.primitiveResult)}
|
|
13203
13202
|
|
|
13204
13203
|
Based on the task and result above, generate a structured response according to the provided schema.
|
|
13205
13204
|
Use the conversation history and primitive results to craft the response.
|
|
@@ -14236,7 +14235,7 @@ function createLLMExecutionStep({
|
|
|
14236
14235
|
const processorRunner = new ProcessorRunner({
|
|
14237
14236
|
inputProcessors: inputStepProcessors,
|
|
14238
14237
|
outputProcessors: [],
|
|
14239
|
-
logger: logger || new
|
|
14238
|
+
logger: logger || new chunk7GW2TQXP_cjs.ConsoleLogger({ level: "error" }),
|
|
14240
14239
|
agentName: agentId || "unknown",
|
|
14241
14240
|
processorStates
|
|
14242
14241
|
});
|
|
@@ -14300,7 +14299,7 @@ function createLLMExecutionStep({
|
|
|
14300
14299
|
const convertedTools = {};
|
|
14301
14300
|
for (const [name, tool2] of Object.entries(currentStep.tools)) {
|
|
14302
14301
|
if (chunkLDLHW3QN_cjs.isMastraTool(tool2)) {
|
|
14303
|
-
convertedTools[name] =
|
|
14302
|
+
convertedTools[name] = chunk7DONY7OL_cjs.makeCoreTool(
|
|
14304
14303
|
tool2,
|
|
14305
14304
|
{
|
|
14306
14305
|
name,
|
|
@@ -14442,7 +14441,7 @@ Analyse the suspended tools: ${JSON.stringify(suspendedTools)}, using the messag
|
|
|
14442
14441
|
}
|
|
14443
14442
|
}
|
|
14444
14443
|
if (isSupportedLanguageModel(currentStep.model)) {
|
|
14445
|
-
modelResult =
|
|
14444
|
+
modelResult = chunk47RKHZIP_cjs.executeWithContextSync({
|
|
14446
14445
|
span: modelSpanTracker?.getTracingContext()?.currentSpan,
|
|
14447
14446
|
fn: () => execute({
|
|
14448
14447
|
runId,
|
|
@@ -14522,7 +14521,7 @@ Analyse the suspended tools: ${JSON.stringify(suspendedTools)}, using the messag
|
|
|
14522
14521
|
}
|
|
14523
14522
|
});
|
|
14524
14523
|
let transportResolver;
|
|
14525
|
-
if (currentStep.model instanceof
|
|
14524
|
+
if (currentStep.model instanceof chunkZUN5CMDY_cjs.ModelRouterLanguageModel) {
|
|
14526
14525
|
const routerModel = currentStep.model;
|
|
14527
14526
|
transportResolver = () => routerModel._getStreamTransport();
|
|
14528
14527
|
}
|
|
@@ -14661,7 +14660,7 @@ Analyse the suspended tools: ${JSON.stringify(suspendedTools)}, using the messag
|
|
|
14661
14660
|
const processorRunner = new ProcessorRunner({
|
|
14662
14661
|
inputProcessors: [],
|
|
14663
14662
|
outputProcessors,
|
|
14664
|
-
logger: logger || new
|
|
14663
|
+
logger: logger || new chunk7GW2TQXP_cjs.ConsoleLogger({ level: "error" }),
|
|
14665
14664
|
agentName: agentId || "unknown",
|
|
14666
14665
|
processorStates
|
|
14667
14666
|
});
|
|
@@ -15421,7 +15420,7 @@ function createToolCallStep({
|
|
|
15421
15420
|
}
|
|
15422
15421
|
}
|
|
15423
15422
|
const rawResult = await tool2.execute(args, toolOptions);
|
|
15424
|
-
const result =
|
|
15423
|
+
const result = chunk7DONY7OL_cjs.ensureSerializable(rawResult);
|
|
15425
15424
|
if (tool2 && "onOutput" in tool2 && typeof tool2.onOutput === "function") {
|
|
15426
15425
|
try {
|
|
15427
15426
|
await tool2.onOutput({
|
|
@@ -15753,7 +15752,7 @@ function workflowLoopStream({
|
|
|
15753
15752
|
const hasOutputProcessors = rest.outputProcessors && rest.outputProcessors.length > 0;
|
|
15754
15753
|
const dataChunkProcessorRunner = hasOutputProcessors ? new ProcessorRunner({
|
|
15755
15754
|
outputProcessors: rest.outputProcessors,
|
|
15756
|
-
logger: rest.logger || new
|
|
15755
|
+
logger: rest.logger || new chunk7GW2TQXP_cjs.ConsoleLogger({ level: "error" }),
|
|
15757
15756
|
agentName: agentId || "unknown"
|
|
15758
15757
|
}) : void 0;
|
|
15759
15758
|
const dataChunkProcessorStates = hasOutputProcessors ? /* @__PURE__ */ new Map() : void 0;
|
|
@@ -15951,7 +15950,7 @@ function loop({
|
|
|
15951
15950
|
toolCallConcurrency,
|
|
15952
15951
|
...rest
|
|
15953
15952
|
}) {
|
|
15954
|
-
let loggerToUse = logger || new
|
|
15953
|
+
let loggerToUse = logger || new chunk7GW2TQXP_cjs.ConsoleLogger({
|
|
15955
15954
|
level: "debug"
|
|
15956
15955
|
});
|
|
15957
15956
|
if (models.length === 0 || !models[0]) {
|
|
@@ -16062,7 +16061,7 @@ function loop({
|
|
|
16062
16061
|
}
|
|
16063
16062
|
|
|
16064
16063
|
// src/llm/model/model.loop.ts
|
|
16065
|
-
var MastraLLMVNext = class extends
|
|
16064
|
+
var MastraLLMVNext = class extends chunkFCQNDFEW_cjs.MastraBase {
|
|
16066
16065
|
#models;
|
|
16067
16066
|
#mastra;
|
|
16068
16067
|
#options;
|
|
@@ -16194,7 +16193,7 @@ var MastraLLMVNext = class extends chunkDKK77FIJ_cjs.MastraBase {
|
|
|
16194
16193
|
requestContext
|
|
16195
16194
|
});
|
|
16196
16195
|
if (modelSpan) {
|
|
16197
|
-
|
|
16196
|
+
chunk47RKHZIP_cjs.executeWithContextSync({
|
|
16198
16197
|
span: modelSpan,
|
|
16199
16198
|
fn: () => this.logger.debug("Streaming text", {
|
|
16200
16199
|
runId,
|
|
@@ -16281,7 +16280,7 @@ var MastraLLMVNext = class extends chunkDKK77FIJ_cjs.MastraBase {
|
|
|
16281
16280
|
const remainingTokens = parseInt(props?.response?.headers?.["x-ratelimit-remaining-tokens"] ?? "", 10);
|
|
16282
16281
|
if (!isNaN(remainingTokens) && remainingTokens > 0 && remainingTokens < 2e3) {
|
|
16283
16282
|
this.logger.warn("Rate limit approaching, waiting 10 seconds", { runId });
|
|
16284
|
-
await
|
|
16283
|
+
await chunk7DONY7OL_cjs.delay(10 * 1e3);
|
|
16285
16284
|
}
|
|
16286
16285
|
},
|
|
16287
16286
|
onFinish: async (props) => {
|
|
@@ -16699,7 +16698,7 @@ async function createNetworkLoop({
|
|
|
16699
16698
|
const processorRunner = configuredOutputProcessors.length > 0 ? new ProcessorRunner({
|
|
16700
16699
|
outputProcessors: configuredOutputProcessors,
|
|
16701
16700
|
inputProcessors: [],
|
|
16702
|
-
logger: agent.getMastraInstance()?.getLogger() ||
|
|
16701
|
+
logger: agent.getMastraInstance()?.getLogger() || chunkDAQ4JZQA_cjs.noopLogger,
|
|
16703
16702
|
agentName: agent.name
|
|
16704
16703
|
}) : null;
|
|
16705
16704
|
const routingStep = createStep({
|
|
@@ -18650,10 +18649,10 @@ var AgentLegacyHandler = class {
|
|
|
18650
18649
|
const observabilityContext = chunkB4OOPFD3_cjs.resolveObservabilityContext(rest);
|
|
18651
18650
|
return {
|
|
18652
18651
|
before: async () => {
|
|
18653
|
-
const agentSpan =
|
|
18652
|
+
const agentSpan = chunk47RKHZIP_cjs.getOrCreateSpan({
|
|
18654
18653
|
type: "agent_run" /* AGENT_RUN */,
|
|
18655
18654
|
name: `agent run: '${this.capabilities.id}'`,
|
|
18656
|
-
entityType:
|
|
18655
|
+
entityType: chunk47RKHZIP_cjs.EntityType.AGENT,
|
|
18657
18656
|
entityId: this.capabilities.id,
|
|
18658
18657
|
entityName: this.capabilities.name,
|
|
18659
18658
|
input: {
|
|
@@ -20364,7 +20363,7 @@ function resolveMaybePromise(value, cb) {
|
|
|
20364
20363
|
}
|
|
20365
20364
|
return cb(value);
|
|
20366
20365
|
}
|
|
20367
|
-
var Agent = class extends
|
|
20366
|
+
var Agent = class extends chunkFCQNDFEW_cjs.MastraBase {
|
|
20368
20367
|
id;
|
|
20369
20368
|
name;
|
|
20370
20369
|
source;
|
|
@@ -20416,7 +20415,7 @@ var Agent = class extends chunkDKK77FIJ_cjs.MastraBase {
|
|
|
20416
20415
|
* ```
|
|
20417
20416
|
*/
|
|
20418
20417
|
constructor(config) {
|
|
20419
|
-
super({ component:
|
|
20418
|
+
super({ component: chunk7GW2TQXP_cjs.RegisteredLogger.AGENT, rawConfig: config.rawConfig });
|
|
20420
20419
|
this.name = config.name;
|
|
20421
20420
|
this.id = config.id ?? config.name;
|
|
20422
20421
|
this.source = "code";
|
|
@@ -20493,7 +20492,7 @@ var Agent = class extends chunkDKK77FIJ_cjs.MastraBase {
|
|
|
20493
20492
|
this.#voice?.addInstructions(config.instructions);
|
|
20494
20493
|
}
|
|
20495
20494
|
} else {
|
|
20496
|
-
this.#voice = new
|
|
20495
|
+
this.#voice = new chunkRAD2NM47_cjs.DefaultVoice();
|
|
20497
20496
|
}
|
|
20498
20497
|
if (config.channels) {
|
|
20499
20498
|
if (config.channels instanceof AgentChannels) {
|
|
@@ -21082,7 +21081,7 @@ ${errorMessages}`,
|
|
|
21082
21081
|
voice?.addInstructions(this.#convertInstructionsToString(instructions));
|
|
21083
21082
|
return voice;
|
|
21084
21083
|
} else {
|
|
21085
|
-
return new
|
|
21084
|
+
return new chunkRAD2NM47_cjs.DefaultVoice();
|
|
21086
21085
|
}
|
|
21087
21086
|
}
|
|
21088
21087
|
/**
|
|
@@ -21351,7 +21350,7 @@ ${errorMessages}`,
|
|
|
21351
21350
|
*/
|
|
21352
21351
|
listTools({ requestContext = new chunk5WBEMKE2_cjs.RequestContext() } = {}) {
|
|
21353
21352
|
if (typeof this.#tools !== "function") {
|
|
21354
|
-
return
|
|
21353
|
+
return chunk7DONY7OL_cjs.ensureToolProperties(this.#tools);
|
|
21355
21354
|
}
|
|
21356
21355
|
const result = this.#tools({
|
|
21357
21356
|
requestContext,
|
|
@@ -21371,7 +21370,7 @@ ${errorMessages}`,
|
|
|
21371
21370
|
this.logger.trackException(mastraError);
|
|
21372
21371
|
throw mastraError;
|
|
21373
21372
|
}
|
|
21374
|
-
return
|
|
21373
|
+
return chunk7DONY7OL_cjs.ensureToolProperties(tools);
|
|
21375
21374
|
});
|
|
21376
21375
|
}
|
|
21377
21376
|
/**
|
|
@@ -21419,7 +21418,7 @@ ${errorMessages}`,
|
|
|
21419
21418
|
});
|
|
21420
21419
|
});
|
|
21421
21420
|
} else {
|
|
21422
|
-
llm = new
|
|
21421
|
+
llm = new chunk4W26D7S6_cjs.MastraLLMV1({
|
|
21423
21422
|
model: modelInfo,
|
|
21424
21423
|
mastra: this.#mastra,
|
|
21425
21424
|
options: { tracingPolicy: this.#options?.tracingPolicy }
|
|
@@ -21445,7 +21444,7 @@ ${errorMessages}`,
|
|
|
21445
21444
|
*/
|
|
21446
21445
|
async resolveModelConfig(modelConfig, requestContext) {
|
|
21447
21446
|
try {
|
|
21448
|
-
return await
|
|
21447
|
+
return await chunkZUN5CMDY_cjs.resolveModelConfig(modelConfig, requestContext, this.#mastra);
|
|
21449
21448
|
} catch (error) {
|
|
21450
21449
|
const mastraError = new chunk4U7ZLI36_cjs.MastraError({
|
|
21451
21450
|
id: "AGENT_GET_MODEL_MISSING_MODEL_INSTANCE",
|
|
@@ -21917,7 +21916,7 @@ ${errorMessages}`,
|
|
|
21917
21916
|
tracingPolicy: this.#options?.tracingPolicy,
|
|
21918
21917
|
requireApproval: toolObj.requireApproval
|
|
21919
21918
|
};
|
|
21920
|
-
const convertedToCoreTool =
|
|
21919
|
+
const convertedToCoreTool = chunk7DONY7OL_cjs.makeCoreTool(toolObj, options, void 0, autoResumeSuspendedTools);
|
|
21921
21920
|
convertedMemoryTools[toolName] = convertedToCoreTool;
|
|
21922
21921
|
}
|
|
21923
21922
|
}
|
|
@@ -21946,7 +21945,7 @@ ${errorMessages}`,
|
|
|
21946
21945
|
if (!workspace) {
|
|
21947
21946
|
return convertedWorkspaceTools;
|
|
21948
21947
|
}
|
|
21949
|
-
const workspaceTools = await
|
|
21948
|
+
const workspaceTools = await chunkX6CDTXAM_cjs.createWorkspaceTools(workspace, {
|
|
21950
21949
|
requestContext: requestContext ? Object.fromEntries(requestContext.entries()) : {},
|
|
21951
21950
|
workspace
|
|
21952
21951
|
});
|
|
@@ -21970,7 +21969,7 @@ ${errorMessages}`,
|
|
|
21970
21969
|
requireApproval: toolObj.requireApproval,
|
|
21971
21970
|
workspace
|
|
21972
21971
|
};
|
|
21973
|
-
const convertedToCoreTool =
|
|
21972
|
+
const convertedToCoreTool = chunk7DONY7OL_cjs.makeCoreTool(toolObj, options, void 0, autoResumeSuspendedTools);
|
|
21974
21973
|
convertedWorkspaceTools[toolName] = convertedToCoreTool;
|
|
21975
21974
|
}
|
|
21976
21975
|
}
|
|
@@ -22011,7 +22010,7 @@ ${errorMessages}`,
|
|
|
22011
22010
|
...observabilityContext,
|
|
22012
22011
|
tracingPolicy: this.#options?.tracingPolicy
|
|
22013
22012
|
};
|
|
22014
|
-
convertedChannelTools[toolName] =
|
|
22013
|
+
convertedChannelTools[toolName] = chunk7DONY7OL_cjs.makeCoreTool(
|
|
22015
22014
|
tool2,
|
|
22016
22015
|
options,
|
|
22017
22016
|
void 0,
|
|
@@ -22046,7 +22045,7 @@ ${errorMessages}`,
|
|
|
22046
22045
|
if (!workspace?.skills) {
|
|
22047
22046
|
return convertedSkillTools;
|
|
22048
22047
|
}
|
|
22049
|
-
const skillTools =
|
|
22048
|
+
const skillTools = chunkX6CDTXAM_cjs.createSkillTools(workspace.skills);
|
|
22050
22049
|
if (Object.keys(skillTools).length > 0) {
|
|
22051
22050
|
this.logger.debug("Adding skill tools", { agent: this.name, tools: Object.keys(skillTools), runId });
|
|
22052
22051
|
for (const [toolName, tool2] of Object.entries(skillTools)) {
|
|
@@ -22068,7 +22067,7 @@ ${errorMessages}`,
|
|
|
22068
22067
|
// Skill tools never require approval
|
|
22069
22068
|
workspace
|
|
22070
22069
|
};
|
|
22071
|
-
const convertedToCoreTool =
|
|
22070
|
+
const convertedToCoreTool = chunk7DONY7OL_cjs.makeCoreTool(toolObj, options, void 0, autoResumeSuspendedTools);
|
|
22072
22071
|
convertedSkillTools[toolName] = convertedToCoreTool;
|
|
22073
22072
|
}
|
|
22074
22073
|
}
|
|
@@ -22116,7 +22115,7 @@ ${errorMessages}`,
|
|
|
22116
22115
|
tracingPolicy: this.#options?.tracingPolicy,
|
|
22117
22116
|
requireApproval: toolObj.requireApproval
|
|
22118
22117
|
};
|
|
22119
|
-
const convertedToCoreTool =
|
|
22118
|
+
const convertedToCoreTool = chunk7DONY7OL_cjs.makeCoreTool(toolObj, options, void 0, autoResumeSuspendedTools);
|
|
22120
22119
|
convertedBrowserTools[toolName] = convertedToCoreTool;
|
|
22121
22120
|
}
|
|
22122
22121
|
}
|
|
@@ -22349,7 +22348,7 @@ ${errorMessages}`,
|
|
|
22349
22348
|
tracingPolicy: this.#options?.tracingPolicy,
|
|
22350
22349
|
requireApproval: tool2.requireApproval
|
|
22351
22350
|
};
|
|
22352
|
-
return [k,
|
|
22351
|
+
return [k, chunk7DONY7OL_cjs.makeCoreTool(tool2, options, void 0, autoResumeSuspendedTools)];
|
|
22353
22352
|
})
|
|
22354
22353
|
);
|
|
22355
22354
|
const assignedToolEntriesConverted = Object.fromEntries(
|
|
@@ -22403,7 +22402,7 @@ ${errorMessages}`,
|
|
|
22403
22402
|
tracingPolicy: this.#options?.tracingPolicy,
|
|
22404
22403
|
requireApproval: toolObj.requireApproval
|
|
22405
22404
|
};
|
|
22406
|
-
const convertedToCoreTool =
|
|
22405
|
+
const convertedToCoreTool = chunk7DONY7OL_cjs.makeCoreTool(toolObj, options, "toolset", autoResumeSuspendedTools);
|
|
22407
22406
|
toolsForRequest[toolName] = convertedToCoreTool;
|
|
22408
22407
|
}
|
|
22409
22408
|
}
|
|
@@ -22448,7 +22447,7 @@ ${errorMessages}`,
|
|
|
22448
22447
|
tracingPolicy: this.#options?.tracingPolicy,
|
|
22449
22448
|
requireApproval: tool2.requireApproval
|
|
22450
22449
|
};
|
|
22451
|
-
const convertedToCoreTool =
|
|
22450
|
+
const convertedToCoreTool = chunk7DONY7OL_cjs.makeCoreTool(toolRest, options, "client-tool", autoResumeSuspendedTools);
|
|
22452
22451
|
toolsForRequest[toolName] = convertedToCoreTool;
|
|
22453
22452
|
}
|
|
22454
22453
|
}
|
|
@@ -23168,7 +23167,7 @@ ${effectiveInstructions}`;
|
|
|
23168
23167
|
...observabilityContext,
|
|
23169
23168
|
tracingPolicy: this.#options?.tracingPolicy
|
|
23170
23169
|
};
|
|
23171
|
-
convertedAgentTools[`agent-${agentName}`] =
|
|
23170
|
+
convertedAgentTools[`agent-${agentName}`] = chunk7DONY7OL_cjs.makeCoreTool(
|
|
23172
23171
|
toolObj,
|
|
23173
23172
|
options,
|
|
23174
23173
|
void 0,
|
|
@@ -23389,7 +23388,7 @@ ${effectiveInstructions}`;
|
|
|
23389
23388
|
...observabilityContext,
|
|
23390
23389
|
tracingPolicy: this.#options?.tracingPolicy
|
|
23391
23390
|
};
|
|
23392
|
-
convertedWorkflowTools[`workflow-${workflowName}`] =
|
|
23391
|
+
convertedWorkflowTools[`workflow-${workflowName}`] = chunk7DONY7OL_cjs.makeCoreTool(
|
|
23393
23392
|
toolObj,
|
|
23394
23393
|
options,
|
|
23395
23394
|
void 0,
|
|
@@ -23421,7 +23420,7 @@ ${effectiveInstructions}`;
|
|
|
23421
23420
|
let mastraProxy = void 0;
|
|
23422
23421
|
const logger = this.logger;
|
|
23423
23422
|
if (this.#mastra) {
|
|
23424
|
-
mastraProxy =
|
|
23423
|
+
mastraProxy = chunk7DONY7OL_cjs.createMastraProxy({ mastra: this.#mastra, logger });
|
|
23425
23424
|
}
|
|
23426
23425
|
const assignedTools = await this.listAssignedTools({
|
|
23427
23426
|
runId,
|
|
@@ -23692,7 +23691,7 @@ ${effectiveInstructions}`;
|
|
|
23692
23691
|
const resolvedModel = await this.resolveModelConfig(selection, requestContext);
|
|
23693
23692
|
this.assertSupportsPreparedModels(resolvedModel);
|
|
23694
23693
|
let headers;
|
|
23695
|
-
if (resolvedModel instanceof
|
|
23694
|
+
if (resolvedModel instanceof chunkZUN5CMDY_cjs.ModelRouterLanguageModel) {
|
|
23696
23695
|
headers = resolvedModel.config?.headers;
|
|
23697
23696
|
}
|
|
23698
23697
|
return [
|
|
@@ -23724,7 +23723,7 @@ ${effectiveInstructions}`;
|
|
|
23724
23723
|
throw mastraError;
|
|
23725
23724
|
}
|
|
23726
23725
|
let headers;
|
|
23727
|
-
if (model instanceof
|
|
23726
|
+
if (model instanceof chunkZUN5CMDY_cjs.ModelRouterLanguageModel) {
|
|
23728
23727
|
headers = model.config?.headers;
|
|
23729
23728
|
}
|
|
23730
23729
|
return {
|
|
@@ -23785,7 +23784,7 @@ ${effectiveInstructions}`;
|
|
|
23785
23784
|
model: options.model
|
|
23786
23785
|
});
|
|
23787
23786
|
const resolvedModel = llm.getModel();
|
|
23788
|
-
const isGatewayModel = resolvedModel instanceof
|
|
23787
|
+
const isGatewayModel = resolvedModel instanceof chunkZUN5CMDY_cjs.ModelRouterLanguageModel && resolvedModel.gatewayId === "mastra";
|
|
23789
23788
|
if (resourceId && threadFromArgs && !this.hasOwnMemory() && !isGatewayModel) {
|
|
23790
23789
|
this.logger.warn("No memory is configured but resourceId and threadId were passed in args", { agent: this.name });
|
|
23791
23790
|
}
|
|
@@ -23811,10 +23810,10 @@ ${effectiveInstructions}`;
|
|
|
23811
23810
|
resourceId
|
|
23812
23811
|
}) || crypto2.randomUUID();
|
|
23813
23812
|
const instructions = options.instructions || await this.getInstructions({ requestContext });
|
|
23814
|
-
const agentSpan =
|
|
23813
|
+
const agentSpan = chunk47RKHZIP_cjs.getOrCreateSpan({
|
|
23815
23814
|
type: "agent_run" /* AGENT_RUN */,
|
|
23816
23815
|
name: `agent run: '${this.id}'`,
|
|
23817
|
-
entityType:
|
|
23816
|
+
entityType: chunk47RKHZIP_cjs.EntityType.AGENT,
|
|
23818
23817
|
entityId: this.id,
|
|
23819
23818
|
entityName: this.name,
|
|
23820
23819
|
input: options.messages,
|
|
@@ -24196,7 +24195,7 @@ ${effectiveInstructions}`;
|
|
|
24196
24195
|
const defaultOptions = await this.getDefaultOptions({
|
|
24197
24196
|
requestContext: options?.requestContext
|
|
24198
24197
|
});
|
|
24199
|
-
const mergedOptions =
|
|
24198
|
+
const mergedOptions = chunk7DONY7OL_cjs.deepMerge(
|
|
24200
24199
|
defaultOptions,
|
|
24201
24200
|
options ?? {}
|
|
24202
24201
|
);
|
|
@@ -24267,7 +24266,7 @@ ${effectiveInstructions}`;
|
|
|
24267
24266
|
const defaultOptions = await this.getDefaultOptions({
|
|
24268
24267
|
requestContext: streamOptions?.requestContext
|
|
24269
24268
|
});
|
|
24270
|
-
const mergedOptions =
|
|
24269
|
+
const mergedOptions = chunk7DONY7OL_cjs.deepMerge(
|
|
24271
24270
|
defaultOptions,
|
|
24272
24271
|
streamOptions ?? {}
|
|
24273
24272
|
);
|
|
@@ -24332,7 +24331,7 @@ ${effectiveInstructions}`;
|
|
|
24332
24331
|
const defaultOptions = await this.getDefaultOptions({
|
|
24333
24332
|
requestContext: streamOptions?.requestContext
|
|
24334
24333
|
});
|
|
24335
|
-
let mergedStreamOptions =
|
|
24334
|
+
let mergedStreamOptions = chunk7DONY7OL_cjs.deepMerge(
|
|
24336
24335
|
defaultOptions,
|
|
24337
24336
|
streamOptions ?? {}
|
|
24338
24337
|
);
|
|
@@ -24398,7 +24397,7 @@ ${effectiveInstructions}`;
|
|
|
24398
24397
|
const defaultOptions = await this.getDefaultOptions({
|
|
24399
24398
|
requestContext: options?.requestContext
|
|
24400
24399
|
});
|
|
24401
|
-
const mergedOptions =
|
|
24400
|
+
const mergedOptions = chunk7DONY7OL_cjs.deepMerge(
|
|
24402
24401
|
defaultOptions,
|
|
24403
24402
|
options ?? {}
|
|
24404
24403
|
);
|
|
@@ -26024,7 +26023,7 @@ var TokenLimiterProcessor = class _TokenLimiterProcessor {
|
|
|
26024
26023
|
return new TiktokenClass(this.customEncoding);
|
|
26025
26024
|
});
|
|
26026
26025
|
} else {
|
|
26027
|
-
this.encoderPromise =
|
|
26026
|
+
this.encoderPromise = chunkX6CDTXAM_cjs.getTiktoken();
|
|
26028
26027
|
}
|
|
26029
26028
|
}
|
|
26030
26029
|
return this.encoderPromise;
|
|
@@ -26931,7 +26930,7 @@ var ToolSearchProcessor = class {
|
|
|
26931
26930
|
minScore: options.search?.minScore ?? 0
|
|
26932
26931
|
};
|
|
26933
26932
|
this.ttl = options.ttl ?? 36e5;
|
|
26934
|
-
this.bm25Index = new
|
|
26933
|
+
this.bm25Index = new chunkX6CDTXAM_cjs.BM25Index({}, TOOL_SEARCH_TOKENIZE_OPTIONS);
|
|
26935
26934
|
this.indexTools();
|
|
26936
26935
|
if (this.ttl > 0) {
|
|
26937
26936
|
this.scheduleCleanup();
|
|
@@ -27741,7 +27740,7 @@ var WorkingMemory = class {
|
|
|
27741
27740
|
return messageList;
|
|
27742
27741
|
}
|
|
27743
27742
|
generateEmptyFromSchemaInternal(schema) {
|
|
27744
|
-
const result =
|
|
27743
|
+
const result = chunk7DONY7OL_cjs.generateEmptyFromSchema(schema);
|
|
27745
27744
|
return Object.keys(result).length > 0 ? result : null;
|
|
27746
27745
|
}
|
|
27747
27746
|
getWorkingMemoryToolInstruction({
|
|
@@ -28290,7 +28289,7 @@ function extractModelIdString(model) {
|
|
|
28290
28289
|
}
|
|
28291
28290
|
return void 0;
|
|
28292
28291
|
}
|
|
28293
|
-
var MemoryProcessor = class extends
|
|
28292
|
+
var MemoryProcessor = class extends chunkFCQNDFEW_cjs.MastraBase {
|
|
28294
28293
|
/**
|
|
28295
28294
|
* Process a list of messages and return a filtered or transformed list.
|
|
28296
28295
|
* @param messages The messages to process
|
|
@@ -28320,7 +28319,7 @@ var memoryDefaultOptions = {
|
|
|
28320
28319
|
`
|
|
28321
28320
|
}
|
|
28322
28321
|
};
|
|
28323
|
-
var MastraMemory = class extends
|
|
28322
|
+
var MastraMemory = class extends chunkFCQNDFEW_cjs.MastraBase {
|
|
28324
28323
|
/**
|
|
28325
28324
|
* Unique identifier for the memory instance.
|
|
28326
28325
|
* If not provided, defaults to a static name 'default-memory'.
|
|
@@ -28386,7 +28385,7 @@ https://mastra.ai/en/docs/memory/semantic-recall`
|
|
|
28386
28385
|
);
|
|
28387
28386
|
}
|
|
28388
28387
|
if (typeof config.embedder === "string") {
|
|
28389
|
-
this.embedder = new
|
|
28388
|
+
this.embedder = new chunkZUN5CMDY_cjs.ModelRouterEmbeddingModel(config.embedder);
|
|
28390
28389
|
} else {
|
|
28391
28390
|
this.embedder = config.embedder;
|
|
28392
28391
|
}
|
|
@@ -28399,7 +28398,7 @@ https://mastra.ai/en/docs/memory/semantic-recall`
|
|
|
28399
28398
|
}
|
|
28400
28399
|
if (config.embedder) {
|
|
28401
28400
|
if (typeof config.embedder === "string") {
|
|
28402
|
-
this.embedder = new
|
|
28401
|
+
this.embedder = new chunkZUN5CMDY_cjs.ModelRouterEmbeddingModel(config.embedder);
|
|
28403
28402
|
} else {
|
|
28404
28403
|
this.embedder = config.embedder;
|
|
28405
28404
|
}
|
|
@@ -28439,7 +28438,7 @@ https://mastra.ai/en/docs/memory/overview`
|
|
|
28439
28438
|
}
|
|
28440
28439
|
setEmbedder(embedder, embedderOptions) {
|
|
28441
28440
|
if (typeof embedder === "string") {
|
|
28442
|
-
this.embedder = new
|
|
28441
|
+
this.embedder = new chunkZUN5CMDY_cjs.ModelRouterEmbeddingModel(embedder);
|
|
28443
28442
|
} else {
|
|
28444
28443
|
this.embedder = embedder;
|
|
28445
28444
|
}
|
|
@@ -28536,7 +28535,7 @@ https://mastra.ai/en/docs/memory/overview`
|
|
|
28536
28535
|
"The threads.generateTitle option has been moved. Use the top-level generateTitle option instead."
|
|
28537
28536
|
);
|
|
28538
28537
|
}
|
|
28539
|
-
const mergedConfig =
|
|
28538
|
+
const mergedConfig = chunk7DONY7OL_cjs.deepMerge(this.threadConfig, config || {});
|
|
28540
28539
|
if (typeof config?.workingMemory === "object" && config.workingMemory?.schema && typeof mergedConfig.workingMemory === "object") {
|
|
28541
28540
|
mergedConfig.workingMemory.schema = config.workingMemory.schema;
|
|
28542
28541
|
}
|
|
@@ -28888,7 +28887,7 @@ var MockMemory = class extends MastraMemory {
|
|
|
28888
28887
|
} = {}) {
|
|
28889
28888
|
super({
|
|
28890
28889
|
name: "mock",
|
|
28891
|
-
storage: storage || new
|
|
28890
|
+
storage: storage || new chunkFSHOQBGF_cjs.InMemoryStore(),
|
|
28892
28891
|
options: {
|
|
28893
28892
|
...options,
|
|
28894
28893
|
workingMemory: enableWorkingMemory ? { enabled: true, template: workingMemoryTemplate } : options?.workingMemory,
|
|
@@ -29205,5 +29204,5 @@ exports.validateStepRequestContext = validateStepRequestContext;
|
|
|
29205
29204
|
exports.validateStepResumeData = validateStepResumeData;
|
|
29206
29205
|
exports.validateStepStateData = validateStepStateData;
|
|
29207
29206
|
exports.validateStepSuspendData = validateStepSuspendData;
|
|
29208
|
-
//# sourceMappingURL=chunk-
|
|
29209
|
-
//# sourceMappingURL=chunk-
|
|
29207
|
+
//# sourceMappingURL=chunk-DO4JBKMT.cjs.map
|
|
29208
|
+
//# sourceMappingURL=chunk-DO4JBKMT.cjs.map
|