@mastra/core 1.17.0-alpha.2 → 1.18.0-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +88 -0
- package/dist/agent/index.cjs +8 -8
- package/dist/agent/index.js +1 -1
- package/dist/{chunk-ZT26XXEB.js → chunk-3DDJ33AU.js} +5 -5
- package/dist/{chunk-ZT26XXEB.js.map → chunk-3DDJ33AU.js.map} +1 -1
- package/dist/{chunk-I2Z4GKQ6.cjs → chunk-3ECYXW43.cjs} +16 -16
- package/dist/{chunk-I2Z4GKQ6.cjs.map → chunk-3ECYXW43.cjs.map} +1 -1
- package/dist/{chunk-SDSIVJMT.cjs → chunk-3H34KWBU.cjs} +9 -9
- package/dist/{chunk-SDSIVJMT.cjs.map → chunk-3H34KWBU.cjs.map} +1 -1
- package/dist/{chunk-P54SNCAD.cjs → chunk-3LH5QX5F.cjs} +3 -3
- package/dist/{chunk-P54SNCAD.cjs.map → chunk-3LH5QX5F.cjs.map} +1 -1
- package/dist/{chunk-OBHOUEDZ.cjs → chunk-7CDFI4GW.cjs} +84 -84
- package/dist/{chunk-OBHOUEDZ.cjs.map → chunk-7CDFI4GW.cjs.map} +1 -1
- package/dist/{chunk-PTRJHO2K.cjs → chunk-A5JHKGFY.cjs} +7 -7
- package/dist/{chunk-PTRJHO2K.cjs.map → chunk-A5JHKGFY.cjs.map} +1 -1
- package/dist/{chunk-O54IMECL.cjs → chunk-AEIPJW4F.cjs} +185 -185
- package/dist/{chunk-O54IMECL.cjs.map → chunk-AEIPJW4F.cjs.map} +1 -1
- package/dist/{chunk-UOCBF4IP.js → chunk-AIEKKCJ7.js} +3 -3
- package/dist/{chunk-UOCBF4IP.js.map → chunk-AIEKKCJ7.js.map} +1 -1
- package/dist/{chunk-K76OKOAK.js → chunk-AIYWGXK7.js} +3 -3
- package/dist/{chunk-K76OKOAK.js.map → chunk-AIYWGXK7.js.map} +1 -1
- package/dist/{chunk-R47HLGU7.cjs → chunk-BHVF4Z5D.cjs} +39 -39
- package/dist/{chunk-R47HLGU7.cjs.map → chunk-BHVF4Z5D.cjs.map} +1 -1
- package/dist/{chunk-X234OVG3.js → chunk-BIB2LCIR.js} +4 -4
- package/dist/{chunk-X234OVG3.js.map → chunk-BIB2LCIR.js.map} +1 -1
- package/dist/{chunk-MNIWCQYZ.js → chunk-CYQ2TNSK.js} +3 -3
- package/dist/{chunk-MNIWCQYZ.js.map → chunk-CYQ2TNSK.js.map} +1 -1
- package/dist/{chunk-ID5X55KA.cjs → chunk-DL4A7URO.cjs} +5 -5
- package/dist/{chunk-ID5X55KA.cjs.map → chunk-DL4A7URO.cjs.map} +1 -1
- package/dist/{chunk-76NWBCBU.cjs → chunk-DV7FIKOO.cjs} +10 -10
- package/dist/{chunk-76NWBCBU.cjs.map → chunk-DV7FIKOO.cjs.map} +1 -1
- package/dist/{chunk-FLW4344C.js → chunk-F7YLMJSQ.js} +4 -4
- package/dist/{chunk-FLW4344C.js.map → chunk-F7YLMJSQ.js.map} +1 -1
- package/dist/{chunk-LOGX3EQD.js → chunk-FWDG2WUV.js} +3 -3
- package/dist/{chunk-LOGX3EQD.js.map → chunk-FWDG2WUV.js.map} +1 -1
- package/dist/{chunk-JMYTEYXJ.js → chunk-JEEYINIB.js} +5 -5
- package/dist/{chunk-JMYTEYXJ.js.map → chunk-JEEYINIB.js.map} +1 -1
- package/dist/{chunk-5TKRQNGW.js → chunk-KMVGT2JI.js} +3 -3
- package/dist/{chunk-5TKRQNGW.js.map → chunk-KMVGT2JI.js.map} +1 -1
- package/dist/{chunk-PQ4CVQXD.cjs → chunk-MBJ6IAKF.cjs} +6 -6
- package/dist/{chunk-PQ4CVQXD.cjs.map → chunk-MBJ6IAKF.cjs.map} +1 -1
- package/dist/{chunk-PICHLY3C.js → chunk-P2C4NFMY.js} +4 -4
- package/dist/{chunk-PICHLY3C.js.map → chunk-P2C4NFMY.js.map} +1 -1
- package/dist/{chunk-AH2ZNH4Y.cjs → chunk-R2V6BCYX.cjs} +3 -3
- package/dist/{chunk-AH2ZNH4Y.cjs.map → chunk-R2V6BCYX.cjs.map} +1 -1
- package/dist/{chunk-XTN63GKI.cjs → chunk-SLG7AUBK.cjs} +7 -7
- package/dist/{chunk-XTN63GKI.cjs.map → chunk-SLG7AUBK.cjs.map} +1 -1
- package/dist/{chunk-AX5EPGND.cjs → chunk-TG4U3K3I.cjs} +51 -51
- package/dist/{chunk-AX5EPGND.cjs.map → chunk-TG4U3K3I.cjs.map} +1 -1
- package/dist/{chunk-6HSR64XA.cjs → chunk-V54LY5HR.cjs} +5 -5
- package/dist/{chunk-6HSR64XA.cjs.map → chunk-V54LY5HR.cjs.map} +1 -1
- package/dist/{chunk-E7L2JB4A.js → chunk-YFYB3Q5L.js} +9 -9
- package/dist/{chunk-E7L2JB4A.js.map → chunk-YFYB3Q5L.js.map} +1 -1
- package/dist/{chunk-YBNI2A6Y.js → chunk-YXNO6AHV.js} +9 -9
- package/dist/{chunk-YBNI2A6Y.js.map → chunk-YXNO6AHV.js.map} +1 -1
- package/dist/{chunk-4UTQD6B5.js → chunk-ZOJZL62I.js} +3 -3
- package/dist/{chunk-4UTQD6B5.js.map → chunk-ZOJZL62I.js.map} +1 -1
- package/dist/{chunk-OIZT4TON.js → chunk-ZOPIN73X.js} +8 -8
- package/dist/{chunk-OIZT4TON.js.map → chunk-ZOPIN73X.js.map} +1 -1
- package/dist/datasets/index.cjs +17 -17
- package/dist/datasets/index.js +2 -2
- package/dist/docs/SKILL.md +1 -1
- package/dist/docs/assets/SOURCE_MAP.json +195 -195
- 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 +16 -16
- package/dist/llm/index.js +5 -5
- 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/memory/index.cjs +14 -14
- package/dist/memory/index.js +1 -1
- package/dist/models-dev-JEMMVJFN.js +3 -0
- package/dist/{models-dev-DYILKQKY.js.map → models-dev-JEMMVJFN.js.map} +1 -1
- package/dist/models-dev-MU7QGI4O.cjs +12 -0
- package/dist/{models-dev-EX67IAAF.cjs.map → models-dev-MU7QGI4O.cjs.map} +1 -1
- package/dist/netlify-BROEKRZF.js +3 -0
- package/dist/{netlify-RQLBHLLX.js.map → netlify-BROEKRZF.js.map} +1 -1
- package/dist/netlify-GOEIG6IC.cjs +12 -0
- package/dist/{netlify-EDK4WKCW.cjs.map → netlify-GOEIG6IC.cjs.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-CKFMYEBK.cjs +40 -0
- package/dist/{provider-registry-MBXOBTD4.cjs.map → provider-registry-CKFMYEBK.cjs.map} +1 -1
- package/dist/provider-registry-P7EMCVJI.js +3 -0
- package/dist/{provider-registry-3RCP7DTQ.js.map → provider-registry-P7EMCVJI.js.map} +1 -1
- package/dist/relevance/index.cjs +3 -3
- package/dist/relevance/index.js +1 -1
- package/dist/storage/index.cjs +74 -74
- package/dist/storage/index.js +1 -1
- 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/utils.cjs +23 -23
- package/dist/utils.js +1 -1
- package/dist/vector/index.cjs +7 -7
- package/dist/vector/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 +6 -6
- package/dist/models-dev-DYILKQKY.js +0 -3
- package/dist/models-dev-EX67IAAF.cjs +0 -12
- package/dist/netlify-EDK4WKCW.cjs +0 -12
- package/dist/netlify-RQLBHLLX.js +0 -3
- package/dist/provider-registry-3RCP7DTQ.js +0 -3
- package/dist/provider-registry-MBXOBTD4.cjs +0 -40
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var chunkZC4FJVJZ_cjs = require('./chunk-ZC4FJVJZ.cjs');
|
|
4
|
-
var chunkQVVWKMFM_cjs = require('./chunk-QVVWKMFM.cjs');
|
|
5
4
|
var chunkZCBG4ZQT_cjs = require('./chunk-ZCBG4ZQT.cjs');
|
|
6
|
-
var
|
|
5
|
+
var chunkQVVWKMFM_cjs = require('./chunk-QVVWKMFM.cjs');
|
|
6
|
+
var chunk3H34KWBU_cjs = require('./chunk-3H34KWBU.cjs');
|
|
7
7
|
var chunkANLO4VM2_cjs = require('./chunk-ANLO4VM2.cjs');
|
|
8
8
|
var chunkY3APFUXZ_cjs = require('./chunk-Y3APFUXZ.cjs');
|
|
9
9
|
var chunkCFMZZDO2_cjs = require('./chunk-CFMZZDO2.cjs');
|
|
10
10
|
var chunkMR7ZWBL6_cjs = require('./chunk-MR7ZWBL6.cjs');
|
|
11
|
-
var
|
|
12
|
-
var
|
|
11
|
+
var chunk7CDFI4GW_cjs = require('./chunk-7CDFI4GW.cjs');
|
|
12
|
+
var chunkMBJ6IAKF_cjs = require('./chunk-MBJ6IAKF.cjs');
|
|
13
13
|
var chunk6BJ7XHRH_cjs = require('./chunk-6BJ7XHRH.cjs');
|
|
14
14
|
var chunkOQDRPRKM_cjs = require('./chunk-OQDRPRKM.cjs');
|
|
15
|
-
var
|
|
15
|
+
var chunkR2V6BCYX_cjs = require('./chunk-R2V6BCYX.cjs');
|
|
16
16
|
var chunkG5HKDGNT_cjs = require('./chunk-G5HKDGNT.cjs');
|
|
17
17
|
var chunkKJBMTK5B_cjs = require('./chunk-KJBMTK5B.cjs');
|
|
18
18
|
var chunkK4NN2KQQ_cjs = require('./chunk-K4NN2KQQ.cjs');
|
|
19
19
|
var chunkXB4FLS7A_cjs = require('./chunk-XB4FLS7A.cjs');
|
|
20
|
-
var chunk4U7ZLI36_cjs = require('./chunk-4U7ZLI36.cjs');
|
|
21
20
|
var chunk5WBEMKE2_cjs = require('./chunk-5WBEMKE2.cjs');
|
|
21
|
+
var chunk4U7ZLI36_cjs = require('./chunk-4U7ZLI36.cjs');
|
|
22
22
|
var chunkRO47SMI7_cjs = require('./chunk-RO47SMI7.cjs');
|
|
23
23
|
var chunk7XAECHYL_cjs = require('./chunk-7XAECHYL.cjs');
|
|
24
24
|
var chunkBVWXTWXP_cjs = require('./chunk-BVWXTWXP.cjs');
|
|
@@ -2071,7 +2071,7 @@ var ProcessorRunner = class _ProcessorRunner {
|
|
|
2071
2071
|
}
|
|
2072
2072
|
const { model: _model, ...rest } = result;
|
|
2073
2073
|
if (result.model) {
|
|
2074
|
-
const resolvedModel = await
|
|
2074
|
+
const resolvedModel = await chunk7CDFI4GW_cjs.resolveModelConfig(result.model);
|
|
2075
2075
|
const isSupported = isSupportedLanguageModel(resolvedModel);
|
|
2076
2076
|
if (!isSupported) {
|
|
2077
2077
|
throw new chunk4U7ZLI36_cjs.MastraError({
|
|
@@ -5497,7 +5497,7 @@ var createTimeTravelExecutionParams = (params) => {
|
|
|
5497
5497
|
result = void 0;
|
|
5498
5498
|
}
|
|
5499
5499
|
if (result) {
|
|
5500
|
-
const formattedResult =
|
|
5500
|
+
const formattedResult = chunkR2V6BCYX_cjs.removeUndefinedValues(result);
|
|
5501
5501
|
stepResults[stepId] = formattedResult;
|
|
5502
5502
|
}
|
|
5503
5503
|
});
|
|
@@ -6055,7 +6055,7 @@ async function executeLoop(engine, params) {
|
|
|
6055
6055
|
options: {
|
|
6056
6056
|
type: "workflow_conditional_eval" /* WORKFLOW_CONDITIONAL_EVAL */,
|
|
6057
6057
|
name: `condition: '${entry.loopType}'`,
|
|
6058
|
-
input:
|
|
6058
|
+
input: chunkR2V6BCYX_cjs.selectFields(result.output, ["stepResult", "output.text", "output.object", "messages"]),
|
|
6059
6059
|
attributes: {
|
|
6060
6060
|
conditionIndex: iteration
|
|
6061
6061
|
},
|
|
@@ -11356,7 +11356,7 @@ var MastraScorer = class _MastraScorer {
|
|
|
11356
11356
|
}
|
|
11357
11357
|
});
|
|
11358
11358
|
}
|
|
11359
|
-
const resolvedModel = await
|
|
11359
|
+
const resolvedModel = await chunk7CDFI4GW_cjs.resolveModelConfig(modelConfig, void 0, this.#mastra);
|
|
11360
11360
|
const judge = new Agent({
|
|
11361
11361
|
id: "judge",
|
|
11362
11362
|
name: "judge",
|
|
@@ -12809,7 +12809,7 @@ function createLLMExecutionStep({
|
|
|
12809
12809
|
const convertedTools = {};
|
|
12810
12810
|
for (const [name, tool2] of Object.entries(currentStep.tools)) {
|
|
12811
12811
|
if (chunkK4NN2KQQ_cjs.isMastraTool(tool2)) {
|
|
12812
|
-
convertedTools[name] =
|
|
12812
|
+
convertedTools[name] = chunkR2V6BCYX_cjs.makeCoreTool(
|
|
12813
12813
|
tool2,
|
|
12814
12814
|
{
|
|
12815
12815
|
name,
|
|
@@ -13016,7 +13016,7 @@ Analyse the suspended tools: ${JSON.stringify(suspendedTools)}, using the messag
|
|
|
13016
13016
|
}
|
|
13017
13017
|
});
|
|
13018
13018
|
let transportResolver;
|
|
13019
|
-
if (currentStep.model instanceof
|
|
13019
|
+
if (currentStep.model instanceof chunk7CDFI4GW_cjs.ModelRouterLanguageModel) {
|
|
13020
13020
|
const routerModel = currentStep.model;
|
|
13021
13021
|
transportResolver = () => routerModel._getStreamTransport();
|
|
13022
13022
|
}
|
|
@@ -14763,7 +14763,7 @@ var MastraLLMVNext = class extends chunkRO47SMI7_cjs.MastraBase {
|
|
|
14763
14763
|
const remainingTokens = parseInt(props?.response?.headers?.["x-ratelimit-remaining-tokens"] ?? "", 10);
|
|
14764
14764
|
if (!isNaN(remainingTokens) && remainingTokens > 0 && remainingTokens < 2e3) {
|
|
14765
14765
|
this.logger.warn("Rate limit approaching, waiting 10 seconds", { runId });
|
|
14766
|
-
await
|
|
14766
|
+
await chunkR2V6BCYX_cjs.delay(10 * 1e3);
|
|
14767
14767
|
}
|
|
14768
14768
|
},
|
|
14769
14769
|
onFinish: async (props) => {
|
|
@@ -19785,7 +19785,7 @@ ${errorMessages}`,
|
|
|
19785
19785
|
*/
|
|
19786
19786
|
listTools({ requestContext = new chunk5WBEMKE2_cjs.RequestContext() } = {}) {
|
|
19787
19787
|
if (typeof this.#tools !== "function") {
|
|
19788
|
-
return
|
|
19788
|
+
return chunkR2V6BCYX_cjs.ensureToolProperties(this.#tools);
|
|
19789
19789
|
}
|
|
19790
19790
|
const result = this.#tools({
|
|
19791
19791
|
requestContext,
|
|
@@ -19806,7 +19806,7 @@ ${errorMessages}`,
|
|
|
19806
19806
|
this.logger.error(mastraError.toString());
|
|
19807
19807
|
throw mastraError;
|
|
19808
19808
|
}
|
|
19809
|
-
return
|
|
19809
|
+
return chunkR2V6BCYX_cjs.ensureToolProperties(tools);
|
|
19810
19810
|
});
|
|
19811
19811
|
}
|
|
19812
19812
|
/**
|
|
@@ -19852,7 +19852,7 @@ ${errorMessages}`,
|
|
|
19852
19852
|
});
|
|
19853
19853
|
});
|
|
19854
19854
|
} else {
|
|
19855
|
-
llm = new
|
|
19855
|
+
llm = new chunkMBJ6IAKF_cjs.MastraLLMV1({
|
|
19856
19856
|
model: modelInfo,
|
|
19857
19857
|
mastra: this.#mastra,
|
|
19858
19858
|
options: { tracingPolicy: this.#options?.tracingPolicy }
|
|
@@ -19878,7 +19878,7 @@ ${errorMessages}`,
|
|
|
19878
19878
|
*/
|
|
19879
19879
|
async resolveModelConfig(modelConfig, requestContext) {
|
|
19880
19880
|
try {
|
|
19881
|
-
return await
|
|
19881
|
+
return await chunk7CDFI4GW_cjs.resolveModelConfig(modelConfig, requestContext, this.#mastra);
|
|
19882
19882
|
} catch (error) {
|
|
19883
19883
|
const mastraError = new chunk4U7ZLI36_cjs.MastraError({
|
|
19884
19884
|
id: "AGENT_GET_MODEL_MISSING_MODEL_INSTANCE",
|
|
@@ -20364,7 +20364,7 @@ ${errorMessages}`,
|
|
|
20364
20364
|
tracingPolicy: this.#options?.tracingPolicy,
|
|
20365
20365
|
requireApproval: toolObj.requireApproval
|
|
20366
20366
|
};
|
|
20367
|
-
const convertedToCoreTool =
|
|
20367
|
+
const convertedToCoreTool = chunkR2V6BCYX_cjs.makeCoreTool(toolObj, options, void 0, autoResumeSuspendedTools);
|
|
20368
20368
|
convertedMemoryTools[toolName] = convertedToCoreTool;
|
|
20369
20369
|
}
|
|
20370
20370
|
}
|
|
@@ -20416,7 +20416,7 @@ ${errorMessages}`,
|
|
|
20416
20416
|
requireApproval: toolObj.requireApproval,
|
|
20417
20417
|
workspace
|
|
20418
20418
|
};
|
|
20419
|
-
const convertedToCoreTool =
|
|
20419
|
+
const convertedToCoreTool = chunkR2V6BCYX_cjs.makeCoreTool(toolObj, options, void 0, autoResumeSuspendedTools);
|
|
20420
20420
|
convertedWorkspaceTools[toolName] = convertedToCoreTool;
|
|
20421
20421
|
}
|
|
20422
20422
|
}
|
|
@@ -20471,7 +20471,7 @@ ${errorMessages}`,
|
|
|
20471
20471
|
// Skill tools never require approval
|
|
20472
20472
|
workspace
|
|
20473
20473
|
};
|
|
20474
|
-
const convertedToCoreTool =
|
|
20474
|
+
const convertedToCoreTool = chunkR2V6BCYX_cjs.makeCoreTool(toolObj, options, void 0, autoResumeSuspendedTools);
|
|
20475
20475
|
convertedSkillTools[toolName] = convertedToCoreTool;
|
|
20476
20476
|
}
|
|
20477
20477
|
}
|
|
@@ -20688,7 +20688,7 @@ ${errorMessages}`,
|
|
|
20688
20688
|
tracingPolicy: this.#options?.tracingPolicy,
|
|
20689
20689
|
requireApproval: tool2.requireApproval
|
|
20690
20690
|
};
|
|
20691
|
-
return [k,
|
|
20691
|
+
return [k, chunkR2V6BCYX_cjs.makeCoreTool(tool2, options, void 0, autoResumeSuspendedTools)];
|
|
20692
20692
|
})
|
|
20693
20693
|
);
|
|
20694
20694
|
const assignedToolEntriesConverted = Object.fromEntries(
|
|
@@ -20740,7 +20740,7 @@ ${errorMessages}`,
|
|
|
20740
20740
|
tracingPolicy: this.#options?.tracingPolicy,
|
|
20741
20741
|
requireApproval: toolObj.requireApproval
|
|
20742
20742
|
};
|
|
20743
|
-
const convertedToCoreTool =
|
|
20743
|
+
const convertedToCoreTool = chunkR2V6BCYX_cjs.makeCoreTool(toolObj, options, "toolset", autoResumeSuspendedTools);
|
|
20744
20744
|
toolsForRequest[toolName] = convertedToCoreTool;
|
|
20745
20745
|
}
|
|
20746
20746
|
}
|
|
@@ -20787,7 +20787,7 @@ ${errorMessages}`,
|
|
|
20787
20787
|
tracingPolicy: this.#options?.tracingPolicy,
|
|
20788
20788
|
requireApproval: tool2.requireApproval
|
|
20789
20789
|
};
|
|
20790
|
-
const convertedToCoreTool =
|
|
20790
|
+
const convertedToCoreTool = chunkR2V6BCYX_cjs.makeCoreTool(toolRest, options, "client-tool", autoResumeSuspendedTools);
|
|
20791
20791
|
toolsForRequest[toolName] = convertedToCoreTool;
|
|
20792
20792
|
}
|
|
20793
20793
|
}
|
|
@@ -21448,7 +21448,7 @@ ${effectiveInstructions}`;
|
|
|
21448
21448
|
...observabilityContext,
|
|
21449
21449
|
tracingPolicy: this.#options?.tracingPolicy
|
|
21450
21450
|
};
|
|
21451
|
-
convertedAgentTools[`agent-${agentName}`] =
|
|
21451
|
+
convertedAgentTools[`agent-${agentName}`] = chunkR2V6BCYX_cjs.makeCoreTool(
|
|
21452
21452
|
toolObj,
|
|
21453
21453
|
options,
|
|
21454
21454
|
void 0,
|
|
@@ -21665,7 +21665,7 @@ ${effectiveInstructions}`;
|
|
|
21665
21665
|
...observabilityContext,
|
|
21666
21666
|
tracingPolicy: this.#options?.tracingPolicy
|
|
21667
21667
|
};
|
|
21668
|
-
convertedWorkflowTools[`workflow-${workflowName}`] =
|
|
21668
|
+
convertedWorkflowTools[`workflow-${workflowName}`] = chunkR2V6BCYX_cjs.makeCoreTool(
|
|
21669
21669
|
toolObj,
|
|
21670
21670
|
options,
|
|
21671
21671
|
void 0,
|
|
@@ -21697,7 +21697,7 @@ ${effectiveInstructions}`;
|
|
|
21697
21697
|
let mastraProxy = void 0;
|
|
21698
21698
|
const logger = this.logger;
|
|
21699
21699
|
if (this.#mastra) {
|
|
21700
|
-
mastraProxy =
|
|
21700
|
+
mastraProxy = chunkR2V6BCYX_cjs.createMastraProxy({ mastra: this.#mastra, logger });
|
|
21701
21701
|
}
|
|
21702
21702
|
const assignedTools = await this.listAssignedTools({
|
|
21703
21703
|
runId,
|
|
@@ -21949,7 +21949,7 @@ ${effectiveInstructions}`;
|
|
|
21949
21949
|
const resolvedModel = await this.resolveModelConfig(selection, requestContext);
|
|
21950
21950
|
this.assertSupportsPreparedModels(resolvedModel);
|
|
21951
21951
|
let headers;
|
|
21952
|
-
if (resolvedModel instanceof
|
|
21952
|
+
if (resolvedModel instanceof chunk7CDFI4GW_cjs.ModelRouterLanguageModel) {
|
|
21953
21953
|
headers = resolvedModel.config?.headers;
|
|
21954
21954
|
}
|
|
21955
21955
|
return [
|
|
@@ -21982,7 +21982,7 @@ ${effectiveInstructions}`;
|
|
|
21982
21982
|
throw mastraError;
|
|
21983
21983
|
}
|
|
21984
21984
|
let headers;
|
|
21985
|
-
if (model instanceof
|
|
21985
|
+
if (model instanceof chunk7CDFI4GW_cjs.ModelRouterLanguageModel) {
|
|
21986
21986
|
headers = model.config?.headers;
|
|
21987
21987
|
}
|
|
21988
21988
|
return {
|
|
@@ -22433,7 +22433,7 @@ ${effectiveInstructions}`;
|
|
|
22433
22433
|
const defaultOptions = await this.getDefaultOptions({
|
|
22434
22434
|
requestContext: options?.requestContext
|
|
22435
22435
|
});
|
|
22436
|
-
const mergedOptions =
|
|
22436
|
+
const mergedOptions = chunkR2V6BCYX_cjs.deepMerge(
|
|
22437
22437
|
defaultOptions,
|
|
22438
22438
|
options ?? {}
|
|
22439
22439
|
);
|
|
@@ -22503,7 +22503,7 @@ ${effectiveInstructions}`;
|
|
|
22503
22503
|
const defaultOptions = await this.getDefaultOptions({
|
|
22504
22504
|
requestContext: streamOptions?.requestContext
|
|
22505
22505
|
});
|
|
22506
|
-
const mergedOptions =
|
|
22506
|
+
const mergedOptions = chunkR2V6BCYX_cjs.deepMerge(
|
|
22507
22507
|
defaultOptions,
|
|
22508
22508
|
streamOptions ?? {}
|
|
22509
22509
|
);
|
|
@@ -22567,7 +22567,7 @@ ${effectiveInstructions}`;
|
|
|
22567
22567
|
const defaultOptions = await this.getDefaultOptions({
|
|
22568
22568
|
requestContext: streamOptions?.requestContext
|
|
22569
22569
|
});
|
|
22570
|
-
let mergedStreamOptions =
|
|
22570
|
+
let mergedStreamOptions = chunkR2V6BCYX_cjs.deepMerge(
|
|
22571
22571
|
defaultOptions,
|
|
22572
22572
|
streamOptions ?? {}
|
|
22573
22573
|
);
|
|
@@ -22632,7 +22632,7 @@ ${effectiveInstructions}`;
|
|
|
22632
22632
|
const defaultOptions = await this.getDefaultOptions({
|
|
22633
22633
|
requestContext: options?.requestContext
|
|
22634
22634
|
});
|
|
22635
|
-
const mergedOptions =
|
|
22635
|
+
const mergedOptions = chunkR2V6BCYX_cjs.deepMerge(
|
|
22636
22636
|
defaultOptions,
|
|
22637
22637
|
options ?? {}
|
|
22638
22638
|
);
|
|
@@ -25867,7 +25867,7 @@ var WorkingMemory = class {
|
|
|
25867
25867
|
return messageList;
|
|
25868
25868
|
}
|
|
25869
25869
|
generateEmptyFromSchemaInternal(schema) {
|
|
25870
|
-
const result =
|
|
25870
|
+
const result = chunkR2V6BCYX_cjs.generateEmptyFromSchema(schema);
|
|
25871
25871
|
return Object.keys(result).length > 0 ? result : null;
|
|
25872
25872
|
}
|
|
25873
25873
|
getWorkingMemoryToolInstruction({
|
|
@@ -26512,7 +26512,7 @@ https://mastra.ai/en/docs/memory/semantic-recall`
|
|
|
26512
26512
|
);
|
|
26513
26513
|
}
|
|
26514
26514
|
if (typeof config.embedder === "string") {
|
|
26515
|
-
this.embedder = new
|
|
26515
|
+
this.embedder = new chunk7CDFI4GW_cjs.ModelRouterEmbeddingModel(config.embedder);
|
|
26516
26516
|
} else {
|
|
26517
26517
|
this.embedder = config.embedder;
|
|
26518
26518
|
}
|
|
@@ -26551,7 +26551,7 @@ https://mastra.ai/en/docs/memory/overview`
|
|
|
26551
26551
|
}
|
|
26552
26552
|
setEmbedder(embedder, embedderOptions) {
|
|
26553
26553
|
if (typeof embedder === "string") {
|
|
26554
|
-
this.embedder = new
|
|
26554
|
+
this.embedder = new chunk7CDFI4GW_cjs.ModelRouterEmbeddingModel(embedder);
|
|
26555
26555
|
} else {
|
|
26556
26556
|
this.embedder = embedder;
|
|
26557
26557
|
}
|
|
@@ -26648,7 +26648,7 @@ https://mastra.ai/en/docs/memory/overview`
|
|
|
26648
26648
|
"The threads.generateTitle option has been moved. Use the top-level generateTitle option instead."
|
|
26649
26649
|
);
|
|
26650
26650
|
}
|
|
26651
|
-
const mergedConfig =
|
|
26651
|
+
const mergedConfig = chunkR2V6BCYX_cjs.deepMerge(this.threadConfig, config || {});
|
|
26652
26652
|
if (typeof config?.workingMemory === "object" && config.workingMemory?.schema && typeof mergedConfig.workingMemory === "object") {
|
|
26653
26653
|
mergedConfig.workingMemory.schema = config.workingMemory.schema;
|
|
26654
26654
|
}
|
|
@@ -27000,7 +27000,7 @@ var MockMemory = class extends MastraMemory {
|
|
|
27000
27000
|
} = {}) {
|
|
27001
27001
|
super({
|
|
27002
27002
|
name: "mock",
|
|
27003
|
-
storage: storage || new
|
|
27003
|
+
storage: storage || new chunk3H34KWBU_cjs.InMemoryStore(),
|
|
27004
27004
|
options: {
|
|
27005
27005
|
...options,
|
|
27006
27006
|
workingMemory: enableWorkingMemory ? { enabled: true, template: workingMemoryTemplate } : options?.workingMemory,
|
|
@@ -27311,5 +27311,5 @@ exports.validateStepRequestContext = validateStepRequestContext;
|
|
|
27311
27311
|
exports.validateStepResumeData = validateStepResumeData;
|
|
27312
27312
|
exports.validateStepStateData = validateStepStateData;
|
|
27313
27313
|
exports.validateStepSuspendData = validateStepSuspendData;
|
|
27314
|
-
//# sourceMappingURL=chunk-
|
|
27315
|
-
//# sourceMappingURL=chunk-
|
|
27314
|
+
//# sourceMappingURL=chunk-BHVF4Z5D.cjs.map
|
|
27315
|
+
//# sourceMappingURL=chunk-BHVF4Z5D.cjs.map
|