@mastra/core 1.18.1-alpha.1 → 1.19.0-alpha.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (150) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/dist/agent/agent-legacy.d.ts +3 -1
  3. package/dist/agent/agent-legacy.d.ts.map +1 -1
  4. package/dist/agent/agent.d.ts +3 -1
  5. package/dist/agent/agent.d.ts.map +1 -1
  6. package/dist/agent/index.cjs +8 -8
  7. package/dist/agent/index.js +1 -1
  8. package/dist/{chunk-AV4YSAZL.cjs → chunk-2OYWVA6F.cjs} +17 -2
  9. package/dist/chunk-2OYWVA6F.cjs.map +1 -0
  10. package/dist/{chunk-YMPV2RMB.cjs → chunk-2RTFET56.cjs} +7 -7
  11. package/dist/{chunk-YMPV2RMB.cjs.map → chunk-2RTFET56.cjs.map} +1 -1
  12. package/dist/{chunk-6VRSFFQ4.cjs → chunk-4TUILCMR.cjs} +6 -6
  13. package/dist/{chunk-6VRSFFQ4.cjs.map → chunk-4TUILCMR.cjs.map} +1 -1
  14. package/dist/{chunk-WMF4CWAL.cjs → chunk-5OBBDZBA.cjs} +185 -185
  15. package/dist/{chunk-WMF4CWAL.cjs.map → chunk-5OBBDZBA.cjs.map} +1 -1
  16. package/dist/{chunk-7IE4K74P.js → chunk-6TEEIOHA.js} +4 -4
  17. package/dist/{chunk-7IE4K74P.js.map → chunk-6TEEIOHA.js.map} +1 -1
  18. package/dist/{chunk-JTJCFEIY.js → chunk-6XYHMM2X.js} +8 -8
  19. package/dist/{chunk-JTJCFEIY.js.map → chunk-6XYHMM2X.js.map} +1 -1
  20. package/dist/{chunk-AJZQPWAV.js → chunk-BS5UESNT.js} +41 -30
  21. package/dist/chunk-BS5UESNT.js.map +1 -0
  22. package/dist/{chunk-BZ2MSXOF.js → chunk-CSIKD56W.js} +3 -3
  23. package/dist/{chunk-BZ2MSXOF.js.map → chunk-CSIKD56W.js.map} +1 -1
  24. package/dist/{chunk-7V3UNILV.js → chunk-D5EXC3XM.js} +4 -4
  25. package/dist/{chunk-7V3UNILV.js.map → chunk-D5EXC3XM.js.map} +1 -1
  26. package/dist/{chunk-VEP4CV7E.cjs → chunk-E2SMTTP6.cjs} +15 -15
  27. package/dist/{chunk-VEP4CV7E.cjs.map → chunk-E2SMTTP6.cjs.map} +1 -1
  28. package/dist/{chunk-6R5PT6ZP.cjs → chunk-E3JUOJME.cjs} +5 -5
  29. package/dist/{chunk-6R5PT6ZP.cjs.map → chunk-E3JUOJME.cjs.map} +1 -1
  30. package/dist/{chunk-FA4PTEBK.js → chunk-EWPUWV33.js} +18 -3
  31. package/dist/chunk-EWPUWV33.js.map +1 -0
  32. package/dist/{chunk-QNNFMCSE.js → chunk-F4PVOQKD.js} +3 -3
  33. package/dist/{chunk-QNNFMCSE.js.map → chunk-F4PVOQKD.js.map} +1 -1
  34. package/dist/{chunk-XDZOEUNU.cjs → chunk-GFQPMPSV.cjs} +7 -113
  35. package/dist/chunk-GFQPMPSV.cjs.map +1 -0
  36. package/dist/{chunk-5ANYSU2W.cjs → chunk-GNA52EF4.cjs} +9 -9
  37. package/dist/{chunk-5ANYSU2W.cjs.map → chunk-GNA52EF4.cjs.map} +1 -1
  38. package/dist/{chunk-UJX2TJIF.js → chunk-IOHKSHT4.js} +3 -3
  39. package/dist/{chunk-UJX2TJIF.js.map → chunk-IOHKSHT4.js.map} +1 -1
  40. package/dist/{chunk-LVZKPNQO.cjs → chunk-IQV2SVCE.cjs} +52 -52
  41. package/dist/{chunk-LVZKPNQO.cjs.map → chunk-IQV2SVCE.cjs.map} +1 -1
  42. package/dist/{chunk-XNBGNCVV.cjs → chunk-L2FL7HMV.cjs} +25 -25
  43. package/dist/{chunk-XNBGNCVV.cjs.map → chunk-L2FL7HMV.cjs.map} +1 -1
  44. package/dist/{chunk-PB3KXPNE.js → chunk-M62LMDHE.js} +7 -7
  45. package/dist/{chunk-PB3KXPNE.js.map → chunk-M62LMDHE.js.map} +1 -1
  46. package/dist/{chunk-YCT2YQDL.cjs → chunk-MN7WNZE6.cjs} +6 -6
  47. package/dist/{chunk-YCT2YQDL.cjs.map → chunk-MN7WNZE6.cjs.map} +1 -1
  48. package/dist/{chunk-QADPCUBX.cjs → chunk-NWOPWLJ3.cjs} +82 -82
  49. package/dist/{chunk-QADPCUBX.cjs.map → chunk-NWOPWLJ3.cjs.map} +1 -1
  50. package/dist/{chunk-WLNT3YJ7.cjs → chunk-O542TXPV.cjs} +97 -86
  51. package/dist/chunk-O542TXPV.cjs.map +1 -0
  52. package/dist/{chunk-X4Q4KB6C.js → chunk-OZHBY6NY.js} +3 -3
  53. package/dist/{chunk-X4Q4KB6C.js.map → chunk-OZHBY6NY.js.map} +1 -1
  54. package/dist/{chunk-OLHODPXN.js → chunk-PPCEPCG7.js} +3 -3
  55. package/dist/{chunk-OLHODPXN.js.map → chunk-PPCEPCG7.js.map} +1 -1
  56. package/dist/{chunk-EXDBQKH4.cjs → chunk-QB4YHCVA.cjs} +15 -15
  57. package/dist/{chunk-EXDBQKH4.cjs.map → chunk-QB4YHCVA.cjs.map} +1 -1
  58. package/dist/{chunk-VMBWVH4B.js → chunk-QIOD3LOP.js} +3 -3
  59. package/dist/{chunk-VMBWVH4B.js.map → chunk-QIOD3LOP.js.map} +1 -1
  60. package/dist/{chunk-2W7R236U.cjs → chunk-RD76XK7E.cjs} +3 -3
  61. package/dist/{chunk-2W7R236U.cjs.map → chunk-RD76XK7E.cjs.map} +1 -1
  62. package/dist/{chunk-EAJDF6UV.js → chunk-SVIEJH5H.js} +3 -3
  63. package/dist/{chunk-EAJDF6UV.js.map → chunk-SVIEJH5H.js.map} +1 -1
  64. package/dist/{chunk-RF4TETYQ.js → chunk-VYZRHQUD.js} +5 -5
  65. package/dist/{chunk-RF4TETYQ.js.map → chunk-VYZRHQUD.js.map} +1 -1
  66. package/dist/{chunk-L2GYXPJJ.cjs → chunk-WKAEIA42.cjs} +9 -9
  67. package/dist/{chunk-L2GYXPJJ.cjs.map → chunk-WKAEIA42.cjs.map} +1 -1
  68. package/dist/{chunk-OTJAMDX5.js → chunk-X5BBF6AG.js} +3 -3
  69. package/dist/{chunk-OTJAMDX5.js.map → chunk-X5BBF6AG.js.map} +1 -1
  70. package/dist/{chunk-HQCBFWL2.js → chunk-Z6I5PBGG.js} +6 -112
  71. package/dist/chunk-Z6I5PBGG.js.map +1 -0
  72. package/dist/datasets/index.cjs +17 -17
  73. package/dist/datasets/index.js +2 -2
  74. package/dist/docs/SKILL.md +1 -1
  75. package/dist/docs/assets/SOURCE_MAP.json +232 -232
  76. package/dist/evals/index.cjs +5 -5
  77. package/dist/evals/index.js +2 -2
  78. package/dist/evals/scoreTraces/index.cjs +3 -3
  79. package/dist/evals/scoreTraces/index.js +1 -1
  80. package/dist/harness/index.cjs +19 -19
  81. package/dist/harness/index.js +8 -8
  82. package/dist/index.cjs +2 -2
  83. package/dist/index.js +1 -1
  84. package/dist/integration/index.cjs +2 -2
  85. package/dist/integration/index.js +1 -1
  86. package/dist/llm/index.cjs +16 -16
  87. package/dist/llm/index.js +5 -5
  88. package/dist/llm/model/provider-types.generated.d.ts +1 -50
  89. package/dist/loop/index.cjs +14 -14
  90. package/dist/loop/index.js +1 -1
  91. package/dist/mastra/index.cjs +2 -2
  92. package/dist/mastra/index.js +1 -1
  93. package/dist/memory/index.cjs +14 -14
  94. package/dist/memory/index.js +1 -1
  95. package/dist/models-dev-VAVD7BDV.cjs +12 -0
  96. package/dist/{models-dev-WD6XLSFC.cjs.map → models-dev-VAVD7BDV.cjs.map} +1 -1
  97. package/dist/models-dev-VFIUOVG4.js +3 -0
  98. package/dist/{models-dev-XG4KIUFT.js.map → models-dev-VFIUOVG4.js.map} +1 -1
  99. package/dist/netlify-KL3UR26O.cjs +12 -0
  100. package/dist/{netlify-FMBBUFKT.cjs.map → netlify-KL3UR26O.cjs.map} +1 -1
  101. package/dist/netlify-Q3SJTV4U.js +3 -0
  102. package/dist/{netlify-NDOVF45T.js.map → netlify-Q3SJTV4U.js.map} +1 -1
  103. package/dist/processor-provider/index.cjs +10 -10
  104. package/dist/processor-provider/index.js +1 -1
  105. package/dist/processors/index.cjs +44 -44
  106. package/dist/processors/index.js +1 -1
  107. package/dist/provider-registry-COX4XKGI.js +3 -0
  108. package/dist/{provider-registry-KHXFOGCK.js.map → provider-registry-COX4XKGI.js.map} +1 -1
  109. package/dist/provider-registry-IAU4XHVY.cjs +40 -0
  110. package/dist/{provider-registry-VUG7E4SG.cjs.map → provider-registry-IAU4XHVY.cjs.map} +1 -1
  111. package/dist/provider-registry.json +2 -108
  112. package/dist/relevance/index.cjs +3 -3
  113. package/dist/relevance/index.js +1 -1
  114. package/dist/storage/index.cjs +74 -74
  115. package/dist/storage/index.js +1 -1
  116. package/dist/stream/index.cjs +8 -8
  117. package/dist/stream/index.js +1 -1
  118. package/dist/test-utils/llm-mock.cjs +4 -4
  119. package/dist/test-utils/llm-mock.js +1 -1
  120. package/dist/tool-loop-agent/index.cjs +4 -4
  121. package/dist/tool-loop-agent/index.js +1 -1
  122. package/dist/tools/index.cjs +8 -8
  123. package/dist/tools/index.js +1 -1
  124. package/dist/tools/is-vercel-tool.cjs +2 -2
  125. package/dist/tools/is-vercel-tool.js +1 -1
  126. package/dist/tools/validation.d.ts.map +1 -1
  127. package/dist/utils.cjs +25 -25
  128. package/dist/utils.js +1 -1
  129. package/dist/vector/index.cjs +7 -7
  130. package/dist/vector/index.js +1 -1
  131. package/dist/workflows/evented/index.cjs +10 -10
  132. package/dist/workflows/evented/index.js +1 -1
  133. package/dist/workflows/index.cjs +24 -24
  134. package/dist/workflows/index.js +1 -1
  135. package/dist/workspace/index.cjs +68 -68
  136. package/dist/workspace/index.js +1 -1
  137. package/package.json +4 -4
  138. package/src/llm/model/provider-types.generated.d.ts +1 -50
  139. package/dist/chunk-AJZQPWAV.js.map +0 -1
  140. package/dist/chunk-AV4YSAZL.cjs.map +0 -1
  141. package/dist/chunk-FA4PTEBK.js.map +0 -1
  142. package/dist/chunk-HQCBFWL2.js.map +0 -1
  143. package/dist/chunk-WLNT3YJ7.cjs.map +0 -1
  144. package/dist/chunk-XDZOEUNU.cjs.map +0 -1
  145. package/dist/models-dev-WD6XLSFC.cjs +0 -12
  146. package/dist/models-dev-XG4KIUFT.js +0 -3
  147. package/dist/netlify-FMBBUFKT.cjs +0 -12
  148. package/dist/netlify-NDOVF45T.js +0 -3
  149. package/dist/provider-registry-KHXFOGCK.js +0 -3
  150. package/dist/provider-registry-VUG7E4SG.cjs +0 -40
@@ -2,20 +2,20 @@
2
2
 
3
3
  var chunkZC4FJVJZ_cjs = require('./chunk-ZC4FJVJZ.cjs');
4
4
  var chunkZCBG4ZQT_cjs = require('./chunk-ZCBG4ZQT.cjs');
5
- var chunkXNBGNCVV_cjs = require('./chunk-XNBGNCVV.cjs');
6
- var chunk5ANYSU2W_cjs = require('./chunk-5ANYSU2W.cjs');
5
+ var chunkL2FL7HMV_cjs = require('./chunk-L2FL7HMV.cjs');
6
+ var chunkGNA52EF4_cjs = require('./chunk-GNA52EF4.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 chunkQADPCUBX_cjs = require('./chunk-QADPCUBX.cjs');
12
- var chunk6VRSFFQ4_cjs = require('./chunk-6VRSFFQ4.cjs');
11
+ var chunkNWOPWLJ3_cjs = require('./chunk-NWOPWLJ3.cjs');
12
+ var chunk4TUILCMR_cjs = require('./chunk-4TUILCMR.cjs');
13
13
  var chunk6BJ7XHRH_cjs = require('./chunk-6BJ7XHRH.cjs');
14
14
  var chunkOQDRPRKM_cjs = require('./chunk-OQDRPRKM.cjs');
15
- var chunkVEP4CV7E_cjs = require('./chunk-VEP4CV7E.cjs');
15
+ var chunkE2SMTTP6_cjs = require('./chunk-E2SMTTP6.cjs');
16
16
  var chunkBF7IH4JU_cjs = require('./chunk-BF7IH4JU.cjs');
17
17
  var chunkKJBMTK5B_cjs = require('./chunk-KJBMTK5B.cjs');
18
- var chunkAV4YSAZL_cjs = require('./chunk-AV4YSAZL.cjs');
18
+ var chunk2OYWVA6F_cjs = require('./chunk-2OYWVA6F.cjs');
19
19
  var chunkXB4FLS7A_cjs = require('./chunk-XB4FLS7A.cjs');
20
20
  var chunk5WBEMKE2_cjs = require('./chunk-5WBEMKE2.cjs');
21
21
  var chunk4U7ZLI36_cjs = require('./chunk-4U7ZLI36.cjs');
@@ -660,10 +660,10 @@ function prepareToolsAndToolChoice({
660
660
  return {
661
661
  tools: filteredTools.map(([name, tool2]) => {
662
662
  try {
663
- if (chunkAV4YSAZL_cjs.isProviderDefinedTool(tool2)) {
663
+ if (chunk2OYWVA6F_cjs.isProviderDefinedTool(tool2)) {
664
664
  return {
665
665
  type: providerToolType,
666
- name: chunkAV4YSAZL_cjs.getProviderToolName(tool2.id),
666
+ name: chunk2OYWVA6F_cjs.getProviderToolName(tool2.id),
667
667
  id: tool2.id,
668
668
  args: tool2.args ?? {}
669
669
  };
@@ -717,7 +717,7 @@ function prepareToolsAndToolChoice({
717
717
  const providerId = sdkTool.id;
718
718
  return {
719
719
  type: providerToolType,
720
- name: providerId ? chunkAV4YSAZL_cjs.getProviderToolName(providerId) : name,
720
+ name: providerId ? chunk2OYWVA6F_cjs.getProviderToolName(providerId) : name,
721
721
  id: providerId,
722
722
  args: sdkTool.args
723
723
  };
@@ -2079,7 +2079,7 @@ var ProcessorRunner = class _ProcessorRunner {
2079
2079
  }
2080
2080
  const { model: _model, ...rest } = result;
2081
2081
  if (result.model) {
2082
- const resolvedModel = await chunkQADPCUBX_cjs.resolveModelConfig(result.model);
2082
+ const resolvedModel = await chunkNWOPWLJ3_cjs.resolveModelConfig(result.model);
2083
2083
  const isSupported = isSupportedLanguageModel(resolvedModel);
2084
2084
  if (!isSupported) {
2085
2085
  throw new chunk4U7ZLI36_cjs.MastraError({
@@ -5505,7 +5505,7 @@ var createTimeTravelExecutionParams = (params) => {
5505
5505
  result = void 0;
5506
5506
  }
5507
5507
  if (result) {
5508
- const formattedResult = chunkVEP4CV7E_cjs.removeUndefinedValues(result);
5508
+ const formattedResult = chunkE2SMTTP6_cjs.removeUndefinedValues(result);
5509
5509
  stepResults[stepId] = formattedResult;
5510
5510
  }
5511
5511
  });
@@ -6063,7 +6063,7 @@ async function executeLoop(engine, params) {
6063
6063
  options: {
6064
6064
  type: "workflow_conditional_eval" /* WORKFLOW_CONDITIONAL_EVAL */,
6065
6065
  name: `condition: '${entry.loopType}'`,
6066
- input: chunkVEP4CV7E_cjs.selectFields(result.output, ["stepResult", "output.text", "output.object", "messages"]),
6066
+ input: chunkE2SMTTP6_cjs.selectFields(result.output, ["stepResult", "output.text", "output.object", "messages"]),
6067
6067
  attributes: {
6068
6068
  conditionIndex: iteration
6069
6069
  },
@@ -8333,10 +8333,10 @@ function isAgent(input) {
8333
8333
  return input instanceof Agent;
8334
8334
  }
8335
8335
  function isToolStep(input) {
8336
- return input instanceof chunkAV4YSAZL_cjs.Tool;
8336
+ return input instanceof chunk2OYWVA6F_cjs.Tool;
8337
8337
  }
8338
8338
  function isStepParams(input) {
8339
- return input !== null && typeof input === "object" && "id" in input && "execute" in input && !(input instanceof Agent) && !(input instanceof chunkAV4YSAZL_cjs.Tool);
8339
+ return input !== null && typeof input === "object" && "id" in input && "execute" in input && !(input instanceof Agent) && !(input instanceof chunk2OYWVA6F_cjs.Tool);
8340
8340
  }
8341
8341
  function findStepInGraph(graph, stepId) {
8342
8342
  for (const entry of graph) {
@@ -9076,7 +9076,7 @@ function cloneStep(step, opts) {
9076
9076
  };
9077
9077
  }
9078
9078
  function isProcessor(obj) {
9079
- return obj !== null && typeof obj === "object" && "id" in obj && typeof obj.id === "string" && !(obj instanceof Agent) && !(obj instanceof chunkAV4YSAZL_cjs.Tool) && (typeof obj.processInput === "function" || typeof obj.processInputStep === "function" || typeof obj.processOutputStream === "function" || typeof obj.processOutputResult === "function" || typeof obj.processOutputStep === "function");
9079
+ return obj !== null && typeof obj === "object" && "id" in obj && typeof obj.id === "string" && !(obj instanceof Agent) && !(obj instanceof chunk2OYWVA6F_cjs.Tool) && (typeof obj.processInput === "function" || typeof obj.processInputStep === "function" || typeof obj.processOutputStream === "function" || typeof obj.processOutputResult === "function" || typeof obj.processOutputStep === "function");
9080
9080
  }
9081
9081
  function createWorkflow(params) {
9082
9082
  return new Workflow(params);
@@ -11374,7 +11374,7 @@ var MastraScorer = class _MastraScorer {
11374
11374
  }
11375
11375
  });
11376
11376
  }
11377
- const resolvedModel = await chunkQADPCUBX_cjs.resolveModelConfig(modelConfig, void 0, this.#mastra);
11377
+ const resolvedModel = await chunkNWOPWLJ3_cjs.resolveModelConfig(modelConfig, void 0, this.#mastra);
11378
11378
  const judge = new Agent({
11379
11379
  id: "judge",
11380
11380
  name: "judge",
@@ -11605,7 +11605,7 @@ async function runDefaultCompletionCheck(agent, context, streamContext, abortSig
11605
11605
  Primitives already executed: ${completedPrimitives.join(", ")}` : "";
11606
11606
  const completionPrompt = `
11607
11607
  The ${context.selectedPrimitive.type} ${context.selectedPrimitive.id} has contributed to the task.
11608
- This is the result: ${chunkVEP4CV7E_cjs.safeStringify(context.primitiveResult)}
11608
+ This is the result: ${chunkE2SMTTP6_cjs.safeStringify(context.primitiveResult)}
11609
11609
 
11610
11610
  ${completedSection}
11611
11611
 
@@ -11701,7 +11701,7 @@ async function generateFinalResult(agent, context, streamContext, abortSignal, o
11701
11701
  Original task: ${context.originalTask}
11702
11702
 
11703
11703
  The ${context.selectedPrimitive.type} ${context.selectedPrimitive.id} produced this result:
11704
- ${chunkVEP4CV7E_cjs.safeStringify(context.primitiveResult)}
11704
+ ${chunkE2SMTTP6_cjs.safeStringify(context.primitiveResult)}
11705
11705
 
11706
11706
  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.
11707
11707
  You should evaluate if the above result is comprehensive enough to accomplish the user's original task.
@@ -11759,7 +11759,7 @@ async function generateStructuredFinalResult(agent, context, structuredOutputOpt
11759
11759
  Original task: ${context.originalTask}
11760
11760
 
11761
11761
  The ${context.selectedPrimitive.type} ${context.selectedPrimitive.id} produced this result:
11762
- ${chunkVEP4CV7E_cjs.safeStringify(context.primitiveResult)}
11762
+ ${chunkE2SMTTP6_cjs.safeStringify(context.primitiveResult)}
11763
11763
 
11764
11764
  Based on the task and result above, generate a structured response according to the provided schema.
11765
11765
  Use the conversation history and primitive results to craft the response.
@@ -12229,11 +12229,11 @@ var DefaultStepResult = class {
12229
12229
  // src/tools/provider-tool-utils.ts
12230
12230
  function findProviderToolByName(tools, toolName) {
12231
12231
  if (!tools) return void 0;
12232
- return Object.values(tools).find((t) => chunkAV4YSAZL_cjs.isProviderTool(t) && chunkAV4YSAZL_cjs.getProviderToolName(t.id) === toolName);
12232
+ return Object.values(tools).find((t) => chunk2OYWVA6F_cjs.isProviderTool(t) && chunk2OYWVA6F_cjs.getProviderToolName(t.id) === toolName);
12233
12233
  }
12234
12234
  function inferProviderExecuted(providerExecuted, tool2) {
12235
12235
  if (providerExecuted !== void 0) return providerExecuted;
12236
- return chunkAV4YSAZL_cjs.isProviderTool(tool2) ? true : void 0;
12236
+ return chunk2OYWVA6F_cjs.isProviderTool(tool2) ? true : void 0;
12237
12237
  }
12238
12238
 
12239
12239
  // src/loop/workflows/run-state.ts
@@ -12855,8 +12855,8 @@ function createLLMExecutionStep({
12855
12855
  if (processInputStepResult.tools && currentStep.tools) {
12856
12856
  const convertedTools = {};
12857
12857
  for (const [name, tool2] of Object.entries(currentStep.tools)) {
12858
- if (chunkAV4YSAZL_cjs.isMastraTool(tool2)) {
12859
- convertedTools[name] = chunkVEP4CV7E_cjs.makeCoreTool(
12858
+ if (chunk2OYWVA6F_cjs.isMastraTool(tool2)) {
12859
+ convertedTools[name] = chunkE2SMTTP6_cjs.makeCoreTool(
12860
12860
  tool2,
12861
12861
  {
12862
12862
  name,
@@ -13063,7 +13063,7 @@ Analyse the suspended tools: ${JSON.stringify(suspendedTools)}, using the messag
13063
13063
  }
13064
13064
  });
13065
13065
  let transportResolver;
13066
- if (currentStep.model instanceof chunkQADPCUBX_cjs.ModelRouterLanguageModel) {
13066
+ if (currentStep.model instanceof chunkNWOPWLJ3_cjs.ModelRouterLanguageModel) {
13067
13067
  const routerModel = currentStep.model;
13068
13068
  transportResolver = () => routerModel._getStreamTransport();
13069
13069
  }
@@ -13954,7 +13954,7 @@ function createToolCallStep({
13954
13954
  }
13955
13955
  }
13956
13956
  const rawResult = await tool2.execute(args, toolOptions);
13957
- const result = chunkVEP4CV7E_cjs.ensureSerializable(rawResult);
13957
+ const result = chunkE2SMTTP6_cjs.ensureSerializable(rawResult);
13958
13958
  if (tool2 && "onOutput" in tool2 && typeof tool2.onOutput === "function") {
13959
13959
  try {
13960
13960
  await tool2.onOutput({
@@ -14811,7 +14811,7 @@ var MastraLLMVNext = class extends chunkRO47SMI7_cjs.MastraBase {
14811
14811
  const remainingTokens = parseInt(props?.response?.headers?.["x-ratelimit-remaining-tokens"] ?? "", 10);
14812
14812
  if (!isNaN(remainingTokens) && remainingTokens > 0 && remainingTokens < 2e3) {
14813
14813
  this.logger.warn("Rate limit approaching, waiting 10 seconds", { runId });
14814
- await chunkVEP4CV7E_cjs.delay(10 * 1e3);
14814
+ await chunkE2SMTTP6_cjs.delay(10 * 1e3);
14815
14815
  }
14816
14816
  },
14817
14817
  onFinish: async (props) => {
@@ -17451,27 +17451,33 @@ var AgentLegacyHandler = class {
17451
17451
  }
17452
17452
  const promises = [];
17453
17453
  const config = memory.getMergedThreadConfig(memoryConfig2);
17454
- const userMessage = this.capabilities.getMostRecentUserMessage(messageList.get.all.ui());
17455
17454
  const {
17456
17455
  shouldGenerate,
17457
17456
  model: titleModel,
17458
- instructions: titleInstructions
17457
+ instructions: titleInstructions,
17458
+ minMessages
17459
17459
  } = this.capabilities.resolveTitleGenerationConfig(config?.generateTitle);
17460
- if (shouldGenerate && !thread2.title && userMessage) {
17461
- const observabilityContext2 = chunkBF7IH4JU_cjs.createObservabilityContext({ currentSpan: agentSpan });
17462
- promises.push(
17463
- this.capabilities.genTitle(userMessage, requestContext, observabilityContext2, titleModel, titleInstructions).then((title) => {
17464
- if (title) {
17465
- return memory.createThread({
17466
- threadId: thread2.id,
17467
- resourceId,
17468
- memoryConfig: memoryConfig2,
17469
- title,
17470
- metadata: thread2.metadata
17471
- });
17472
- }
17473
- })
17474
- );
17460
+ const uiMessages = messageList.get.all.ui();
17461
+ const messages2 = messageList.get.all.core();
17462
+ const requiredMessages = minMessages ?? 1;
17463
+ if (shouldGenerate && !thread2.title && messages2.length >= requiredMessages) {
17464
+ const userMessage = this.capabilities.getMostRecentUserMessage(uiMessages);
17465
+ if (userMessage) {
17466
+ const observabilityContext2 = chunkBF7IH4JU_cjs.createObservabilityContext({ currentSpan: agentSpan });
17467
+ promises.push(
17468
+ this.capabilities.genTitle(userMessage, requestContext, observabilityContext2, titleModel, titleInstructions).then((title) => {
17469
+ if (title) {
17470
+ return memory.createThread({
17471
+ threadId: thread2.id,
17472
+ resourceId,
17473
+ memoryConfig: memoryConfig2,
17474
+ title,
17475
+ metadata: thread2.metadata
17476
+ });
17477
+ }
17478
+ })
17479
+ );
17480
+ }
17475
17481
  }
17476
17482
  if (promises.length > 0) {
17477
17483
  await Promise.all(promises);
@@ -19896,7 +19902,7 @@ ${errorMessages}`,
19896
19902
  */
19897
19903
  listTools({ requestContext = new chunk5WBEMKE2_cjs.RequestContext() } = {}) {
19898
19904
  if (typeof this.#tools !== "function") {
19899
- return chunkVEP4CV7E_cjs.ensureToolProperties(this.#tools);
19905
+ return chunkE2SMTTP6_cjs.ensureToolProperties(this.#tools);
19900
19906
  }
19901
19907
  const result = this.#tools({
19902
19908
  requestContext,
@@ -19917,7 +19923,7 @@ ${errorMessages}`,
19917
19923
  this.logger.error(mastraError.toString());
19918
19924
  throw mastraError;
19919
19925
  }
19920
- return chunkVEP4CV7E_cjs.ensureToolProperties(tools);
19926
+ return chunkE2SMTTP6_cjs.ensureToolProperties(tools);
19921
19927
  });
19922
19928
  }
19923
19929
  /**
@@ -19966,7 +19972,7 @@ ${errorMessages}`,
19966
19972
  });
19967
19973
  });
19968
19974
  } else {
19969
- llm = new chunk6VRSFFQ4_cjs.MastraLLMV1({
19975
+ llm = new chunk4TUILCMR_cjs.MastraLLMV1({
19970
19976
  model: modelInfo,
19971
19977
  mastra: this.#mastra,
19972
19978
  options: { tracingPolicy: this.#options?.tracingPolicy }
@@ -19992,7 +19998,7 @@ ${errorMessages}`,
19992
19998
  */
19993
19999
  async resolveModelConfig(modelConfig, requestContext) {
19994
20000
  try {
19995
- return await chunkQADPCUBX_cjs.resolveModelConfig(modelConfig, requestContext, this.#mastra);
20001
+ return await chunkNWOPWLJ3_cjs.resolveModelConfig(modelConfig, requestContext, this.#mastra);
19996
20002
  } catch (error) {
19997
20003
  const mastraError = new chunk4U7ZLI36_cjs.MastraError({
19998
20004
  id: "AGENT_GET_MODEL_MISSING_MODEL_INSTANCE",
@@ -20481,7 +20487,7 @@ ${errorMessages}`,
20481
20487
  tracingPolicy: this.#options?.tracingPolicy,
20482
20488
  requireApproval: toolObj.requireApproval
20483
20489
  };
20484
- const convertedToCoreTool = chunkVEP4CV7E_cjs.makeCoreTool(toolObj, options, void 0, autoResumeSuspendedTools);
20490
+ const convertedToCoreTool = chunkE2SMTTP6_cjs.makeCoreTool(toolObj, options, void 0, autoResumeSuspendedTools);
20485
20491
  convertedMemoryTools[toolName] = convertedToCoreTool;
20486
20492
  }
20487
20493
  }
@@ -20510,7 +20516,7 @@ ${errorMessages}`,
20510
20516
  if (!workspace) {
20511
20517
  return convertedWorkspaceTools;
20512
20518
  }
20513
- const workspaceTools = chunkXNBGNCVV_cjs.createWorkspaceTools(workspace);
20519
+ const workspaceTools = chunkL2FL7HMV_cjs.createWorkspaceTools(workspace);
20514
20520
  if (Object.keys(workspaceTools).length > 0) {
20515
20521
  this.logger.debug(`[Agent:${this.name}] - Adding workspace tools: ${Object.keys(workspaceTools).join(", ")}`, {
20516
20522
  runId
@@ -20533,7 +20539,7 @@ ${errorMessages}`,
20533
20539
  requireApproval: toolObj.requireApproval,
20534
20540
  workspace
20535
20541
  };
20536
- const convertedToCoreTool = chunkVEP4CV7E_cjs.makeCoreTool(toolObj, options, void 0, autoResumeSuspendedTools);
20542
+ const convertedToCoreTool = chunkE2SMTTP6_cjs.makeCoreTool(toolObj, options, void 0, autoResumeSuspendedTools);
20537
20543
  convertedWorkspaceTools[toolName] = convertedToCoreTool;
20538
20544
  }
20539
20545
  }
@@ -20564,7 +20570,7 @@ ${errorMessages}`,
20564
20570
  if (!workspace?.skills) {
20565
20571
  return convertedSkillTools;
20566
20572
  }
20567
- const skillTools = chunkXNBGNCVV_cjs.createSkillTools(workspace.skills);
20573
+ const skillTools = chunkL2FL7HMV_cjs.createSkillTools(workspace.skills);
20568
20574
  if (Object.keys(skillTools).length > 0) {
20569
20575
  this.logger.debug(`[Agent:${this.name}] - Adding skill tools: ${Object.keys(skillTools).join(", ")}`, {
20570
20576
  runId
@@ -20588,7 +20594,7 @@ ${errorMessages}`,
20588
20594
  // Skill tools never require approval
20589
20595
  workspace
20590
20596
  };
20591
- const convertedToCoreTool = chunkVEP4CV7E_cjs.makeCoreTool(toolObj, options, void 0, autoResumeSuspendedTools);
20597
+ const convertedToCoreTool = chunkE2SMTTP6_cjs.makeCoreTool(toolObj, options, void 0, autoResumeSuspendedTools);
20592
20598
  convertedSkillTools[toolName] = convertedToCoreTool;
20593
20599
  }
20594
20600
  }
@@ -20805,7 +20811,7 @@ ${errorMessages}`,
20805
20811
  tracingPolicy: this.#options?.tracingPolicy,
20806
20812
  requireApproval: tool2.requireApproval
20807
20813
  };
20808
- return [k, chunkVEP4CV7E_cjs.makeCoreTool(tool2, options, void 0, autoResumeSuspendedTools)];
20814
+ return [k, chunkE2SMTTP6_cjs.makeCoreTool(tool2, options, void 0, autoResumeSuspendedTools)];
20809
20815
  })
20810
20816
  );
20811
20817
  const assignedToolEntriesConverted = Object.fromEntries(
@@ -20857,7 +20863,7 @@ ${errorMessages}`,
20857
20863
  tracingPolicy: this.#options?.tracingPolicy,
20858
20864
  requireApproval: toolObj.requireApproval
20859
20865
  };
20860
- const convertedToCoreTool = chunkVEP4CV7E_cjs.makeCoreTool(toolObj, options, "toolset", autoResumeSuspendedTools);
20866
+ const convertedToCoreTool = chunkE2SMTTP6_cjs.makeCoreTool(toolObj, options, "toolset", autoResumeSuspendedTools);
20861
20867
  toolsForRequest[toolName] = convertedToCoreTool;
20862
20868
  }
20863
20869
  }
@@ -20904,7 +20910,7 @@ ${errorMessages}`,
20904
20910
  tracingPolicy: this.#options?.tracingPolicy,
20905
20911
  requireApproval: tool2.requireApproval
20906
20912
  };
20907
- const convertedToCoreTool = chunkVEP4CV7E_cjs.makeCoreTool(toolRest, options, "client-tool", autoResumeSuspendedTools);
20913
+ const convertedToCoreTool = chunkE2SMTTP6_cjs.makeCoreTool(toolRest, options, "client-tool", autoResumeSuspendedTools);
20908
20914
  toolsForRequest[toolName] = convertedToCoreTool;
20909
20915
  }
20910
20916
  }
@@ -20988,7 +20994,7 @@ ${errorMessages}`,
20988
20994
  ).describe("The results from the agent's tool calls").optional()
20989
20995
  });
20990
20996
  const modelVersion = (await agent.getModel({ requestContext })).specificationVersion;
20991
- const toolObj = chunkAV4YSAZL_cjs.createTool({
20997
+ const toolObj = chunk2OYWVA6F_cjs.createTool({
20992
20998
  id: `agent-${agentName}`,
20993
20999
  description: agent.getDescription() || `Agent: ${agentName}`,
20994
21000
  inputSchema: agentInputSchema,
@@ -21569,7 +21575,7 @@ ${effectiveInstructions}`;
21569
21575
  ...observabilityContext,
21570
21576
  tracingPolicy: this.#options?.tracingPolicy
21571
21577
  };
21572
- convertedAgentTools[`agent-${agentName}`] = chunkVEP4CV7E_cjs.makeCoreTool(
21578
+ convertedAgentTools[`agent-${agentName}`] = chunkE2SMTTP6_cjs.makeCoreTool(
21573
21579
  toolObj,
21574
21580
  options,
21575
21581
  void 0,
@@ -21634,7 +21640,7 @@ ${effectiveInstructions}`;
21634
21640
  }
21635
21641
  ]
21636
21642
  };
21637
- const toolObj = chunkAV4YSAZL_cjs.createTool({
21643
+ const toolObj = chunk2OYWVA6F_cjs.createTool({
21638
21644
  id: `workflow-${workflowName}`,
21639
21645
  description: workflow.description || `Workflow: ${workflowName}`,
21640
21646
  inputSchema: extendedInputSchema,
@@ -21786,7 +21792,7 @@ ${effectiveInstructions}`;
21786
21792
  ...observabilityContext,
21787
21793
  tracingPolicy: this.#options?.tracingPolicy
21788
21794
  };
21789
- convertedWorkflowTools[`workflow-${workflowName}`] = chunkVEP4CV7E_cjs.makeCoreTool(
21795
+ convertedWorkflowTools[`workflow-${workflowName}`] = chunkE2SMTTP6_cjs.makeCoreTool(
21790
21796
  toolObj,
21791
21797
  options,
21792
21798
  void 0,
@@ -21818,7 +21824,7 @@ ${effectiveInstructions}`;
21818
21824
  let mastraProxy = void 0;
21819
21825
  const logger = this.logger;
21820
21826
  if (this.#mastra) {
21821
- mastraProxy = chunkVEP4CV7E_cjs.createMastraProxy({ mastra: this.#mastra, logger });
21827
+ mastraProxy = chunkE2SMTTP6_cjs.createMastraProxy({ mastra: this.#mastra, logger });
21822
21828
  }
21823
21829
  const assignedTools = await this.listAssignedTools({
21824
21830
  runId,
@@ -22070,7 +22076,7 @@ ${effectiveInstructions}`;
22070
22076
  const resolvedModel = await this.resolveModelConfig(selection, requestContext);
22071
22077
  this.assertSupportsPreparedModels(resolvedModel);
22072
22078
  let headers;
22073
- if (resolvedModel instanceof chunkQADPCUBX_cjs.ModelRouterLanguageModel) {
22079
+ if (resolvedModel instanceof chunkNWOPWLJ3_cjs.ModelRouterLanguageModel) {
22074
22080
  headers = resolvedModel.config?.headers;
22075
22081
  }
22076
22082
  return [
@@ -22103,7 +22109,7 @@ ${effectiveInstructions}`;
22103
22109
  throw mastraError;
22104
22110
  }
22105
22111
  let headers;
22106
- if (model instanceof chunkQADPCUBX_cjs.ModelRouterLanguageModel) {
22112
+ if (model instanceof chunkNWOPWLJ3_cjs.ModelRouterLanguageModel) {
22107
22113
  headers = model.config?.headers;
22108
22114
  }
22109
22115
  return {
@@ -22337,12 +22343,16 @@ ${effectiveInstructions}`;
22337
22343
  const {
22338
22344
  shouldGenerate,
22339
22345
  model: titleModel,
22340
- instructions: titleInstructions
22346
+ instructions: titleInstructions,
22347
+ minMessages
22341
22348
  } = this.resolveTitleGenerationConfig(
22342
- config.generateTitle
22349
+ config?.generateTitle
22343
22350
  );
22344
- if (shouldGenerate && !thread.title) {
22345
- const userMessage = this.getMostRecentUserMessage(messageList.get.all.ui());
22351
+ const uiMessages = messageList.get.all.ui();
22352
+ const messages = messageList.get.all.core();
22353
+ const requiredMessages = minMessages ?? 1;
22354
+ if (shouldGenerate && !thread.title && messages.length >= requiredMessages) {
22355
+ const userMessage = this.getMostRecentUserMessage(uiMessages);
22346
22356
  if (userMessage) {
22347
22357
  void this.genTitle(userMessage, requestContext, observabilityContext, titleModel, titleInstructions).then(
22348
22358
  async (title) => {
@@ -22557,7 +22567,7 @@ ${effectiveInstructions}`;
22557
22567
  const defaultOptions = await this.getDefaultOptions({
22558
22568
  requestContext: options?.requestContext
22559
22569
  });
22560
- const mergedOptions = chunkVEP4CV7E_cjs.deepMerge(
22570
+ const mergedOptions = chunkE2SMTTP6_cjs.deepMerge(
22561
22571
  defaultOptions,
22562
22572
  options ?? {}
22563
22573
  );
@@ -22627,7 +22637,7 @@ ${effectiveInstructions}`;
22627
22637
  const defaultOptions = await this.getDefaultOptions({
22628
22638
  requestContext: streamOptions?.requestContext
22629
22639
  });
22630
- const mergedOptions = chunkVEP4CV7E_cjs.deepMerge(
22640
+ const mergedOptions = chunkE2SMTTP6_cjs.deepMerge(
22631
22641
  defaultOptions,
22632
22642
  streamOptions ?? {}
22633
22643
  );
@@ -22691,7 +22701,7 @@ ${effectiveInstructions}`;
22691
22701
  const defaultOptions = await this.getDefaultOptions({
22692
22702
  requestContext: streamOptions?.requestContext
22693
22703
  });
22694
- let mergedStreamOptions = chunkVEP4CV7E_cjs.deepMerge(
22704
+ let mergedStreamOptions = chunkE2SMTTP6_cjs.deepMerge(
22695
22705
  defaultOptions,
22696
22706
  streamOptions ?? {}
22697
22707
  );
@@ -22756,7 +22766,7 @@ ${effectiveInstructions}`;
22756
22766
  const defaultOptions = await this.getDefaultOptions({
22757
22767
  requestContext: options?.requestContext
22758
22768
  });
22759
- const mergedOptions = chunkVEP4CV7E_cjs.deepMerge(
22769
+ const mergedOptions = chunkE2SMTTP6_cjs.deepMerge(
22760
22770
  defaultOptions,
22761
22771
  options ?? {}
22762
22772
  );
@@ -22919,7 +22929,8 @@ ${effectiveInstructions}`;
22919
22929
  return {
22920
22930
  shouldGenerate: true,
22921
22931
  model: generateTitleConfig.model,
22922
- instructions: generateTitleConfig.instructions
22932
+ instructions: generateTitleConfig.instructions,
22933
+ minMessages: generateTitleConfig.minMessages
22923
22934
  };
22924
22935
  }
22925
22936
  return { shouldGenerate: false };
@@ -24330,7 +24341,7 @@ var TokenLimiterProcessor = class _TokenLimiterProcessor {
24330
24341
  return new TiktokenClass(this.customEncoding);
24331
24342
  });
24332
24343
  } else {
24333
- this.encoderPromise = chunkXNBGNCVV_cjs.getTiktoken();
24344
+ this.encoderPromise = chunkL2FL7HMV_cjs.getTiktoken();
24334
24345
  }
24335
24346
  }
24336
24347
  return this.encoderPromise;
@@ -25225,7 +25236,7 @@ var ToolSearchProcessor = class {
25225
25236
  minScore: options.search?.minScore ?? 0
25226
25237
  };
25227
25238
  this.ttl = options.ttl ?? 36e5;
25228
- this.bm25Index = new chunkXNBGNCVV_cjs.BM25Index({}, TOOL_SEARCH_TOKENIZE_OPTIONS);
25239
+ this.bm25Index = new chunkL2FL7HMV_cjs.BM25Index({}, TOOL_SEARCH_TOKENIZE_OPTIONS);
25229
25240
  this.indexTools();
25230
25241
  if (this.ttl > 0) {
25231
25242
  this.scheduleCleanup();
@@ -25390,7 +25401,7 @@ var ToolSearchProcessor = class {
25390
25401
  messageList.addSystem(
25391
25402
  "To discover available tools, call search_tools with a keyword query. To add a tool to the conversation, call load_tool with the tool name. Tools must be loaded before they can be used."
25392
25403
  );
25393
- const searchTool = chunkAV4YSAZL_cjs.createTool({
25404
+ const searchTool = chunk2OYWVA6F_cjs.createTool({
25394
25405
  id: "search_tools",
25395
25406
  description: "Search for available tools by keyword. Use this when you need a capability you don't currently have. Returns a list of matching tools with their names and descriptions. After finding a useful tool, use load_tool to make it available.",
25396
25407
  inputSchema: v4.z.object({
@@ -25420,7 +25431,7 @@ var ToolSearchProcessor = class {
25420
25431
  };
25421
25432
  }
25422
25433
  });
25423
- const loadTool = chunkAV4YSAZL_cjs.createTool({
25434
+ const loadTool = chunk2OYWVA6F_cjs.createTool({
25424
25435
  id: "load_tool",
25425
25436
  description: "Load a specific tool into your context. Call this after finding a tool with search_tools. Once loaded, the tool will be available for use. Args: toolName - The exact name of the tool to load (from search results).",
25426
25437
  inputSchema: v4.z.object({
@@ -25618,7 +25629,7 @@ var SkillSearchProcessor = class {
25618
25629
  messageList.addSystem(
25619
25630
  "To discover available skills, call search_skills with a keyword query. To load a skill's instructions, call load_skill with the skill name. Loaded skills provide context and instructions for the conversation."
25620
25631
  );
25621
- const searchSkillTool = chunkAV4YSAZL_cjs.createTool({
25632
+ const searchSkillTool = chunk2OYWVA6F_cjs.createTool({
25622
25633
  id: "search_skills",
25623
25634
  description: "Search for available skills by keyword. Returns a list of matching skills with their names and descriptions. After finding a useful skill, use load_skill to load its instructions.",
25624
25635
  inputSchema: v4.z.object({
@@ -25668,7 +25679,7 @@ var SkillSearchProcessor = class {
25668
25679
  };
25669
25680
  }
25670
25681
  });
25671
- const loadSkillTool = chunkAV4YSAZL_cjs.createTool({
25682
+ const loadSkillTool = chunk2OYWVA6F_cjs.createTool({
25672
25683
  id: "load_skill",
25673
25684
  description: "Load a skill's full instructions into the conversation. Call this after finding a skill with search_skills. The skill's instructions will be available as context.",
25674
25685
  inputSchema: v4.z.object({
@@ -26007,7 +26018,7 @@ var WorkingMemory = class {
26007
26018
  return messageList;
26008
26019
  }
26009
26020
  generateEmptyFromSchemaInternal(schema) {
26010
- const result = chunkVEP4CV7E_cjs.generateEmptyFromSchema(schema);
26021
+ const result = chunkE2SMTTP6_cjs.generateEmptyFromSchema(schema);
26011
26022
  return Object.keys(result).length > 0 ? result : null;
26012
26023
  }
26013
26024
  getWorkingMemoryToolInstruction({
@@ -26652,7 +26663,7 @@ https://mastra.ai/en/docs/memory/semantic-recall`
26652
26663
  );
26653
26664
  }
26654
26665
  if (typeof config.embedder === "string") {
26655
- this.embedder = new chunkQADPCUBX_cjs.ModelRouterEmbeddingModel(config.embedder);
26666
+ this.embedder = new chunkNWOPWLJ3_cjs.ModelRouterEmbeddingModel(config.embedder);
26656
26667
  } else {
26657
26668
  this.embedder = config.embedder;
26658
26669
  }
@@ -26665,7 +26676,7 @@ https://mastra.ai/en/docs/memory/semantic-recall`
26665
26676
  }
26666
26677
  if (config.embedder) {
26667
26678
  if (typeof config.embedder === "string") {
26668
- this.embedder = new chunkQADPCUBX_cjs.ModelRouterEmbeddingModel(config.embedder);
26679
+ this.embedder = new chunkNWOPWLJ3_cjs.ModelRouterEmbeddingModel(config.embedder);
26669
26680
  } else {
26670
26681
  this.embedder = config.embedder;
26671
26682
  }
@@ -26705,7 +26716,7 @@ https://mastra.ai/en/docs/memory/overview`
26705
26716
  }
26706
26717
  setEmbedder(embedder, embedderOptions) {
26707
26718
  if (typeof embedder === "string") {
26708
- this.embedder = new chunkQADPCUBX_cjs.ModelRouterEmbeddingModel(embedder);
26719
+ this.embedder = new chunkNWOPWLJ3_cjs.ModelRouterEmbeddingModel(embedder);
26709
26720
  } else {
26710
26721
  this.embedder = embedder;
26711
26722
  }
@@ -26802,7 +26813,7 @@ https://mastra.ai/en/docs/memory/overview`
26802
26813
  "The threads.generateTitle option has been moved. Use the top-level generateTitle option instead."
26803
26814
  );
26804
26815
  }
26805
- const mergedConfig = chunkVEP4CV7E_cjs.deepMerge(this.threadConfig, config || {});
26816
+ const mergedConfig = chunkE2SMTTP6_cjs.deepMerge(this.threadConfig, config || {});
26806
26817
  if (typeof config?.workingMemory === "object" && config.workingMemory?.schema && typeof mergedConfig.workingMemory === "object") {
26807
26818
  mergedConfig.workingMemory.schema = config.workingMemory.schema;
26808
26819
  }
@@ -27154,7 +27165,7 @@ var MockMemory = class extends MastraMemory {
27154
27165
  } = {}) {
27155
27166
  super({
27156
27167
  name: "mock",
27157
- storage: storage || new chunk5ANYSU2W_cjs.InMemoryStore(),
27168
+ storage: storage || new chunkGNA52EF4_cjs.InMemoryStore(),
27158
27169
  options: {
27159
27170
  ...options,
27160
27171
  workingMemory: enableWorkingMemory ? { enabled: true, template: workingMemoryTemplate } : options?.workingMemory,
@@ -27235,7 +27246,7 @@ var MockMemory = class extends MastraMemory {
27235
27246
  return {};
27236
27247
  }
27237
27248
  return {
27238
- updateWorkingMemory: chunkAV4YSAZL_cjs.createTool({
27249
+ updateWorkingMemory: chunk2OYWVA6F_cjs.createTool({
27239
27250
  id: "update-working-memory",
27240
27251
  description: `Update the working memory with new information. Any data not included will be overwritten.`,
27241
27252
  inputSchema: v4.z.object({ memory: v4.z.string() }),
@@ -27465,5 +27476,5 @@ exports.validateStepRequestContext = validateStepRequestContext;
27465
27476
  exports.validateStepResumeData = validateStepResumeData;
27466
27477
  exports.validateStepStateData = validateStepStateData;
27467
27478
  exports.validateStepSuspendData = validateStepSuspendData;
27468
- //# sourceMappingURL=chunk-WLNT3YJ7.cjs.map
27469
- //# sourceMappingURL=chunk-WLNT3YJ7.cjs.map
27479
+ //# sourceMappingURL=chunk-O542TXPV.cjs.map
27480
+ //# sourceMappingURL=chunk-O542TXPV.cjs.map