@mastra/core 0.6.2 → 0.6.3-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.
Files changed (115) hide show
  1. package/dist/agent/index.cjs +2 -2
  2. package/dist/agent/index.d.cts +3 -3
  3. package/dist/agent/index.d.ts +3 -3
  4. package/dist/agent/index.js +1 -1
  5. package/dist/{base-BwuLIP_x.d.ts → base-CbMRVSw8.d.ts} +142 -7
  6. package/dist/{base-BZViaFTt.d.ts → base-Cmunaaxb.d.ts} +1 -1
  7. package/dist/{base-BESiSy3v.d.cts → base-DsOQiX2q.d.cts} +142 -7
  8. package/dist/{base-DboIg_Cd.d.cts → base-ObPJ-w8K.d.cts} +1 -1
  9. package/dist/base.cjs +2 -2
  10. package/dist/base.d.cts +2 -2
  11. package/dist/base.d.ts +2 -2
  12. package/dist/base.js +1 -1
  13. package/dist/bundler/index.cjs +2 -2
  14. package/dist/bundler/index.d.cts +2 -2
  15. package/dist/bundler/index.d.ts +2 -2
  16. package/dist/bundler/index.js +1 -1
  17. package/dist/{chunk-44N24GPK.js → chunk-24DC4KOG.js} +2 -2
  18. package/dist/{chunk-6PNJOPFO.js → chunk-3CNO7YB5.js} +1 -1
  19. package/dist/{chunk-HJPMYDWO.cjs → chunk-4PYORXWM.cjs} +2 -2
  20. package/dist/{chunk-2PTWBPQ6.cjs → chunk-5DMCYDEY.cjs} +2 -2
  21. package/dist/{chunk-BPL5FORD.cjs → chunk-5ROCYEY7.cjs} +6 -6
  22. package/dist/{chunk-GMAMAKLH.js → chunk-7VTZI3YN.js} +1 -1
  23. package/dist/{chunk-KPKFLQFR.cjs → chunk-IQLRSKED.cjs} +2 -2
  24. package/dist/{chunk-SYQ7NK2E.cjs → chunk-JJ4YQTFT.cjs} +2 -2
  25. package/dist/{chunk-3JSTLSIP.js → chunk-L7CR75HA.js} +1 -0
  26. package/dist/{chunk-XLZRGA3F.cjs → chunk-LHUFN2BG.cjs} +29 -6
  27. package/dist/{chunk-WB2HREXE.cjs → chunk-NPOKIPWC.cjs} +1 -0
  28. package/dist/{chunk-GHONEERA.js → chunk-OC5LOLNS.js} +3 -3
  29. package/dist/{chunk-3LURIF6I.cjs → chunk-ONDCHP6G.cjs} +2 -2
  30. package/dist/{chunk-IIWRJFLQ.cjs → chunk-PL7PVTGF.cjs} +4 -4
  31. package/dist/{chunk-DGCOY6YF.js → chunk-QCIDQL37.js} +1 -1
  32. package/dist/{chunk-7TZAPEAT.js → chunk-RU7CSPAV.js} +1 -1
  33. package/dist/{chunk-ENT7U27Y.cjs → chunk-RUA6BSB6.cjs} +2 -2
  34. package/dist/{chunk-2BT7KDXB.js → chunk-S7PRIZBF.js} +1 -1
  35. package/dist/{chunk-4DD2PP2R.js → chunk-SMBKF6K5.js} +1 -1
  36. package/dist/{chunk-22HQQDJZ.js → chunk-U6V76AAB.js} +25 -2
  37. package/dist/{chunk-WOMOGDGR.cjs → chunk-U7ONOIBO.cjs} +2 -2
  38. package/dist/{chunk-4VHCCQ7P.js → chunk-VN4M67DA.js} +1 -1
  39. package/dist/{chunk-CLJYFFOS.js → chunk-WBE5RTFI.js} +1 -1
  40. package/dist/{chunk-FL3GQXQ2.cjs → chunk-WVVKLIUW.cjs} +2 -2
  41. package/dist/{chunk-ECNK7OU3.js → chunk-XLXJUYKH.js} +1 -1
  42. package/dist/{chunk-CMSZAZ3I.cjs → chunk-XOOCUJXH.cjs} +6 -6
  43. package/dist/{chunk-VA3TRXPD.cjs → chunk-YW6NIHPF.cjs} +2 -2
  44. package/dist/{chunk-QLYZGX5Z.js → chunk-ZABXT2MN.js} +1 -1
  45. package/dist/deployer/index.cjs +2 -2
  46. package/dist/deployer/index.d.cts +2 -2
  47. package/dist/deployer/index.d.ts +2 -2
  48. package/dist/deployer/index.js +1 -1
  49. package/dist/eval/index.d.cts +3 -3
  50. package/dist/eval/index.d.ts +3 -3
  51. package/dist/{index-mKY1XrpK.d.cts → index-CquI0inB.d.cts} +1 -0
  52. package/dist/{index-mKY1XrpK.d.ts → index-CquI0inB.d.ts} +1 -0
  53. package/dist/index.cjs +46 -46
  54. package/dist/index.d.cts +6 -8
  55. package/dist/index.d.ts +6 -8
  56. package/dist/index.js +13 -13
  57. package/dist/integration/index.d.cts +3 -3
  58. package/dist/integration/index.d.ts +3 -3
  59. package/dist/llm/index.d.cts +3 -3
  60. package/dist/llm/index.d.ts +3 -3
  61. package/dist/logger/index.cjs +9 -9
  62. package/dist/logger/index.d.cts +1 -1
  63. package/dist/logger/index.d.ts +1 -1
  64. package/dist/logger/index.js +1 -1
  65. package/dist/mastra/index.cjs +2 -2
  66. package/dist/mastra/index.d.cts +3 -3
  67. package/dist/mastra/index.d.ts +3 -3
  68. package/dist/mastra/index.js +1 -1
  69. package/dist/memory/index.cjs +2 -2
  70. package/dist/memory/index.d.cts +3 -3
  71. package/dist/memory/index.d.ts +3 -3
  72. package/dist/memory/index.js +1 -1
  73. package/dist/network/index.cjs +300 -0
  74. package/dist/network/index.d.cts +19 -0
  75. package/dist/network/index.d.ts +19 -0
  76. package/dist/network/index.js +298 -0
  77. package/dist/relevance/index.cjs +4 -4
  78. package/dist/relevance/index.d.cts +3 -3
  79. package/dist/relevance/index.d.ts +3 -3
  80. package/dist/relevance/index.js +1 -1
  81. package/dist/storage/index.cjs +2 -2
  82. package/dist/storage/index.d.cts +3 -3
  83. package/dist/storage/index.d.ts +3 -3
  84. package/dist/storage/index.js +1 -1
  85. package/dist/storage/libsql/index.cjs +2 -2
  86. package/dist/storage/libsql/index.d.cts +3 -3
  87. package/dist/storage/libsql/index.d.ts +3 -3
  88. package/dist/storage/libsql/index.js +1 -1
  89. package/dist/telemetry/index.d.cts +3 -3
  90. package/dist/telemetry/index.d.ts +3 -3
  91. package/dist/tools/index.d.cts +4 -18
  92. package/dist/tools/index.d.ts +4 -18
  93. package/dist/tts/index.cjs +2 -2
  94. package/dist/tts/index.d.cts +2 -2
  95. package/dist/tts/index.d.ts +2 -2
  96. package/dist/tts/index.js +1 -1
  97. package/dist/utils.d.cts +5 -5
  98. package/dist/utils.d.ts +5 -5
  99. package/dist/vector/index.cjs +2 -2
  100. package/dist/vector/index.d.cts +2 -2
  101. package/dist/vector/index.d.ts +2 -2
  102. package/dist/vector/index.js +1 -1
  103. package/dist/vector/libsql/index.cjs +3 -3
  104. package/dist/vector/libsql/index.d.cts +2 -2
  105. package/dist/vector/libsql/index.d.ts +2 -2
  106. package/dist/vector/libsql/index.js +1 -1
  107. package/dist/voice/index.cjs +2 -2
  108. package/dist/voice/index.d.cts +3 -3
  109. package/dist/voice/index.d.ts +3 -3
  110. package/dist/voice/index.js +1 -1
  111. package/dist/workflows/index.cjs +17 -17
  112. package/dist/workflows/index.d.cts +4 -4
  113. package/dist/workflows/index.d.ts +4 -4
  114. package/dist/workflows/index.js +1 -1
  115. package/package.json +1 -1
@@ -1,10 +1,10 @@
1
1
  'use strict';
2
2
 
3
- var chunkCMSZAZ3I_cjs = require('../chunk-CMSZAZ3I.cjs');
3
+ var chunkXOOCUJXH_cjs = require('../chunk-XOOCUJXH.cjs');
4
4
 
5
5
 
6
6
 
7
7
  Object.defineProperty(exports, "Agent", {
8
8
  enumerable: true,
9
- get: function () { return chunkCMSZAZ3I_cjs.Agent; }
9
+ get: function () { return chunkXOOCUJXH_cjs.Agent; }
10
10
  });
@@ -1,11 +1,11 @@
1
1
  export { Message as AiMessageType } from 'ai';
2
2
  import 'json-schema';
3
3
  import 'zod';
4
- export { A as Agent, l as AgentConfig, aD as AgentGenerateOptions, aE as AgentStreamOptions, aw as MastraLanguageModel, a as ToolsInput, aC as ToolsetsInput } from '../base-BESiSy3v.cjs';
5
- import '../base-DboIg_Cd.cjs';
4
+ export { A as Agent, m as AgentConfig, aH as AgentGenerateOptions, aI as AgentStreamOptions, az as MastraLanguageModel, a as ToolsInput, aG as ToolsetsInput } from '../base-DsOQiX2q.cjs';
5
+ import '../base-ObPJ-w8K.cjs';
6
6
  import '../types-CwTG2XyQ.cjs';
7
7
  import 'sift';
8
- import '../index-mKY1XrpK.cjs';
8
+ import '../index-CquI0inB.cjs';
9
9
  import 'stream';
10
10
  import 'pino';
11
11
  import '../deployer/index.cjs';
@@ -1,11 +1,11 @@
1
1
  export { Message as AiMessageType } from 'ai';
2
2
  import 'json-schema';
3
3
  import 'zod';
4
- export { A as Agent, l as AgentConfig, aD as AgentGenerateOptions, aE as AgentStreamOptions, aw as MastraLanguageModel, a as ToolsInput, aC as ToolsetsInput } from '../base-BwuLIP_x.js';
5
- import '../base-BZViaFTt.js';
4
+ export { A as Agent, m as AgentConfig, aH as AgentGenerateOptions, aI as AgentStreamOptions, az as MastraLanguageModel, a as ToolsInput, aG as ToolsetsInput } from '../base-CbMRVSw8.js';
5
+ import '../base-Cmunaaxb.js';
6
6
  import '../types-CwTG2XyQ.js';
7
7
  import 'sift';
8
- import '../index-mKY1XrpK.js';
8
+ import '../index-CquI0inB.js';
9
9
  import 'stream';
10
10
  import 'pino';
11
11
  import '../deployer/index.js';
@@ -1 +1 @@
1
- export { Agent } from '../chunk-44N24GPK.js';
1
+ export { Agent } from '../chunk-24DC4KOG.js';
@@ -1,11 +1,11 @@
1
1
  import * as ai from 'ai';
2
- import { Tool, ToolExecutionOptions, EmbeddingModel, CoreMessage as CoreMessage$1, Message, UserContent, AssistantContent, LanguageModelV1, TelemetrySettings, generateText, generateObject, streamText, GenerateTextResult, GenerateObjectResult, streamObject, StreamTextResult, StreamObjectResult, CoreSystemMessage as CoreSystemMessage$1, CoreAssistantMessage as CoreAssistantMessage$1, CoreUserMessage as CoreUserMessage$1, CoreToolMessage as CoreToolMessage$1, EmbedResult as EmbedResult$1, EmbedManyResult as EmbedManyResult$1, LanguageModel as LanguageModel$1, DeepPartial, ToolContent } from 'ai';
3
- import { M as MastraBase, T as Telemetry, O as OtelConfig } from './base-BZViaFTt.js';
2
+ import { Tool as Tool$1, ToolExecutionOptions, EmbeddingModel, CoreMessage as CoreMessage$1, Message, UserContent, AssistantContent, LanguageModelV1, GenerateTextResult, GenerateObjectResult, StreamTextResult, StreamObjectResult, TelemetrySettings, generateText, generateObject, streamText, streamObject, CoreSystemMessage as CoreSystemMessage$1, CoreAssistantMessage as CoreAssistantMessage$1, CoreUserMessage as CoreUserMessage$1, CoreToolMessage as CoreToolMessage$1, EmbedResult as EmbedResult$1, EmbedManyResult as EmbedManyResult$1, LanguageModel as LanguageModel$1, DeepPartial, ToolContent } from 'ai';
3
+ import { M as MastraBase, T as Telemetry, O as OtelConfig } from './base-Cmunaaxb.js';
4
4
  import { Query } from 'sift';
5
5
  import { z, ZodSchema } from 'zod';
6
6
  import { JSONSchema7 } from 'json-schema';
7
7
  import { M as Metric, a as MetricResult, T as TestInfo } from './types-CwTG2XyQ.js';
8
- import { B as BaseLogMessage, R as RegisteredLogger, L as Logger, d as Run } from './index-mKY1XrpK.js';
8
+ import { B as BaseLogMessage, R as RegisteredLogger, L as Logger, d as Run } from './index-CquI0inB.js';
9
9
  import { MastraDeployer } from './deployer/index.js';
10
10
  import { MastraVector } from './vector/index.js';
11
11
  import { Span } from '@opentelemetry/api';
@@ -14,7 +14,7 @@ import { Snapshot } from 'xstate';
14
14
  import EventEmitter from 'node:events';
15
15
  import { MastraTTS } from './tts/index.js';
16
16
 
17
- type VercelTool = Tool;
17
+ type VercelTool = Tool$1;
18
18
  type CoreTool = {
19
19
  id?: string;
20
20
  description?: string;
@@ -37,6 +37,17 @@ interface ToolAction<TSchemaIn extends z.ZodSchema | undefined = undefined, TSch
37
37
  mastra?: Mastra;
38
38
  }
39
39
 
40
+ declare class Tool<TSchemaIn extends z.ZodSchema | undefined = undefined, TSchemaOut extends z.ZodSchema | undefined = undefined, TContext extends ToolExecutionContext<TSchemaIn> = ToolExecutionContext<TSchemaIn>> implements ToolAction<TSchemaIn, TSchemaOut, TContext> {
41
+ id: string;
42
+ description: string;
43
+ inputSchema?: TSchemaIn;
44
+ outputSchema?: TSchemaOut;
45
+ execute?: ToolAction<TSchemaIn, TSchemaOut, TContext>['execute'];
46
+ mastra?: Mastra;
47
+ constructor(opts: ToolAction<TSchemaIn, TSchemaOut, TContext>);
48
+ }
49
+ declare function createTool<TSchemaIn extends z.ZodSchema | undefined = undefined, TSchemaOut extends z.ZodSchema | undefined = undefined, TContext extends ToolExecutionContext<TSchemaIn> = ToolExecutionContext<TSchemaIn>>(opts: ToolAction<TSchemaIn, TSchemaOut, TContext>): Tool<TSchemaIn, TSchemaOut, TContext>;
50
+
40
51
  /**
41
52
  * Abstract Memory class that defines the interface for storing and retrieving
42
53
  * conversation threads and messages.
@@ -169,6 +180,122 @@ declare abstract class MastraMemory extends MastraBase {
169
180
  generateId(): string;
170
181
  }
171
182
 
183
+ type AgentNetworkConfig = {
184
+ name: string;
185
+ agents: Agent[];
186
+ model: LanguageModelV1;
187
+ instructions: string;
188
+ };
189
+
190
+ declare class AgentNetwork extends MastraBase {
191
+ #private;
192
+ constructor(config: AgentNetworkConfig);
193
+ formatAgentId(name: string): string;
194
+ getTools(): {
195
+ transmit: Tool<z.ZodObject<{
196
+ actions: z.ZodArray<z.ZodObject<{
197
+ agent: z.ZodString;
198
+ input: z.ZodString;
199
+ includeHistory: z.ZodOptional<z.ZodBoolean>;
200
+ }, "strip", z.ZodTypeAny, {
201
+ input: string;
202
+ agent: string;
203
+ includeHistory?: boolean | undefined;
204
+ }, {
205
+ input: string;
206
+ agent: string;
207
+ includeHistory?: boolean | undefined;
208
+ }>, "many">;
209
+ }, "strip", z.ZodTypeAny, {
210
+ actions: {
211
+ input: string;
212
+ agent: string;
213
+ includeHistory?: boolean | undefined;
214
+ }[];
215
+ }, {
216
+ actions: {
217
+ input: string;
218
+ agent: string;
219
+ includeHistory?: boolean | undefined;
220
+ }[];
221
+ }>, undefined, ToolExecutionContext<z.ZodObject<{
222
+ actions: z.ZodArray<z.ZodObject<{
223
+ agent: z.ZodString;
224
+ input: z.ZodString;
225
+ includeHistory: z.ZodOptional<z.ZodBoolean>;
226
+ }, "strip", z.ZodTypeAny, {
227
+ input: string;
228
+ agent: string;
229
+ includeHistory?: boolean | undefined;
230
+ }, {
231
+ input: string;
232
+ agent: string;
233
+ includeHistory?: boolean | undefined;
234
+ }>, "many">;
235
+ }, "strip", z.ZodTypeAny, {
236
+ actions: {
237
+ input: string;
238
+ agent: string;
239
+ includeHistory?: boolean | undefined;
240
+ }[];
241
+ }, {
242
+ actions: {
243
+ input: string;
244
+ agent: string;
245
+ includeHistory?: boolean | undefined;
246
+ }[];
247
+ }>>>;
248
+ };
249
+ getAgentHistory(agentId: string): {
250
+ input: string;
251
+ output: string;
252
+ timestamp: string;
253
+ }[];
254
+ /**
255
+ * Get the history of all agent interactions that have occurred in this network
256
+ * @returns A record of agent interactions, keyed by agent ID
257
+ */
258
+ getAgentInteractionHistory(): {
259
+ [x: string]: {
260
+ input: string;
261
+ output: string;
262
+ timestamp: string;
263
+ }[];
264
+ };
265
+ /**
266
+ * Get a summary of agent interactions in a more readable format, displayed chronologically
267
+ * @returns A formatted string with all agent interactions in chronological order
268
+ */
269
+ getAgentInteractionSummary(): string;
270
+ executeAgent(agentId: string, input: CoreMessage$1[], includeHistory?: boolean): Promise<string>;
271
+ getInstructions(): string;
272
+ getRoutingAgent(): Agent<ToolsInput, Record<string, Metric>>;
273
+ getAgents(): Agent<ToolsInput, Record<string, Metric>>[];
274
+ generate<Z extends ZodSchema | JSONSchema7 | undefined = undefined>(messages: string | string[] | CoreMessage$1[], args?: AgentGenerateOptions<Z> & {
275
+ output?: never;
276
+ experimental_output?: never;
277
+ }): Promise<GenerateTextResult<any, Z extends ZodSchema ? z.infer<Z> : unknown>>;
278
+ generate<Z extends ZodSchema | JSONSchema7 | undefined = undefined>(messages: string | string[] | CoreMessage$1[], args?: AgentGenerateOptions<Z> & ({
279
+ output: Z;
280
+ experimental_output?: never;
281
+ } | {
282
+ experimental_output: Z;
283
+ output?: never;
284
+ })): Promise<GenerateObjectResult<Z extends ZodSchema ? z.infer<Z> : unknown>>;
285
+ stream<Z extends ZodSchema | JSONSchema7 | undefined = undefined>(messages: string | string[] | CoreMessage$1[], args?: AgentStreamOptions<Z> & {
286
+ output?: never;
287
+ experimental_output?: never;
288
+ }): Promise<StreamTextResult<any, Z extends ZodSchema ? z.infer<Z> : unknown>>;
289
+ stream<Z extends ZodSchema | JSONSchema7 | undefined = undefined>(messages: string | string[] | CoreMessage$1[], args?: AgentStreamOptions<Z> & ({
290
+ output: Z;
291
+ experimental_output?: never;
292
+ } | {
293
+ experimental_output: Z;
294
+ output?: never;
295
+ })): Promise<StreamObjectResult<any, Z extends ZodSchema ? z.infer<Z> : unknown, any>>;
296
+ __registerMastra(p: Mastra): void;
297
+ }
298
+
172
299
  declare class Step<TStepId extends string = any, TSchemaIn extends z.ZodSchema | undefined = undefined, TSchemaOut extends z.ZodSchema | undefined = undefined, TContext extends StepExecutionContext<TSchemaIn> = StepExecutionContext<TSchemaIn>> implements StepAction<TStepId, TSchemaIn, TSchemaOut, TContext> {
173
300
  id: TStepId;
174
301
  description?: string;
@@ -1045,8 +1172,9 @@ declare class Workflow<TSteps extends Step<string, any, any>[] = Step<string, an
1045
1172
  get steps(): Record<string, StepAction<any, any, any, any>>;
1046
1173
  }
1047
1174
 
1048
- interface Config<TAgents extends Record<string, Agent<any>> = Record<string, Agent<any>>, TWorkflows extends Record<string, Workflow> = Record<string, Workflow>, TVectors extends Record<string, MastraVector> = Record<string, MastraVector>, TTTS extends Record<string, MastraTTS> = Record<string, MastraTTS>, TLogger extends Logger = Logger> {
1175
+ interface Config<TAgents extends Record<string, Agent<any>> = Record<string, Agent<any>>, TWorkflows extends Record<string, Workflow> = Record<string, Workflow>, TVectors extends Record<string, MastraVector> = Record<string, MastraVector>, TTTS extends Record<string, MastraTTS> = Record<string, MastraTTS>, TLogger extends Logger = Logger, TNetworks extends Record<string, AgentNetwork> = Record<string, AgentNetwork>> {
1049
1176
  agents?: TAgents;
1177
+ networks?: TNetworks;
1050
1178
  storage?: MastraStorage;
1051
1179
  vectors?: TVectors;
1052
1180
  logger?: TLogger | false;
@@ -1064,7 +1192,7 @@ interface Config<TAgents extends Record<string, Agent<any>> = Record<string, Age
1064
1192
  }>;
1065
1193
  memory?: MastraMemory;
1066
1194
  }
1067
- declare class Mastra<TAgents extends Record<string, Agent<any>> = Record<string, Agent<any>>, TWorkflows extends Record<string, Workflow> = Record<string, Workflow>, TVectors extends Record<string, MastraVector> = Record<string, MastraVector>, TTTS extends Record<string, MastraTTS> = Record<string, MastraTTS>, TLogger extends Logger = Logger> {
1195
+ declare class Mastra<TAgents extends Record<string, Agent<any>> = Record<string, Agent<any>>, TWorkflows extends Record<string, Workflow> = Record<string, Workflow>, TVectors extends Record<string, MastraVector> = Record<string, MastraVector>, TTTS extends Record<string, MastraTTS> = Record<string, MastraTTS>, TLogger extends Logger = Logger, TNetworks extends Record<string, AgentNetwork> = Record<string, AgentNetwork>> {
1068
1196
  #private;
1069
1197
  /**
1070
1198
  * @deprecated use getTelemetry() instead
@@ -1104,6 +1232,13 @@ declare class Mastra<TAgents extends Record<string, Agent<any>> = Record<string,
1104
1232
  handler: (c: any, next: () => Promise<void>) => Promise<Response | void>;
1105
1233
  path: string;
1106
1234
  }[];
1235
+ getNetworks(): AgentNetwork[];
1236
+ /**
1237
+ * Get a specific network by ID
1238
+ * @param networkId - The ID of the network to retrieve
1239
+ * @returns The network with the specified ID, or undefined if not found
1240
+ */
1241
+ getNetwork(networkId: string): AgentNetwork | undefined;
1107
1242
  getLogsByRunId({ runId, transportId }: {
1108
1243
  runId: string;
1109
1244
  transportId: string;
@@ -1806,4 +1941,4 @@ declare abstract class MastraStorage extends MastraBase {
1806
1941
  __getEvalsByAgentName(agentName: string, type?: 'test' | 'live'): Promise<EvalRow[]>;
1807
1942
  }
1808
1943
 
1809
- export { type StepNode as $, Agent as A, type BaseStructuredOutputType as B, type CoreTool as C, type DefaultLLMTextOptions as D, type EvalRow as E, type DefaultLLMTextObjectOptions as F, type GenerateReturn as G, type DefaultLLMStreamOptions as H, type DefaultLLMStreamObjectOptions as I, type LLMTextOptions as J, type LLMTextObjectOptions as K, type LanguageModel as L, Mastra as M, type LLMStreamOptions as N, type OutputType as O, type LLMInnerStreamOptions as P, type LLMStreamObjectOptions as Q, type Config as R, Step as S, type ToolAction as T, type MessageResponse as U, type VercelTool as V, Workflow as W, type MemoryConfig as X, type SharedMemoryConfig as Y, type StepAction as Z, type StepVariableType as _, type ToolsInput as a, type StepGraph as a0, type RetryConfig as a1, type VariableReference as a2, type BaseCondition as a3, type ActionContext as a4, WhenConditionReturnValue as a5, type StepDef as a6, type StepCondition as a7, type StepConfig as a8, type StepResult as a9, MastraVoice as aA, CompositeVoice as aB, type ToolsetsInput as aC, type AgentGenerateOptions as aD, type AgentStreamOptions as aE, TABLE_WORKFLOW_SNAPSHOT as aF, TABLE_EVALS as aG, TABLE_MESSAGES as aH, TABLE_THREADS as aI, TABLE_TRACES as aJ, type StepsRecord as aa, type WorkflowRunResult as ab, type WorkflowLogMessage as ac, type WorkflowEvent as ad, type ResolverFunctionInput as ae, type ResolverFunctionOutput as af, type SubscriberFunctionOutput as ag, type DependencyCheckOutput as ah, type StepResolverOutput as ai, type WorkflowActors as aj, type WorkflowActionParams as ak, type WorkflowActions as al, type WorkflowState as am, type StepId as an, type ExtractSchemaFromStep as ao, type ExtractStepResult as ap, type StepInputType as aq, type ExtractSchemaType as ar, type PathsToStringProps as as, type WorkflowRunState as at, type WorkflowResumeResult as au, createStep as av, type MastraLanguageModel as aw, type VoiceEventType as ax, type VoiceEventMap as ay, type VoiceConfig as az, type MastraPrimitives as b, MastraMemory as c, type StepExecutionContext as d, type WorkflowContext as e, MastraStorage as f, type TABLE_NAMES as g, type StorageColumn as h, type StorageThreadType as i, type MessageType as j, type StorageGetMessagesArg as k, type AgentConfig as l, type ToolExecutionContext as m, type WorkflowOptions as n, type WorkflowRow as o, type CoreMessage as p, type CoreSystemMessage as q, type CoreAssistantMessage as r, type CoreUserMessage as s, type CoreToolMessage as t, type EmbedResult as u, type EmbedManyResult as v, type StructuredOutputType as w, type StructuredOutputArrayItem as x, type StructuredOutput as y, type StreamReturn as z };
1944
+ export { createTool as $, Agent as A, type BaseStructuredOutputType as B, type CoreTool as C, type StructuredOutput as D, type EvalRow as E, type StreamReturn as F, type GenerateReturn as G, type DefaultLLMTextOptions as H, type DefaultLLMTextObjectOptions as I, type DefaultLLMStreamOptions as J, type DefaultLLMStreamObjectOptions as K, type LanguageModel as L, Mastra as M, type LLMTextOptions as N, type OutputType as O, type LLMTextObjectOptions as P, type LLMStreamOptions as Q, type LLMInnerStreamOptions as R, Step as S, type ToolAction as T, type LLMStreamObjectOptions as U, type VercelTool as V, Workflow as W, type Config as X, type MessageResponse as Y, type MemoryConfig as Z, type SharedMemoryConfig as _, type ToolsInput as a, type StepAction as a0, type StepVariableType as a1, type StepNode as a2, type StepGraph as a3, type RetryConfig as a4, type VariableReference as a5, type BaseCondition as a6, type ActionContext as a7, WhenConditionReturnValue as a8, type StepDef as a9, type AgentNetworkConfig as aA, type VoiceEventType as aB, type VoiceEventMap as aC, type VoiceConfig as aD, MastraVoice as aE, CompositeVoice as aF, type ToolsetsInput as aG, type AgentGenerateOptions as aH, type AgentStreamOptions as aI, TABLE_WORKFLOW_SNAPSHOT as aJ, TABLE_EVALS as aK, TABLE_MESSAGES as aL, TABLE_THREADS as aM, TABLE_TRACES as aN, type StepCondition as aa, type StepConfig as ab, type StepResult as ac, type StepsRecord as ad, type WorkflowRunResult as ae, type WorkflowLogMessage as af, type WorkflowEvent as ag, type ResolverFunctionInput as ah, type ResolverFunctionOutput as ai, type SubscriberFunctionOutput as aj, type DependencyCheckOutput as ak, type StepResolverOutput as al, type WorkflowActors as am, type WorkflowActionParams as an, type WorkflowActions as ao, type WorkflowState as ap, type StepId as aq, type ExtractSchemaFromStep as ar, type ExtractStepResult as as, type StepInputType as at, type ExtractSchemaType as au, type PathsToStringProps as av, type WorkflowRunState as aw, type WorkflowResumeResult as ax, createStep as ay, type MastraLanguageModel as az, type MastraPrimitives as b, MastraMemory as c, type StepExecutionContext as d, type WorkflowContext as e, AgentNetwork as f, MastraStorage as g, type TABLE_NAMES as h, type StorageColumn as i, type StorageThreadType as j, type MessageType as k, type StorageGetMessagesArg as l, type AgentConfig as m, type ToolExecutionContext as n, Tool as o, type WorkflowOptions as p, type WorkflowRow as q, type CoreMessage as r, type CoreSystemMessage as s, type CoreAssistantMessage as t, type CoreUserMessage as u, type CoreToolMessage as v, type EmbedResult as w, type EmbedManyResult as x, type StructuredOutputType as y, type StructuredOutputArrayItem as z };
@@ -1,6 +1,6 @@
1
1
  import * as _opentelemetry_api from '@opentelemetry/api';
2
2
  import { Tracer, Span } from '@opentelemetry/api';
3
- import { R as RegisteredLogger, L as Logger } from './index-mKY1XrpK.js';
3
+ import { R as RegisteredLogger, L as Logger } from './index-CquI0inB.js';
4
4
  import { SpanExporter } from '@opentelemetry/sdk-trace-base';
5
5
 
6
6
  /** Sampling strategy configuration for OpenTelemetry */
@@ -1,11 +1,11 @@
1
1
  import * as ai from 'ai';
2
- import { Tool, ToolExecutionOptions, EmbeddingModel, CoreMessage as CoreMessage$1, Message, UserContent, AssistantContent, LanguageModelV1, TelemetrySettings, generateText, generateObject, streamText, GenerateTextResult, GenerateObjectResult, streamObject, StreamTextResult, StreamObjectResult, CoreSystemMessage as CoreSystemMessage$1, CoreAssistantMessage as CoreAssistantMessage$1, CoreUserMessage as CoreUserMessage$1, CoreToolMessage as CoreToolMessage$1, EmbedResult as EmbedResult$1, EmbedManyResult as EmbedManyResult$1, LanguageModel as LanguageModel$1, DeepPartial, ToolContent } from 'ai';
3
- import { M as MastraBase, T as Telemetry, O as OtelConfig } from './base-DboIg_Cd.cjs';
2
+ import { Tool as Tool$1, ToolExecutionOptions, EmbeddingModel, CoreMessage as CoreMessage$1, Message, UserContent, AssistantContent, LanguageModelV1, GenerateTextResult, GenerateObjectResult, StreamTextResult, StreamObjectResult, TelemetrySettings, generateText, generateObject, streamText, streamObject, CoreSystemMessage as CoreSystemMessage$1, CoreAssistantMessage as CoreAssistantMessage$1, CoreUserMessage as CoreUserMessage$1, CoreToolMessage as CoreToolMessage$1, EmbedResult as EmbedResult$1, EmbedManyResult as EmbedManyResult$1, LanguageModel as LanguageModel$1, DeepPartial, ToolContent } from 'ai';
3
+ import { M as MastraBase, T as Telemetry, O as OtelConfig } from './base-ObPJ-w8K.cjs';
4
4
  import { Query } from 'sift';
5
5
  import { z, ZodSchema } from 'zod';
6
6
  import { JSONSchema7 } from 'json-schema';
7
7
  import { M as Metric, a as MetricResult, T as TestInfo } from './types-CwTG2XyQ.cjs';
8
- import { B as BaseLogMessage, R as RegisteredLogger, L as Logger, d as Run } from './index-mKY1XrpK.cjs';
8
+ import { B as BaseLogMessage, R as RegisteredLogger, L as Logger, d as Run } from './index-CquI0inB.cjs';
9
9
  import { MastraDeployer } from './deployer/index.cjs';
10
10
  import { MastraVector } from './vector/index.cjs';
11
11
  import { Span } from '@opentelemetry/api';
@@ -14,7 +14,7 @@ import { Snapshot } from 'xstate';
14
14
  import EventEmitter from 'node:events';
15
15
  import { MastraTTS } from './tts/index.cjs';
16
16
 
17
- type VercelTool = Tool;
17
+ type VercelTool = Tool$1;
18
18
  type CoreTool = {
19
19
  id?: string;
20
20
  description?: string;
@@ -37,6 +37,17 @@ interface ToolAction<TSchemaIn extends z.ZodSchema | undefined = undefined, TSch
37
37
  mastra?: Mastra;
38
38
  }
39
39
 
40
+ declare class Tool<TSchemaIn extends z.ZodSchema | undefined = undefined, TSchemaOut extends z.ZodSchema | undefined = undefined, TContext extends ToolExecutionContext<TSchemaIn> = ToolExecutionContext<TSchemaIn>> implements ToolAction<TSchemaIn, TSchemaOut, TContext> {
41
+ id: string;
42
+ description: string;
43
+ inputSchema?: TSchemaIn;
44
+ outputSchema?: TSchemaOut;
45
+ execute?: ToolAction<TSchemaIn, TSchemaOut, TContext>['execute'];
46
+ mastra?: Mastra;
47
+ constructor(opts: ToolAction<TSchemaIn, TSchemaOut, TContext>);
48
+ }
49
+ declare function createTool<TSchemaIn extends z.ZodSchema | undefined = undefined, TSchemaOut extends z.ZodSchema | undefined = undefined, TContext extends ToolExecutionContext<TSchemaIn> = ToolExecutionContext<TSchemaIn>>(opts: ToolAction<TSchemaIn, TSchemaOut, TContext>): Tool<TSchemaIn, TSchemaOut, TContext>;
50
+
40
51
  /**
41
52
  * Abstract Memory class that defines the interface for storing and retrieving
42
53
  * conversation threads and messages.
@@ -169,6 +180,122 @@ declare abstract class MastraMemory extends MastraBase {
169
180
  generateId(): string;
170
181
  }
171
182
 
183
+ type AgentNetworkConfig = {
184
+ name: string;
185
+ agents: Agent[];
186
+ model: LanguageModelV1;
187
+ instructions: string;
188
+ };
189
+
190
+ declare class AgentNetwork extends MastraBase {
191
+ #private;
192
+ constructor(config: AgentNetworkConfig);
193
+ formatAgentId(name: string): string;
194
+ getTools(): {
195
+ transmit: Tool<z.ZodObject<{
196
+ actions: z.ZodArray<z.ZodObject<{
197
+ agent: z.ZodString;
198
+ input: z.ZodString;
199
+ includeHistory: z.ZodOptional<z.ZodBoolean>;
200
+ }, "strip", z.ZodTypeAny, {
201
+ input: string;
202
+ agent: string;
203
+ includeHistory?: boolean | undefined;
204
+ }, {
205
+ input: string;
206
+ agent: string;
207
+ includeHistory?: boolean | undefined;
208
+ }>, "many">;
209
+ }, "strip", z.ZodTypeAny, {
210
+ actions: {
211
+ input: string;
212
+ agent: string;
213
+ includeHistory?: boolean | undefined;
214
+ }[];
215
+ }, {
216
+ actions: {
217
+ input: string;
218
+ agent: string;
219
+ includeHistory?: boolean | undefined;
220
+ }[];
221
+ }>, undefined, ToolExecutionContext<z.ZodObject<{
222
+ actions: z.ZodArray<z.ZodObject<{
223
+ agent: z.ZodString;
224
+ input: z.ZodString;
225
+ includeHistory: z.ZodOptional<z.ZodBoolean>;
226
+ }, "strip", z.ZodTypeAny, {
227
+ input: string;
228
+ agent: string;
229
+ includeHistory?: boolean | undefined;
230
+ }, {
231
+ input: string;
232
+ agent: string;
233
+ includeHistory?: boolean | undefined;
234
+ }>, "many">;
235
+ }, "strip", z.ZodTypeAny, {
236
+ actions: {
237
+ input: string;
238
+ agent: string;
239
+ includeHistory?: boolean | undefined;
240
+ }[];
241
+ }, {
242
+ actions: {
243
+ input: string;
244
+ agent: string;
245
+ includeHistory?: boolean | undefined;
246
+ }[];
247
+ }>>>;
248
+ };
249
+ getAgentHistory(agentId: string): {
250
+ input: string;
251
+ output: string;
252
+ timestamp: string;
253
+ }[];
254
+ /**
255
+ * Get the history of all agent interactions that have occurred in this network
256
+ * @returns A record of agent interactions, keyed by agent ID
257
+ */
258
+ getAgentInteractionHistory(): {
259
+ [x: string]: {
260
+ input: string;
261
+ output: string;
262
+ timestamp: string;
263
+ }[];
264
+ };
265
+ /**
266
+ * Get a summary of agent interactions in a more readable format, displayed chronologically
267
+ * @returns A formatted string with all agent interactions in chronological order
268
+ */
269
+ getAgentInteractionSummary(): string;
270
+ executeAgent(agentId: string, input: CoreMessage$1[], includeHistory?: boolean): Promise<string>;
271
+ getInstructions(): string;
272
+ getRoutingAgent(): Agent<ToolsInput, Record<string, Metric>>;
273
+ getAgents(): Agent<ToolsInput, Record<string, Metric>>[];
274
+ generate<Z extends ZodSchema | JSONSchema7 | undefined = undefined>(messages: string | string[] | CoreMessage$1[], args?: AgentGenerateOptions<Z> & {
275
+ output?: never;
276
+ experimental_output?: never;
277
+ }): Promise<GenerateTextResult<any, Z extends ZodSchema ? z.infer<Z> : unknown>>;
278
+ generate<Z extends ZodSchema | JSONSchema7 | undefined = undefined>(messages: string | string[] | CoreMessage$1[], args?: AgentGenerateOptions<Z> & ({
279
+ output: Z;
280
+ experimental_output?: never;
281
+ } | {
282
+ experimental_output: Z;
283
+ output?: never;
284
+ })): Promise<GenerateObjectResult<Z extends ZodSchema ? z.infer<Z> : unknown>>;
285
+ stream<Z extends ZodSchema | JSONSchema7 | undefined = undefined>(messages: string | string[] | CoreMessage$1[], args?: AgentStreamOptions<Z> & {
286
+ output?: never;
287
+ experimental_output?: never;
288
+ }): Promise<StreamTextResult<any, Z extends ZodSchema ? z.infer<Z> : unknown>>;
289
+ stream<Z extends ZodSchema | JSONSchema7 | undefined = undefined>(messages: string | string[] | CoreMessage$1[], args?: AgentStreamOptions<Z> & ({
290
+ output: Z;
291
+ experimental_output?: never;
292
+ } | {
293
+ experimental_output: Z;
294
+ output?: never;
295
+ })): Promise<StreamObjectResult<any, Z extends ZodSchema ? z.infer<Z> : unknown, any>>;
296
+ __registerMastra(p: Mastra): void;
297
+ }
298
+
172
299
  declare class Step<TStepId extends string = any, TSchemaIn extends z.ZodSchema | undefined = undefined, TSchemaOut extends z.ZodSchema | undefined = undefined, TContext extends StepExecutionContext<TSchemaIn> = StepExecutionContext<TSchemaIn>> implements StepAction<TStepId, TSchemaIn, TSchemaOut, TContext> {
173
300
  id: TStepId;
174
301
  description?: string;
@@ -1045,8 +1172,9 @@ declare class Workflow<TSteps extends Step<string, any, any>[] = Step<string, an
1045
1172
  get steps(): Record<string, StepAction<any, any, any, any>>;
1046
1173
  }
1047
1174
 
1048
- interface Config<TAgents extends Record<string, Agent<any>> = Record<string, Agent<any>>, TWorkflows extends Record<string, Workflow> = Record<string, Workflow>, TVectors extends Record<string, MastraVector> = Record<string, MastraVector>, TTTS extends Record<string, MastraTTS> = Record<string, MastraTTS>, TLogger extends Logger = Logger> {
1175
+ interface Config<TAgents extends Record<string, Agent<any>> = Record<string, Agent<any>>, TWorkflows extends Record<string, Workflow> = Record<string, Workflow>, TVectors extends Record<string, MastraVector> = Record<string, MastraVector>, TTTS extends Record<string, MastraTTS> = Record<string, MastraTTS>, TLogger extends Logger = Logger, TNetworks extends Record<string, AgentNetwork> = Record<string, AgentNetwork>> {
1049
1176
  agents?: TAgents;
1177
+ networks?: TNetworks;
1050
1178
  storage?: MastraStorage;
1051
1179
  vectors?: TVectors;
1052
1180
  logger?: TLogger | false;
@@ -1064,7 +1192,7 @@ interface Config<TAgents extends Record<string, Agent<any>> = Record<string, Age
1064
1192
  }>;
1065
1193
  memory?: MastraMemory;
1066
1194
  }
1067
- declare class Mastra<TAgents extends Record<string, Agent<any>> = Record<string, Agent<any>>, TWorkflows extends Record<string, Workflow> = Record<string, Workflow>, TVectors extends Record<string, MastraVector> = Record<string, MastraVector>, TTTS extends Record<string, MastraTTS> = Record<string, MastraTTS>, TLogger extends Logger = Logger> {
1195
+ declare class Mastra<TAgents extends Record<string, Agent<any>> = Record<string, Agent<any>>, TWorkflows extends Record<string, Workflow> = Record<string, Workflow>, TVectors extends Record<string, MastraVector> = Record<string, MastraVector>, TTTS extends Record<string, MastraTTS> = Record<string, MastraTTS>, TLogger extends Logger = Logger, TNetworks extends Record<string, AgentNetwork> = Record<string, AgentNetwork>> {
1068
1196
  #private;
1069
1197
  /**
1070
1198
  * @deprecated use getTelemetry() instead
@@ -1104,6 +1232,13 @@ declare class Mastra<TAgents extends Record<string, Agent<any>> = Record<string,
1104
1232
  handler: (c: any, next: () => Promise<void>) => Promise<Response | void>;
1105
1233
  path: string;
1106
1234
  }[];
1235
+ getNetworks(): AgentNetwork[];
1236
+ /**
1237
+ * Get a specific network by ID
1238
+ * @param networkId - The ID of the network to retrieve
1239
+ * @returns The network with the specified ID, or undefined if not found
1240
+ */
1241
+ getNetwork(networkId: string): AgentNetwork | undefined;
1107
1242
  getLogsByRunId({ runId, transportId }: {
1108
1243
  runId: string;
1109
1244
  transportId: string;
@@ -1806,4 +1941,4 @@ declare abstract class MastraStorage extends MastraBase {
1806
1941
  __getEvalsByAgentName(agentName: string, type?: 'test' | 'live'): Promise<EvalRow[]>;
1807
1942
  }
1808
1943
 
1809
- export { type StepNode as $, Agent as A, type BaseStructuredOutputType as B, type CoreTool as C, type DefaultLLMTextOptions as D, type EvalRow as E, type DefaultLLMTextObjectOptions as F, type GenerateReturn as G, type DefaultLLMStreamOptions as H, type DefaultLLMStreamObjectOptions as I, type LLMTextOptions as J, type LLMTextObjectOptions as K, type LanguageModel as L, Mastra as M, type LLMStreamOptions as N, type OutputType as O, type LLMInnerStreamOptions as P, type LLMStreamObjectOptions as Q, type Config as R, Step as S, type ToolAction as T, type MessageResponse as U, type VercelTool as V, Workflow as W, type MemoryConfig as X, type SharedMemoryConfig as Y, type StepAction as Z, type StepVariableType as _, type ToolsInput as a, type StepGraph as a0, type RetryConfig as a1, type VariableReference as a2, type BaseCondition as a3, type ActionContext as a4, WhenConditionReturnValue as a5, type StepDef as a6, type StepCondition as a7, type StepConfig as a8, type StepResult as a9, MastraVoice as aA, CompositeVoice as aB, type ToolsetsInput as aC, type AgentGenerateOptions as aD, type AgentStreamOptions as aE, TABLE_WORKFLOW_SNAPSHOT as aF, TABLE_EVALS as aG, TABLE_MESSAGES as aH, TABLE_THREADS as aI, TABLE_TRACES as aJ, type StepsRecord as aa, type WorkflowRunResult as ab, type WorkflowLogMessage as ac, type WorkflowEvent as ad, type ResolverFunctionInput as ae, type ResolverFunctionOutput as af, type SubscriberFunctionOutput as ag, type DependencyCheckOutput as ah, type StepResolverOutput as ai, type WorkflowActors as aj, type WorkflowActionParams as ak, type WorkflowActions as al, type WorkflowState as am, type StepId as an, type ExtractSchemaFromStep as ao, type ExtractStepResult as ap, type StepInputType as aq, type ExtractSchemaType as ar, type PathsToStringProps as as, type WorkflowRunState as at, type WorkflowResumeResult as au, createStep as av, type MastraLanguageModel as aw, type VoiceEventType as ax, type VoiceEventMap as ay, type VoiceConfig as az, type MastraPrimitives as b, MastraMemory as c, type StepExecutionContext as d, type WorkflowContext as e, MastraStorage as f, type TABLE_NAMES as g, type StorageColumn as h, type StorageThreadType as i, type MessageType as j, type StorageGetMessagesArg as k, type AgentConfig as l, type ToolExecutionContext as m, type WorkflowOptions as n, type WorkflowRow as o, type CoreMessage as p, type CoreSystemMessage as q, type CoreAssistantMessage as r, type CoreUserMessage as s, type CoreToolMessage as t, type EmbedResult as u, type EmbedManyResult as v, type StructuredOutputType as w, type StructuredOutputArrayItem as x, type StructuredOutput as y, type StreamReturn as z };
1944
+ export { createTool as $, Agent as A, type BaseStructuredOutputType as B, type CoreTool as C, type StructuredOutput as D, type EvalRow as E, type StreamReturn as F, type GenerateReturn as G, type DefaultLLMTextOptions as H, type DefaultLLMTextObjectOptions as I, type DefaultLLMStreamOptions as J, type DefaultLLMStreamObjectOptions as K, type LanguageModel as L, Mastra as M, type LLMTextOptions as N, type OutputType as O, type LLMTextObjectOptions as P, type LLMStreamOptions as Q, type LLMInnerStreamOptions as R, Step as S, type ToolAction as T, type LLMStreamObjectOptions as U, type VercelTool as V, Workflow as W, type Config as X, type MessageResponse as Y, type MemoryConfig as Z, type SharedMemoryConfig as _, type ToolsInput as a, type StepAction as a0, type StepVariableType as a1, type StepNode as a2, type StepGraph as a3, type RetryConfig as a4, type VariableReference as a5, type BaseCondition as a6, type ActionContext as a7, WhenConditionReturnValue as a8, type StepDef as a9, type AgentNetworkConfig as aA, type VoiceEventType as aB, type VoiceEventMap as aC, type VoiceConfig as aD, MastraVoice as aE, CompositeVoice as aF, type ToolsetsInput as aG, type AgentGenerateOptions as aH, type AgentStreamOptions as aI, TABLE_WORKFLOW_SNAPSHOT as aJ, TABLE_EVALS as aK, TABLE_MESSAGES as aL, TABLE_THREADS as aM, TABLE_TRACES as aN, type StepCondition as aa, type StepConfig as ab, type StepResult as ac, type StepsRecord as ad, type WorkflowRunResult as ae, type WorkflowLogMessage as af, type WorkflowEvent as ag, type ResolverFunctionInput as ah, type ResolverFunctionOutput as ai, type SubscriberFunctionOutput as aj, type DependencyCheckOutput as ak, type StepResolverOutput as al, type WorkflowActors as am, type WorkflowActionParams as an, type WorkflowActions as ao, type WorkflowState as ap, type StepId as aq, type ExtractSchemaFromStep as ar, type ExtractStepResult as as, type StepInputType as at, type ExtractSchemaType as au, type PathsToStringProps as av, type WorkflowRunState as aw, type WorkflowResumeResult as ax, createStep as ay, type MastraLanguageModel as az, type MastraPrimitives as b, MastraMemory as c, type StepExecutionContext as d, type WorkflowContext as e, AgentNetwork as f, MastraStorage as g, type TABLE_NAMES as h, type StorageColumn as i, type StorageThreadType as j, type MessageType as k, type StorageGetMessagesArg as l, type AgentConfig as m, type ToolExecutionContext as n, Tool as o, type WorkflowOptions as p, type WorkflowRow as q, type CoreMessage as r, type CoreSystemMessage as s, type CoreAssistantMessage as t, type CoreUserMessage as u, type CoreToolMessage as v, type EmbedResult as w, type EmbedManyResult as x, type StructuredOutputType as y, type StructuredOutputArrayItem as z };
@@ -1,6 +1,6 @@
1
1
  import * as _opentelemetry_api from '@opentelemetry/api';
2
2
  import { Tracer, Span } from '@opentelemetry/api';
3
- import { R as RegisteredLogger, L as Logger } from './index-mKY1XrpK.cjs';
3
+ import { R as RegisteredLogger, L as Logger } from './index-CquI0inB.cjs';
4
4
  import { SpanExporter } from '@opentelemetry/sdk-trace-base';
5
5
 
6
6
  /** Sampling strategy configuration for OpenTelemetry */
package/dist/base.cjs CHANGED
@@ -1,10 +1,10 @@
1
1
  'use strict';
2
2
 
3
- var chunkIIWRJFLQ_cjs = require('./chunk-IIWRJFLQ.cjs');
3
+ var chunkPL7PVTGF_cjs = require('./chunk-PL7PVTGF.cjs');
4
4
 
5
5
 
6
6
 
7
7
  Object.defineProperty(exports, "MastraBase", {
8
8
  enumerable: true,
9
- get: function () { return chunkIIWRJFLQ_cjs.MastraBase; }
9
+ get: function () { return chunkPL7PVTGF_cjs.MastraBase; }
10
10
  });
package/dist/base.d.cts CHANGED
@@ -1,6 +1,6 @@
1
1
  import '@opentelemetry/api';
2
- import './index-mKY1XrpK.cjs';
3
- export { M as MastraBase } from './base-DboIg_Cd.cjs';
2
+ import './index-CquI0inB.cjs';
3
+ export { M as MastraBase } from './base-ObPJ-w8K.cjs';
4
4
  import 'stream';
5
5
  import 'pino';
6
6
  import '@opentelemetry/sdk-trace-base';
package/dist/base.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import '@opentelemetry/api';
2
- import './index-mKY1XrpK.js';
3
- export { M as MastraBase } from './base-BZViaFTt.js';
2
+ import './index-CquI0inB.js';
3
+ export { M as MastraBase } from './base-Cmunaaxb.js';
4
4
  import 'stream';
5
5
  import 'pino';
6
6
  import '@opentelemetry/sdk-trace-base';
package/dist/base.js CHANGED
@@ -1 +1 @@
1
- export { MastraBase } from './chunk-4VHCCQ7P.js';
1
+ export { MastraBase } from './chunk-VN4M67DA.js';
@@ -1,10 +1,10 @@
1
1
  'use strict';
2
2
 
3
- var chunkSYQ7NK2E_cjs = require('../chunk-SYQ7NK2E.cjs');
3
+ var chunkJJ4YQTFT_cjs = require('../chunk-JJ4YQTFT.cjs');
4
4
 
5
5
 
6
6
 
7
7
  Object.defineProperty(exports, "MastraBundler", {
8
8
  enumerable: true,
9
- get: function () { return chunkSYQ7NK2E_cjs.MastraBundler; }
9
+ get: function () { return chunkJJ4YQTFT_cjs.MastraBundler; }
10
10
  });
@@ -1,6 +1,6 @@
1
- import { M as MastraBase } from '../base-DboIg_Cd.cjs';
1
+ import { M as MastraBase } from '../base-ObPJ-w8K.cjs';
2
2
  import '@opentelemetry/api';
3
- import '../index-mKY1XrpK.cjs';
3
+ import '../index-CquI0inB.cjs';
4
4
  import 'stream';
5
5
  import 'pino';
6
6
  import '@opentelemetry/sdk-trace-base';
@@ -1,6 +1,6 @@
1
- import { M as MastraBase } from '../base-BZViaFTt.js';
1
+ import { M as MastraBase } from '../base-Cmunaaxb.js';
2
2
  import '@opentelemetry/api';
3
- import '../index-mKY1XrpK.js';
3
+ import '../index-CquI0inB.js';
4
4
  import 'stream';
5
5
  import 'pino';
6
6
  import '@opentelemetry/sdk-trace-base';
@@ -1 +1 @@
1
- export { MastraBundler } from '../chunk-ECNK7OU3.js';
1
+ export { MastraBundler } from '../chunk-XLXJUYKH.js';
@@ -1,7 +1,7 @@
1
1
  import { InstrumentClass } from './chunk-W5HVJX45.js';
2
2
  import { ensureToolProperties, createMastraProxy, makeCoreTool, delay } from './chunk-64NEAPI4.js';
3
- import { MastraBase } from './chunk-4VHCCQ7P.js';
4
- import { RegisteredLogger } from './chunk-3JSTLSIP.js';
3
+ import { MastraBase } from './chunk-VN4M67DA.js';
4
+ import { RegisteredLogger } from './chunk-L7CR75HA.js';
5
5
  import { executeHook } from './chunk-BB4KXGBU.js';
6
6
  import { __decoratorStart, __decorateElement, __runInitializers } from './chunk-C6A6W6XS.js';
7
7
  import { randomUUID } from 'crypto';
@@ -1,4 +1,4 @@
1
- import { MastraBundler } from './chunk-ECNK7OU3.js';
1
+ import { MastraBundler } from './chunk-XLXJUYKH.js';
2
2
 
3
3
  // src/deployer/index.ts
4
4
  var MastraDeployer = class extends MastraBundler {
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
3
  var chunkXB2TJ7LX_cjs = require('./chunk-XB2TJ7LX.cjs');
4
- var chunkIIWRJFLQ_cjs = require('./chunk-IIWRJFLQ.cjs');
4
+ var chunkPL7PVTGF_cjs = require('./chunk-PL7PVTGF.cjs');
5
5
  var chunkRWTSGWWL_cjs = require('./chunk-RWTSGWWL.cjs');
6
6
 
7
7
  // src/tts/index.ts
@@ -10,7 +10,7 @@ _MastraTTS_decorators = [chunkXB2TJ7LX_cjs.InstrumentClass({
10
10
  prefix: "tts",
11
11
  excludeMethods: ["__setTools", "__setLogger", "__setTelemetry", "#log"]
12
12
  })];
13
- exports.MastraTTS = class MastraTTS extends (_a = chunkIIWRJFLQ_cjs.MastraBase) {
13
+ exports.MastraTTS = class MastraTTS extends (_a = chunkPL7PVTGF_cjs.MastraBase) {
14
14
  model;
15
15
  constructor({
16
16
  model
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var chunkCMSZAZ3I_cjs = require('./chunk-CMSZAZ3I.cjs');
3
+ var chunkXOOCUJXH_cjs = require('./chunk-XOOCUJXH.cjs');
4
4
  var cohereAi = require('cohere-ai');
5
5
 
6
6
  var CohereRelevanceScorer = class {
@@ -38,7 +38,7 @@ Relevance score (0-1):`;
38
38
  var MastraAgentRelevanceScorer = class {
39
39
  agent;
40
40
  constructor(name, model) {
41
- this.agent = new chunkCMSZAZ3I_cjs.Agent({
41
+ this.agent = new chunkXOOCUJXH_cjs.Agent({
42
42
  name: `Relevance Scorer ${name}`,
43
43
  instructions: `You are a specialized agent for evaluating the relevance of text to queries.
44
44
  Your task is to rate how well a text passage answers a given query.