@mastra/core 0.10.2-alpha.1 → 0.10.2-alpha.3
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/dist/agent/index.cjs +2 -2
- package/dist/agent/index.d.cts +1 -1
- package/dist/agent/index.d.ts +1 -1
- package/dist/agent/index.js +1 -1
- package/dist/{base-BIRXTC4Q.d.cts → base-BVk16Aam.d.cts} +15 -1
- package/dist/{base-BUTjc86H.d.ts → base-BzojM-QS.d.ts} +15 -1
- package/dist/{chunk-RVS6OUJN.cjs → chunk-2SMCLROM.cjs} +21 -0
- package/dist/{chunk-EZYCQBP2.cjs → chunk-5YZ3UOVW.cjs} +2 -2
- package/dist/{chunk-KJQFFEEQ.js → chunk-AHLWW5GJ.js} +21 -0
- package/dist/{chunk-NY4KJJWC.js → chunk-BHZLIUY7.js} +1 -1
- package/dist/{chunk-QUCBJ363.cjs → chunk-BYMMP6QW.cjs} +8 -7
- package/dist/{chunk-A4RQDNP3.js → chunk-CMJDDEFJ.js} +9 -4
- package/dist/{chunk-GXEDBJC5.cjs → chunk-MVW7B234.cjs} +10 -5
- package/dist/{chunk-D3237VN7.js → chunk-MZDYQ3I7.js} +6 -5
- package/dist/eval/index.d.cts +1 -1
- package/dist/eval/index.d.ts +1 -1
- package/dist/index.cjs +20 -20
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +5 -5
- package/dist/integration/index.d.cts +1 -1
- package/dist/integration/index.d.ts +1 -1
- package/dist/llm/index.d.cts +1 -1
- package/dist/llm/index.d.ts +1 -1
- package/dist/mastra/index.d.cts +1 -1
- package/dist/mastra/index.d.ts +1 -1
- package/dist/mcp/index.d.cts +1 -1
- package/dist/mcp/index.d.ts +1 -1
- package/dist/memory/index.d.cts +1 -1
- package/dist/memory/index.d.ts +1 -1
- package/dist/network/index.cjs +2 -2
- package/dist/network/index.d.cts +1 -1
- package/dist/network/index.d.ts +1 -1
- package/dist/network/index.js +1 -1
- package/dist/relevance/index.cjs +4 -4
- package/dist/relevance/index.d.cts +1 -1
- package/dist/relevance/index.d.ts +1 -1
- package/dist/relevance/index.js +1 -1
- package/dist/server/index.d.cts +2 -2
- package/dist/server/index.d.ts +2 -2
- package/dist/storage/index.d.cts +2 -2
- package/dist/storage/index.d.ts +2 -2
- package/dist/telemetry/index.d.cts +1 -1
- package/dist/telemetry/index.d.ts +1 -1
- package/dist/tools/index.d.cts +1 -1
- package/dist/tools/index.d.ts +1 -1
- package/dist/utils.d.cts +1 -1
- package/dist/utils.d.ts +1 -1
- package/dist/voice/index.cjs +4 -4
- package/dist/voice/index.d.cts +1 -1
- package/dist/voice/index.d.ts +1 -1
- package/dist/voice/index.js +1 -1
- package/dist/workflows/index.cjs +9 -9
- package/dist/workflows/index.d.cts +2 -2
- package/dist/workflows/index.d.ts +2 -2
- package/dist/workflows/index.js +1 -1
- package/dist/workflows/legacy/index.cjs +22 -22
- package/dist/workflows/legacy/index.d.cts +2 -2
- package/dist/workflows/legacy/index.d.ts +2 -2
- package/dist/workflows/legacy/index.js +1 -1
- package/package.json +1 -1
package/dist/agent/index.cjs
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkBYMMP6QW_cjs = require('../chunk-BYMMP6QW.cjs');
|
|
4
4
|
var chunkXAO67QBR_cjs = require('../chunk-XAO67QBR.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
Object.defineProperty(exports, "Agent", {
|
|
9
9
|
enumerable: true,
|
|
10
|
-
get: function () { return
|
|
10
|
+
get: function () { return chunkBYMMP6QW_cjs.Agent; }
|
|
11
11
|
});
|
|
12
12
|
Object.defineProperty(exports, "MessageList", {
|
|
13
13
|
enumerable: true,
|
package/dist/agent/index.d.cts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export { Message as AiMessageType } from 'ai';
|
|
2
2
|
import 'json-schema';
|
|
3
3
|
import 'zod';
|
|
4
|
-
export { r as Agent, aa as AgentConfig, bN as AgentGenerateOptions, bO as AgentStreamOptions, bM as DynamicArgument, bh as MastraLanguageModel, bP as MastraMessageContentV2, e as MastraMessageV2, bK as MessageList, t as ToolsInput, bL as ToolsetsInput } from '../base-
|
|
4
|
+
export { r as Agent, aa as AgentConfig, bN as AgentGenerateOptions, bO as AgentStreamOptions, bM as DynamicArgument, bh as MastraLanguageModel, bP as MastraMessageContentV2, e as MastraMessageV2, bK as MessageList, t as ToolsInput, bL as ToolsetsInput } from '../base-BVk16Aam.cjs';
|
|
5
5
|
import '../base-aPYtPBT2.cjs';
|
|
6
6
|
import '../types-Bo1uigWx.cjs';
|
|
7
7
|
import '../runtime-context/index.cjs';
|
package/dist/agent/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export { Message as AiMessageType } from 'ai';
|
|
2
2
|
import 'json-schema';
|
|
3
3
|
import 'zod';
|
|
4
|
-
export { r as Agent, aa as AgentConfig, bN as AgentGenerateOptions, bO as AgentStreamOptions, bM as DynamicArgument, bh as MastraLanguageModel, bP as MastraMessageContentV2, e as MastraMessageV2, bK as MessageList, t as ToolsInput, bL as ToolsetsInput } from '../base-
|
|
4
|
+
export { r as Agent, aa as AgentConfig, bN as AgentGenerateOptions, bO as AgentStreamOptions, bM as DynamicArgument, bh as MastraLanguageModel, bP as MastraMessageContentV2, e as MastraMessageV2, bK as MessageList, t as ToolsInput, bL as ToolsetsInput } from '../base-BzojM-QS.js';
|
|
5
5
|
import '../base-tc5kgDTD.js';
|
|
6
6
|
import '../types-Bo1uigWx.js';
|
|
7
7
|
import '../runtime-context/index.js';
|
package/dist/agent/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { Agent } from '../chunk-
|
|
1
|
+
export { Agent } from '../chunk-MZDYQ3I7.js';
|
|
2
2
|
export { MessageList } from '../chunk-LCCQWUQP.js';
|
|
@@ -1041,6 +1041,7 @@ declare class LegacyWorkflow<TSteps extends LegacyStep<string, any, any>[] = Leg
|
|
|
1041
1041
|
}
|
|
1042
1042
|
|
|
1043
1043
|
type ExecuteFunction<TStepInput, TStepOutput, TResumeSchema, TSuspendSchema> = (params: {
|
|
1044
|
+
runId: string;
|
|
1044
1045
|
mastra: Mastra;
|
|
1045
1046
|
runtimeContext: RuntimeContext;
|
|
1046
1047
|
inputData: TStepInput;
|
|
@@ -2128,6 +2129,13 @@ declare abstract class MastraVoice<TOptions = unknown, TSpeakOptions = unknown,
|
|
|
2128
2129
|
getSpeakers(): Promise<Array<{
|
|
2129
2130
|
voiceId: string;
|
|
2130
2131
|
} & TSpeakerMetadata>>;
|
|
2132
|
+
/**
|
|
2133
|
+
* Get available speakers/voices
|
|
2134
|
+
* @returns Array of available voice IDs and their metadata
|
|
2135
|
+
*/
|
|
2136
|
+
getListener(): Promise<{
|
|
2137
|
+
enabled: boolean;
|
|
2138
|
+
}>;
|
|
2131
2139
|
}
|
|
2132
2140
|
|
|
2133
2141
|
declare class CompositeVoice extends MastraVoice<unknown, unknown, unknown, ToolsInput, VoiceEventMap> {
|
|
@@ -2158,6 +2166,9 @@ declare class CompositeVoice extends MastraVoice<unknown, unknown, unknown, Tool
|
|
|
2158
2166
|
getSpeakers(): Promise<{
|
|
2159
2167
|
voiceId: string;
|
|
2160
2168
|
}[]>;
|
|
2169
|
+
getListener(): Promise<{
|
|
2170
|
+
enabled: boolean;
|
|
2171
|
+
}>;
|
|
2161
2172
|
updateConfig(options: Record<string, unknown>): void;
|
|
2162
2173
|
/**
|
|
2163
2174
|
* Initializes a WebSocket or WebRTC connection for real-time communication
|
|
@@ -2208,6 +2219,9 @@ declare class DefaultVoice extends MastraVoice {
|
|
|
2208
2219
|
getSpeakers(): Promise<{
|
|
2209
2220
|
voiceId: string;
|
|
2210
2221
|
}[]>;
|
|
2222
|
+
getListener(): Promise<{
|
|
2223
|
+
enabled: boolean;
|
|
2224
|
+
}>;
|
|
2211
2225
|
}
|
|
2212
2226
|
|
|
2213
2227
|
type ToolsInput = Record<string, ToolAction<any, any, any> | VercelTool>;
|
|
@@ -3137,7 +3151,7 @@ declare class Agent<TAgentId extends string = string, TTools extends ToolsInput
|
|
|
3137
3151
|
runtimeContext?: RuntimeContext;
|
|
3138
3152
|
}): Promise<string>;
|
|
3139
3153
|
getMostRecentUserMessage(messages: Array<UIMessage>): UIMessage | undefined;
|
|
3140
|
-
genTitle(userMessage: UIMessage | undefined): Promise<string>;
|
|
3154
|
+
genTitle(userMessage: UIMessage | undefined, runtimeContext: RuntimeContext): Promise<string>;
|
|
3141
3155
|
fetchMemory({ threadId, thread: passedThread, memoryConfig, resourceId, runId, messageList, }: {
|
|
3142
3156
|
resourceId: string;
|
|
3143
3157
|
threadId: string;
|
|
@@ -1041,6 +1041,7 @@ declare class LegacyWorkflow<TSteps extends LegacyStep<string, any, any>[] = Leg
|
|
|
1041
1041
|
}
|
|
1042
1042
|
|
|
1043
1043
|
type ExecuteFunction<TStepInput, TStepOutput, TResumeSchema, TSuspendSchema> = (params: {
|
|
1044
|
+
runId: string;
|
|
1044
1045
|
mastra: Mastra;
|
|
1045
1046
|
runtimeContext: RuntimeContext;
|
|
1046
1047
|
inputData: TStepInput;
|
|
@@ -2128,6 +2129,13 @@ declare abstract class MastraVoice<TOptions = unknown, TSpeakOptions = unknown,
|
|
|
2128
2129
|
getSpeakers(): Promise<Array<{
|
|
2129
2130
|
voiceId: string;
|
|
2130
2131
|
} & TSpeakerMetadata>>;
|
|
2132
|
+
/**
|
|
2133
|
+
* Get available speakers/voices
|
|
2134
|
+
* @returns Array of available voice IDs and their metadata
|
|
2135
|
+
*/
|
|
2136
|
+
getListener(): Promise<{
|
|
2137
|
+
enabled: boolean;
|
|
2138
|
+
}>;
|
|
2131
2139
|
}
|
|
2132
2140
|
|
|
2133
2141
|
declare class CompositeVoice extends MastraVoice<unknown, unknown, unknown, ToolsInput, VoiceEventMap> {
|
|
@@ -2158,6 +2166,9 @@ declare class CompositeVoice extends MastraVoice<unknown, unknown, unknown, Tool
|
|
|
2158
2166
|
getSpeakers(): Promise<{
|
|
2159
2167
|
voiceId: string;
|
|
2160
2168
|
}[]>;
|
|
2169
|
+
getListener(): Promise<{
|
|
2170
|
+
enabled: boolean;
|
|
2171
|
+
}>;
|
|
2161
2172
|
updateConfig(options: Record<string, unknown>): void;
|
|
2162
2173
|
/**
|
|
2163
2174
|
* Initializes a WebSocket or WebRTC connection for real-time communication
|
|
@@ -2208,6 +2219,9 @@ declare class DefaultVoice extends MastraVoice {
|
|
|
2208
2219
|
getSpeakers(): Promise<{
|
|
2209
2220
|
voiceId: string;
|
|
2210
2221
|
}[]>;
|
|
2222
|
+
getListener(): Promise<{
|
|
2223
|
+
enabled: boolean;
|
|
2224
|
+
}>;
|
|
2211
2225
|
}
|
|
2212
2226
|
|
|
2213
2227
|
type ToolsInput = Record<string, ToolAction<any, any, any> | VercelTool>;
|
|
@@ -3137,7 +3151,7 @@ declare class Agent<TAgentId extends string = string, TTools extends ToolsInput
|
|
|
3137
3151
|
runtimeContext?: RuntimeContext;
|
|
3138
3152
|
}): Promise<string>;
|
|
3139
3153
|
getMostRecentUserMessage(messages: Array<UIMessage>): UIMessage | undefined;
|
|
3140
|
-
genTitle(userMessage: UIMessage | undefined): Promise<string>;
|
|
3154
|
+
genTitle(userMessage: UIMessage | undefined, runtimeContext: RuntimeContext): Promise<string>;
|
|
3141
3155
|
fetchMemory({ threadId, thread: passedThread, memoryConfig, resourceId, runId, messageList, }: {
|
|
3142
3156
|
resourceId: string;
|
|
3143
3157
|
threadId: string;
|
|
@@ -105,6 +105,16 @@ exports.MastraVoice = class MastraVoice extends (_a = chunkYEULQPUY_cjs.MastraBa
|
|
|
105
105
|
this.logger.warn("getSpeakers not implemented by this voice provider");
|
|
106
106
|
return Promise.resolve([]);
|
|
107
107
|
}
|
|
108
|
+
/**
|
|
109
|
+
* Get available speakers/voices
|
|
110
|
+
* @returns Array of available voice IDs and their metadata
|
|
111
|
+
*/
|
|
112
|
+
getListener() {
|
|
113
|
+
this.logger.warn("getListener not implemented by this voice provider");
|
|
114
|
+
return Promise.resolve({
|
|
115
|
+
enabled: false
|
|
116
|
+
});
|
|
117
|
+
}
|
|
108
118
|
};
|
|
109
119
|
exports.MastraVoice = /*@__PURE__*/(_ => {
|
|
110
120
|
_init = chunkRWTSGWWL_cjs.__decoratorStart(_a);
|
|
@@ -162,6 +172,14 @@ var CompositeVoice = class extends exports.MastraVoice {
|
|
|
162
172
|
}
|
|
163
173
|
throw new Error("No speak provider or realtime provider configured");
|
|
164
174
|
}
|
|
175
|
+
async getListener() {
|
|
176
|
+
if (this.realtimeProvider) {
|
|
177
|
+
return this.realtimeProvider.getListener();
|
|
178
|
+
} else if (this.listenProvider) {
|
|
179
|
+
return this.listenProvider.getListener();
|
|
180
|
+
}
|
|
181
|
+
throw new Error("No listener provider or realtime provider configured");
|
|
182
|
+
}
|
|
165
183
|
updateConfig(options) {
|
|
166
184
|
if (!this.realtimeProvider) {
|
|
167
185
|
return;
|
|
@@ -264,6 +282,9 @@ var DefaultVoice = class extends exports.MastraVoice {
|
|
|
264
282
|
async getSpeakers() {
|
|
265
283
|
throw new Error("No voice provider configured");
|
|
266
284
|
}
|
|
285
|
+
async getListener() {
|
|
286
|
+
throw new Error("No voice provider configured");
|
|
287
|
+
}
|
|
267
288
|
};
|
|
268
289
|
|
|
269
290
|
exports.CompositeVoice = CompositeVoice;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkBYMMP6QW_cjs = require('./chunk-BYMMP6QW.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
|
|
41
|
+
this.agent = new chunkBYMMP6QW_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.
|
|
@@ -103,6 +103,16 @@ var MastraVoice = class extends (_a = MastraBase) {
|
|
|
103
103
|
this.logger.warn("getSpeakers not implemented by this voice provider");
|
|
104
104
|
return Promise.resolve([]);
|
|
105
105
|
}
|
|
106
|
+
/**
|
|
107
|
+
* Get available speakers/voices
|
|
108
|
+
* @returns Array of available voice IDs and their metadata
|
|
109
|
+
*/
|
|
110
|
+
getListener() {
|
|
111
|
+
this.logger.warn("getListener not implemented by this voice provider");
|
|
112
|
+
return Promise.resolve({
|
|
113
|
+
enabled: false
|
|
114
|
+
});
|
|
115
|
+
}
|
|
106
116
|
};
|
|
107
117
|
MastraVoice = /*@__PURE__*/(_ => {
|
|
108
118
|
_init = __decoratorStart(_a);
|
|
@@ -160,6 +170,14 @@ var CompositeVoice = class extends MastraVoice {
|
|
|
160
170
|
}
|
|
161
171
|
throw new Error("No speak provider or realtime provider configured");
|
|
162
172
|
}
|
|
173
|
+
async getListener() {
|
|
174
|
+
if (this.realtimeProvider) {
|
|
175
|
+
return this.realtimeProvider.getListener();
|
|
176
|
+
} else if (this.listenProvider) {
|
|
177
|
+
return this.listenProvider.getListener();
|
|
178
|
+
}
|
|
179
|
+
throw new Error("No listener provider or realtime provider configured");
|
|
180
|
+
}
|
|
163
181
|
updateConfig(options) {
|
|
164
182
|
if (!this.realtimeProvider) {
|
|
165
183
|
return;
|
|
@@ -262,6 +280,9 @@ var DefaultVoice = class extends MastraVoice {
|
|
|
262
280
|
async getSpeakers() {
|
|
263
281
|
throw new Error("No voice provider configured");
|
|
264
282
|
}
|
|
283
|
+
async getListener() {
|
|
284
|
+
throw new Error("No voice provider configured");
|
|
285
|
+
}
|
|
265
286
|
};
|
|
266
287
|
|
|
267
288
|
export { CompositeVoice, DefaultVoice, MastraVoice };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunk2SMCLROM_cjs = require('./chunk-2SMCLROM.cjs');
|
|
4
4
|
var chunkST5RMVLG_cjs = require('./chunk-ST5RMVLG.cjs');
|
|
5
|
-
var chunkI5OLBJ26_cjs = require('./chunk-I5OLBJ26.cjs');
|
|
6
5
|
var chunkUVRGQEMD_cjs = require('./chunk-UVRGQEMD.cjs');
|
|
6
|
+
var chunkI5OLBJ26_cjs = require('./chunk-I5OLBJ26.cjs');
|
|
7
7
|
var chunkXAO67QBR_cjs = require('./chunk-XAO67QBR.cjs');
|
|
8
8
|
var chunkDXLVS7ML_cjs = require('./chunk-DXLVS7ML.cjs');
|
|
9
9
|
var chunkYEULQPUY_cjs = require('./chunk-YEULQPUY.cjs');
|
|
@@ -134,7 +134,7 @@ exports.Agent = class Agent extends (_a = chunkYEULQPUY_cjs.MastraBase) {
|
|
|
134
134
|
this.#voice?.addInstructions(config.instructions);
|
|
135
135
|
}
|
|
136
136
|
} else {
|
|
137
|
-
this.#voice = new
|
|
137
|
+
this.#voice = new chunk2SMCLROM_cjs.DefaultVoice();
|
|
138
138
|
}
|
|
139
139
|
}
|
|
140
140
|
hasOwnMemory() {
|
|
@@ -187,7 +187,7 @@ exports.Agent = class Agent extends (_a = chunkYEULQPUY_cjs.MastraBase) {
|
|
|
187
187
|
}));
|
|
188
188
|
return voice;
|
|
189
189
|
} else {
|
|
190
|
-
return new
|
|
190
|
+
return new chunk2SMCLROM_cjs.DefaultVoice();
|
|
191
191
|
}
|
|
192
192
|
}
|
|
193
193
|
get instructions() {
|
|
@@ -372,12 +372,13 @@ exports.Agent = class Agent extends (_a = chunkYEULQPUY_cjs.MastraBase) {
|
|
|
372
372
|
const userMessages = messages.filter(message => message.role === "user");
|
|
373
373
|
return userMessages.at(-1);
|
|
374
374
|
}
|
|
375
|
-
async genTitle(userMessage) {
|
|
375
|
+
async genTitle(userMessage, runtimeContext) {
|
|
376
376
|
let title = `New Thread ${(/* @__PURE__ */new Date()).toISOString()}`;
|
|
377
377
|
try {
|
|
378
378
|
if (userMessage) {
|
|
379
379
|
title = await this.generateTitleFromUserMessage({
|
|
380
|
-
message: userMessage
|
|
380
|
+
message: userMessage,
|
|
381
|
+
runtimeContext
|
|
381
382
|
});
|
|
382
383
|
}
|
|
383
384
|
} catch (e) {
|
|
@@ -894,7 +895,7 @@ exports.Agent = class Agent extends (_a = chunkYEULQPUY_cjs.MastraBase) {
|
|
|
894
895
|
}
|
|
895
896
|
const config = memory.getMergedThreadConfig(memoryConfig2);
|
|
896
897
|
const userMessage = this.getMostRecentUserMessage(messageList.get.all.ui());
|
|
897
|
-
const title = config?.threads?.generateTitle && userMessage ? await this.genTitle(userMessage) : void 0;
|
|
898
|
+
const title = config?.threads?.generateTitle && userMessage ? await this.genTitle(userMessage, runtimeContext) : void 0;
|
|
898
899
|
if (!title) {
|
|
899
900
|
return;
|
|
900
901
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { EMITTER_SYMBOL } from './chunk-Y7D2JLKS.js';
|
|
2
|
-
import { Agent } from './chunk-
|
|
2
|
+
import { Agent } from './chunk-MZDYQ3I7.js';
|
|
3
3
|
import { Tool } from './chunk-EQTIDVPN.js';
|
|
4
4
|
import { MastraBase } from './chunk-FI7R232B.js';
|
|
5
5
|
import { RegisteredLogger } from './chunk-VHLL4AZK.js';
|
|
@@ -236,6 +236,7 @@ var DefaultExecutionEngine = class extends ExecutionEngine {
|
|
|
236
236
|
try {
|
|
237
237
|
let suspended;
|
|
238
238
|
const result = await runStep({
|
|
239
|
+
runId,
|
|
239
240
|
mastra: this.mastra,
|
|
240
241
|
runtimeContext,
|
|
241
242
|
inputData: prevOutput,
|
|
@@ -398,6 +399,7 @@ var DefaultExecutionEngine = class extends ExecutionEngine {
|
|
|
398
399
|
entry.conditions.map(async (cond, index) => {
|
|
399
400
|
try {
|
|
400
401
|
const result = await cond({
|
|
402
|
+
runId,
|
|
401
403
|
mastra: this.mastra,
|
|
402
404
|
runtimeContext,
|
|
403
405
|
inputData: prevOutput,
|
|
@@ -496,6 +498,7 @@ var DefaultExecutionEngine = class extends ExecutionEngine {
|
|
|
496
498
|
return result;
|
|
497
499
|
}
|
|
498
500
|
isTrue = await condition({
|
|
501
|
+
runId,
|
|
499
502
|
mastra: this.mastra,
|
|
500
503
|
runtimeContext,
|
|
501
504
|
inputData: result.output,
|
|
@@ -712,7 +715,7 @@ function createStep(params) {
|
|
|
712
715
|
outputSchema: z.object({
|
|
713
716
|
text: z.string()
|
|
714
717
|
}),
|
|
715
|
-
execute: async ({ inputData, [EMITTER_SYMBOL]: emitter }) => {
|
|
718
|
+
execute: async ({ inputData, [EMITTER_SYMBOL]: emitter, runtimeContext }) => {
|
|
716
719
|
let streamPromise = {};
|
|
717
720
|
streamPromise.promise = new Promise((resolve, reject) => {
|
|
718
721
|
streamPromise.resolve = resolve;
|
|
@@ -729,6 +732,7 @@ function createStep(params) {
|
|
|
729
732
|
const { fullStream } = await params.stream(inputData.prompt, {
|
|
730
733
|
// resourceId: inputData.resourceId,
|
|
731
734
|
// threadId: inputData.threadId,
|
|
735
|
+
runtimeContext,
|
|
732
736
|
onFinish: (result) => {
|
|
733
737
|
streamPromise.resolve(result.text);
|
|
734
738
|
}
|
|
@@ -773,10 +777,11 @@ function createStep(params) {
|
|
|
773
777
|
id: params.id,
|
|
774
778
|
inputSchema: params.inputSchema,
|
|
775
779
|
outputSchema: params.outputSchema,
|
|
776
|
-
execute: async ({ inputData, mastra }) => {
|
|
780
|
+
execute: async ({ inputData, mastra, runtimeContext }) => {
|
|
777
781
|
return params.execute({
|
|
778
782
|
context: inputData,
|
|
779
|
-
mastra
|
|
783
|
+
mastra,
|
|
784
|
+
runtimeContext
|
|
780
785
|
});
|
|
781
786
|
}
|
|
782
787
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var chunkBB6DPGIV_cjs = require('./chunk-BB6DPGIV.cjs');
|
|
4
|
-
var
|
|
4
|
+
var chunkBYMMP6QW_cjs = require('./chunk-BYMMP6QW.cjs');
|
|
5
5
|
var chunkDXLVS7ML_cjs = require('./chunk-DXLVS7ML.cjs');
|
|
6
6
|
var chunkYEULQPUY_cjs = require('./chunk-YEULQPUY.cjs');
|
|
7
7
|
var chunkSWW4EBUZ_cjs = require('./chunk-SWW4EBUZ.cjs');
|
|
@@ -242,6 +242,7 @@ var DefaultExecutionEngine = class extends ExecutionEngine {
|
|
|
242
242
|
try {
|
|
243
243
|
let suspended;
|
|
244
244
|
const result = await runStep({
|
|
245
|
+
runId,
|
|
245
246
|
mastra: this.mastra,
|
|
246
247
|
runtimeContext,
|
|
247
248
|
inputData: prevOutput,
|
|
@@ -404,6 +405,7 @@ var DefaultExecutionEngine = class extends ExecutionEngine {
|
|
|
404
405
|
entry.conditions.map(async (cond, index) => {
|
|
405
406
|
try {
|
|
406
407
|
const result = await cond({
|
|
408
|
+
runId,
|
|
407
409
|
mastra: this.mastra,
|
|
408
410
|
runtimeContext,
|
|
409
411
|
inputData: prevOutput,
|
|
@@ -502,6 +504,7 @@ var DefaultExecutionEngine = class extends ExecutionEngine {
|
|
|
502
504
|
return result;
|
|
503
505
|
}
|
|
504
506
|
isTrue = await condition({
|
|
507
|
+
runId,
|
|
505
508
|
mastra: this.mastra,
|
|
506
509
|
runtimeContext,
|
|
507
510
|
inputData: result.output,
|
|
@@ -705,7 +708,7 @@ var DefaultExecutionEngine = class extends ExecutionEngine {
|
|
|
705
708
|
|
|
706
709
|
// src/workflows/workflow.ts
|
|
707
710
|
function createStep(params) {
|
|
708
|
-
if (params instanceof
|
|
711
|
+
if (params instanceof chunkBYMMP6QW_cjs.Agent) {
|
|
709
712
|
return {
|
|
710
713
|
id: params.name,
|
|
711
714
|
// @ts-ignore
|
|
@@ -718,7 +721,7 @@ function createStep(params) {
|
|
|
718
721
|
outputSchema: zod.z.object({
|
|
719
722
|
text: zod.z.string()
|
|
720
723
|
}),
|
|
721
|
-
execute: async ({ inputData, [chunkBB6DPGIV_cjs.EMITTER_SYMBOL]: emitter }) => {
|
|
724
|
+
execute: async ({ inputData, [chunkBB6DPGIV_cjs.EMITTER_SYMBOL]: emitter, runtimeContext }) => {
|
|
722
725
|
let streamPromise = {};
|
|
723
726
|
streamPromise.promise = new Promise((resolve, reject) => {
|
|
724
727
|
streamPromise.resolve = resolve;
|
|
@@ -735,6 +738,7 @@ function createStep(params) {
|
|
|
735
738
|
const { fullStream } = await params.stream(inputData.prompt, {
|
|
736
739
|
// resourceId: inputData.resourceId,
|
|
737
740
|
// threadId: inputData.threadId,
|
|
741
|
+
runtimeContext,
|
|
738
742
|
onFinish: (result) => {
|
|
739
743
|
streamPromise.resolve(result.text);
|
|
740
744
|
}
|
|
@@ -779,10 +783,11 @@ function createStep(params) {
|
|
|
779
783
|
id: params.id,
|
|
780
784
|
inputSchema: params.inputSchema,
|
|
781
785
|
outputSchema: params.outputSchema,
|
|
782
|
-
execute: async ({ inputData, mastra }) => {
|
|
786
|
+
execute: async ({ inputData, mastra, runtimeContext }) => {
|
|
783
787
|
return params.execute({
|
|
784
788
|
context: inputData,
|
|
785
|
-
mastra
|
|
789
|
+
mastra,
|
|
790
|
+
runtimeContext
|
|
786
791
|
});
|
|
787
792
|
}
|
|
788
793
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { DefaultVoice } from './chunk-
|
|
1
|
+
import { DefaultVoice } from './chunk-AHLWW5GJ.js';
|
|
2
2
|
import { executeHook } from './chunk-BB4KXGBU.js';
|
|
3
|
-
import { MastraLLM } from './chunk-ZJYHZO6Y.js';
|
|
4
3
|
import { InstrumentClass } from './chunk-BFNYQFG2.js';
|
|
4
|
+
import { MastraLLM } from './chunk-ZJYHZO6Y.js';
|
|
5
5
|
import { MessageList } from './chunk-LCCQWUQP.js';
|
|
6
6
|
import { ensureToolProperties, makeCoreTool, createMastraProxy } from './chunk-EQTIDVPN.js';
|
|
7
7
|
import { MastraBase } from './chunk-FI7R232B.js';
|
|
@@ -365,12 +365,13 @@ var Agent = class extends (_a = MastraBase) {
|
|
|
365
365
|
const userMessages = messages.filter(message => message.role === "user");
|
|
366
366
|
return userMessages.at(-1);
|
|
367
367
|
}
|
|
368
|
-
async genTitle(userMessage) {
|
|
368
|
+
async genTitle(userMessage, runtimeContext) {
|
|
369
369
|
let title = `New Thread ${(/* @__PURE__ */new Date()).toISOString()}`;
|
|
370
370
|
try {
|
|
371
371
|
if (userMessage) {
|
|
372
372
|
title = await this.generateTitleFromUserMessage({
|
|
373
|
-
message: userMessage
|
|
373
|
+
message: userMessage,
|
|
374
|
+
runtimeContext
|
|
374
375
|
});
|
|
375
376
|
}
|
|
376
377
|
} catch (e) {
|
|
@@ -887,7 +888,7 @@ var Agent = class extends (_a = MastraBase) {
|
|
|
887
888
|
}
|
|
888
889
|
const config = memory.getMergedThreadConfig(memoryConfig2);
|
|
889
890
|
const userMessage = this.getMostRecentUserMessage(messageList.get.all.ui());
|
|
890
|
-
const title = config?.threads?.generateTitle && userMessage ? await this.genTitle(userMessage) : void 0;
|
|
891
|
+
const title = config?.threads?.generateTitle && userMessage ? await this.genTitle(userMessage, runtimeContext) : void 0;
|
|
891
892
|
if (!title) {
|
|
892
893
|
return;
|
|
893
894
|
}
|
package/dist/eval/index.d.cts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { M as Metric, T as TestInfo, E as EvaluationResult } from '../types-Bo1uigWx.cjs';
|
|
2
2
|
export { a as MetricResult } from '../types-Bo1uigWx.cjs';
|
|
3
|
-
import { r as Agent } from '../base-
|
|
3
|
+
import { r as Agent } from '../base-BVk16Aam.cjs';
|
|
4
4
|
import 'ai';
|
|
5
5
|
import '../base-aPYtPBT2.cjs';
|
|
6
6
|
import '@opentelemetry/api';
|
package/dist/eval/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { M as Metric, T as TestInfo, E as EvaluationResult } from '../types-Bo1uigWx.js';
|
|
2
2
|
export { a as MetricResult } from '../types-Bo1uigWx.js';
|
|
3
|
-
import { r as Agent } from '../base-
|
|
3
|
+
import { r as Agent } from '../base-BzojM-QS.js';
|
|
4
4
|
import 'ai';
|
|
5
5
|
import '../base-tc5kgDTD.js';
|
|
6
6
|
import '@opentelemetry/api';
|
package/dist/index.cjs
CHANGED
|
@@ -2,15 +2,15 @@
|
|
|
2
2
|
|
|
3
3
|
var chunkKSPHQSZX_cjs = require('./chunk-KSPHQSZX.cjs');
|
|
4
4
|
var chunkPIZM25KI_cjs = require('./chunk-PIZM25KI.cjs');
|
|
5
|
-
var
|
|
6
|
-
var
|
|
5
|
+
var chunkMVW7B234_cjs = require('./chunk-MVW7B234.cjs');
|
|
6
|
+
var chunk5YZ3UOVW_cjs = require('./chunk-5YZ3UOVW.cjs');
|
|
7
7
|
var chunkP7BGXOQV_cjs = require('./chunk-P7BGXOQV.cjs');
|
|
8
8
|
var chunk3C6V2FEP_cjs = require('./chunk-3C6V2FEP.cjs');
|
|
9
9
|
var chunkRK6DHZUA_cjs = require('./chunk-RK6DHZUA.cjs');
|
|
10
|
-
var chunkMUNFCOMB_cjs = require('./chunk-MUNFCOMB.cjs');
|
|
11
10
|
var chunk2CK6E5UF_cjs = require('./chunk-2CK6E5UF.cjs');
|
|
11
|
+
var chunkMUNFCOMB_cjs = require('./chunk-MUNFCOMB.cjs');
|
|
12
12
|
var chunk4I6LG5EO_cjs = require('./chunk-4I6LG5EO.cjs');
|
|
13
|
-
var
|
|
13
|
+
var chunkBYMMP6QW_cjs = require('./chunk-BYMMP6QW.cjs');
|
|
14
14
|
var chunkST5RMVLG_cjs = require('./chunk-ST5RMVLG.cjs');
|
|
15
15
|
var chunkUVRGQEMD_cjs = require('./chunk-UVRGQEMD.cjs');
|
|
16
16
|
var chunkDXLVS7ML_cjs = require('./chunk-DXLVS7ML.cjs');
|
|
@@ -18,7 +18,7 @@ var chunkCWSFP2HS_cjs = require('./chunk-CWSFP2HS.cjs');
|
|
|
18
18
|
var chunkYEULQPUY_cjs = require('./chunk-YEULQPUY.cjs');
|
|
19
19
|
|
|
20
20
|
// src/agent/index.warning.ts
|
|
21
|
-
var Agent2 = class extends
|
|
21
|
+
var Agent2 = class extends chunkBYMMP6QW_cjs.Agent {
|
|
22
22
|
constructor(config) {
|
|
23
23
|
super(config);
|
|
24
24
|
this.logger.warn('Please import "Agent from "@mastra/core/agent" instead of "@mastra/core"');
|
|
@@ -100,7 +100,7 @@ var MastraVector2 = class extends chunkPIZM25KI_cjs.MastraVector {
|
|
|
100
100
|
};
|
|
101
101
|
|
|
102
102
|
// src/workflows/workflow.warning.ts
|
|
103
|
-
var Workflow2 = class extends
|
|
103
|
+
var Workflow2 = class extends chunkMVW7B234_cjs.Workflow {
|
|
104
104
|
constructor(args) {
|
|
105
105
|
super(args);
|
|
106
106
|
this.logger.warn('Please import "Workflow" from "@mastra/core/workflows" instead of "@mastra/core"');
|
|
@@ -109,43 +109,43 @@ var Workflow2 = class extends chunkGXEDBJC5_cjs.Workflow {
|
|
|
109
109
|
|
|
110
110
|
Object.defineProperty(exports, "DefaultExecutionEngine", {
|
|
111
111
|
enumerable: true,
|
|
112
|
-
get: function () { return
|
|
112
|
+
get: function () { return chunkMVW7B234_cjs.DefaultExecutionEngine; }
|
|
113
113
|
});
|
|
114
114
|
Object.defineProperty(exports, "ExecutionEngine", {
|
|
115
115
|
enumerable: true,
|
|
116
|
-
get: function () { return
|
|
116
|
+
get: function () { return chunkMVW7B234_cjs.ExecutionEngine; }
|
|
117
117
|
});
|
|
118
118
|
Object.defineProperty(exports, "Run", {
|
|
119
119
|
enumerable: true,
|
|
120
|
-
get: function () { return
|
|
120
|
+
get: function () { return chunkMVW7B234_cjs.Run; }
|
|
121
121
|
});
|
|
122
122
|
Object.defineProperty(exports, "cloneStep", {
|
|
123
123
|
enumerable: true,
|
|
124
|
-
get: function () { return
|
|
124
|
+
get: function () { return chunkMVW7B234_cjs.cloneStep; }
|
|
125
125
|
});
|
|
126
126
|
Object.defineProperty(exports, "cloneWorkflow", {
|
|
127
127
|
enumerable: true,
|
|
128
|
-
get: function () { return
|
|
128
|
+
get: function () { return chunkMVW7B234_cjs.cloneWorkflow; }
|
|
129
129
|
});
|
|
130
130
|
Object.defineProperty(exports, "createStep", {
|
|
131
131
|
enumerable: true,
|
|
132
|
-
get: function () { return
|
|
132
|
+
get: function () { return chunkMVW7B234_cjs.createStep; }
|
|
133
133
|
});
|
|
134
134
|
Object.defineProperty(exports, "createWorkflow", {
|
|
135
135
|
enumerable: true,
|
|
136
|
-
get: function () { return
|
|
136
|
+
get: function () { return chunkMVW7B234_cjs.createWorkflow; }
|
|
137
137
|
});
|
|
138
138
|
Object.defineProperty(exports, "CohereRelevanceScorer", {
|
|
139
139
|
enumerable: true,
|
|
140
|
-
get: function () { return
|
|
140
|
+
get: function () { return chunk5YZ3UOVW_cjs.CohereRelevanceScorer; }
|
|
141
141
|
});
|
|
142
142
|
Object.defineProperty(exports, "MastraAgentRelevanceScorer", {
|
|
143
143
|
enumerable: true,
|
|
144
|
-
get: function () { return
|
|
144
|
+
get: function () { return chunk5YZ3UOVW_cjs.MastraAgentRelevanceScorer; }
|
|
145
145
|
});
|
|
146
146
|
Object.defineProperty(exports, "createSimilarityPrompt", {
|
|
147
147
|
enumerable: true,
|
|
148
|
-
get: function () { return
|
|
148
|
+
get: function () { return chunk5YZ3UOVW_cjs.createSimilarityPrompt; }
|
|
149
149
|
});
|
|
150
150
|
Object.defineProperty(exports, "Metric", {
|
|
151
151
|
enumerable: true,
|
|
@@ -155,14 +155,14 @@ Object.defineProperty(exports, "evaluate", {
|
|
|
155
155
|
enumerable: true,
|
|
156
156
|
get: function () { return chunk3C6V2FEP_cjs.evaluate; }
|
|
157
157
|
});
|
|
158
|
-
Object.defineProperty(exports, "createMockModel", {
|
|
159
|
-
enumerable: true,
|
|
160
|
-
get: function () { return chunkMUNFCOMB_cjs.createMockModel; }
|
|
161
|
-
});
|
|
162
158
|
Object.defineProperty(exports, "Mastra", {
|
|
163
159
|
enumerable: true,
|
|
164
160
|
get: function () { return chunk2CK6E5UF_cjs.Mastra; }
|
|
165
161
|
});
|
|
162
|
+
Object.defineProperty(exports, "createMockModel", {
|
|
163
|
+
enumerable: true,
|
|
164
|
+
get: function () { return chunkMUNFCOMB_cjs.createMockModel; }
|
|
165
|
+
});
|
|
166
166
|
Object.defineProperty(exports, "MemoryProcessor", {
|
|
167
167
|
enumerable: true,
|
|
168
168
|
get: function () { return chunk4I6LG5EO_cjs.MemoryProcessor; }
|
package/dist/index.d.cts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { M as Metric } from './types-Bo1uigWx.cjs';
|
|
2
2
|
export { E as EvaluationResult, a as MetricResult, T as TestInfo } from './types-Bo1uigWx.cjs';
|
|
3
|
-
import { a9 as ToolAction, r as Agent$1, aa as AgentConfig, c as MastraStorage$1, ab as MastraMemory$1, ac as ToolExecutionContext, ad as Tool$1, ae as Step, af as Workflow$1, ag as WorkflowConfig } from './base-
|
|
4
|
-
export { ap as BaseStructuredOutputType, aG as Config, ak as CoreAssistantMessage, ai as CoreMessage, aj as CoreSystemMessage, aR as CoreTool, am as CoreToolMessage, al as CoreUserMessage, az as DefaultLLMStreamObjectOptions, ay as DefaultLLMStreamOptions, ax as DefaultLLMTextObjectOptions, aw as DefaultLLMTextOptions, b9 as DynamicMapping, ao as EmbedManyResult, an as EmbedResult, E as EvalRow, b2 as ExecuteFunction, b1 as ExecutionEngine, b0 as ExecutionGraph, bc as ExtractSchemaFromStep, bb as ExtractSchemaType, at as GenerateReturn, aS as InternalCoreTool, aD as LLMInnerStreamOptions, aE as LLMStreamObjectOptions, aC as LLMStreamOptions, aB as LLMTextObjectOptions, aA as LLMTextOptions, ah as LanguageModel, h as LegacyWorkflowRun, L as LegacyWorkflowRuns, a as Mastra, aH as MastraMessageV1, aK as MemoryConfig, aN as MemoryProcessor, aM as MemoryProcessorOpts, aJ as MessageResponse, aI as MessageType, av as OutputType, ba as PathsToStringProps, a$ as Run, aU as SerializedStep, aV as SerializedStepFlowEntry, aL as SharedMemoryConfig, b4 as StepFailure, aT as StepFlowEntry, b7 as StepResult, b6 as StepRunning, b3 as StepSuccess, b5 as StepSuspended, b8 as StepsRecord, S as StorageColumn, f as StorageGetMessagesArg, d as StorageThreadType, au as StreamReturn, as as StructuredOutput, ar as StructuredOutputArrayItem, aq as StructuredOutputType, bd as VariableReference, aQ as VercelTool, be as WatchEvent, a_ as WorkflowResult, g as WorkflowRun, bg as WorkflowRunState, W as WorkflowRuns, bf as ZodPathType, aX as cloneStep, aZ as cloneWorkflow, aF as createMockModel, aW as createStep, aP as createTool, aY as createWorkflow, aO as memoryDefaultOptions } from './base-
|
|
3
|
+
import { a9 as ToolAction, r as Agent$1, aa as AgentConfig, c as MastraStorage$1, ab as MastraMemory$1, ac as ToolExecutionContext, ad as Tool$1, ae as Step, af as Workflow$1, ag as WorkflowConfig } from './base-BVk16Aam.cjs';
|
|
4
|
+
export { ap as BaseStructuredOutputType, aG as Config, ak as CoreAssistantMessage, ai as CoreMessage, aj as CoreSystemMessage, aR as CoreTool, am as CoreToolMessage, al as CoreUserMessage, az as DefaultLLMStreamObjectOptions, ay as DefaultLLMStreamOptions, ax as DefaultLLMTextObjectOptions, aw as DefaultLLMTextOptions, b9 as DynamicMapping, ao as EmbedManyResult, an as EmbedResult, E as EvalRow, b2 as ExecuteFunction, b1 as ExecutionEngine, b0 as ExecutionGraph, bc as ExtractSchemaFromStep, bb as ExtractSchemaType, at as GenerateReturn, aS as InternalCoreTool, aD as LLMInnerStreamOptions, aE as LLMStreamObjectOptions, aC as LLMStreamOptions, aB as LLMTextObjectOptions, aA as LLMTextOptions, ah as LanguageModel, h as LegacyWorkflowRun, L as LegacyWorkflowRuns, a as Mastra, aH as MastraMessageV1, aK as MemoryConfig, aN as MemoryProcessor, aM as MemoryProcessorOpts, aJ as MessageResponse, aI as MessageType, av as OutputType, ba as PathsToStringProps, a$ as Run, aU as SerializedStep, aV as SerializedStepFlowEntry, aL as SharedMemoryConfig, b4 as StepFailure, aT as StepFlowEntry, b7 as StepResult, b6 as StepRunning, b3 as StepSuccess, b5 as StepSuspended, b8 as StepsRecord, S as StorageColumn, f as StorageGetMessagesArg, d as StorageThreadType, au as StreamReturn, as as StructuredOutput, ar as StructuredOutputArrayItem, aq as StructuredOutputType, bd as VariableReference, aQ as VercelTool, be as WatchEvent, a_ as WorkflowResult, g as WorkflowRun, bg as WorkflowRunState, W as WorkflowRuns, bf as ZodPathType, aX as cloneStep, aZ as cloneWorkflow, aF as createMockModel, aW as createStep, aP as createTool, aY as createWorkflow, aO as memoryDefaultOptions } from './base-BVk16Aam.cjs';
|
|
5
5
|
import { M as MastraBase$1 } from './base-aPYtPBT2.cjs';
|
|
6
6
|
export { O as OtelConfig, S as SamplingStrategy, T as Telemetry } from './base-aPYtPBT2.cjs';
|
|
7
7
|
import { R as RegisteredLogger } from './logger-EhZkzZOr.cjs';
|
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { M as Metric } from './types-Bo1uigWx.js';
|
|
2
2
|
export { E as EvaluationResult, a as MetricResult, T as TestInfo } from './types-Bo1uigWx.js';
|
|
3
|
-
import { a9 as ToolAction, r as Agent$1, aa as AgentConfig, c as MastraStorage$1, ab as MastraMemory$1, ac as ToolExecutionContext, ad as Tool$1, ae as Step, af as Workflow$1, ag as WorkflowConfig } from './base-
|
|
4
|
-
export { ap as BaseStructuredOutputType, aG as Config, ak as CoreAssistantMessage, ai as CoreMessage, aj as CoreSystemMessage, aR as CoreTool, am as CoreToolMessage, al as CoreUserMessage, az as DefaultLLMStreamObjectOptions, ay as DefaultLLMStreamOptions, ax as DefaultLLMTextObjectOptions, aw as DefaultLLMTextOptions, b9 as DynamicMapping, ao as EmbedManyResult, an as EmbedResult, E as EvalRow, b2 as ExecuteFunction, b1 as ExecutionEngine, b0 as ExecutionGraph, bc as ExtractSchemaFromStep, bb as ExtractSchemaType, at as GenerateReturn, aS as InternalCoreTool, aD as LLMInnerStreamOptions, aE as LLMStreamObjectOptions, aC as LLMStreamOptions, aB as LLMTextObjectOptions, aA as LLMTextOptions, ah as LanguageModel, h as LegacyWorkflowRun, L as LegacyWorkflowRuns, a as Mastra, aH as MastraMessageV1, aK as MemoryConfig, aN as MemoryProcessor, aM as MemoryProcessorOpts, aJ as MessageResponse, aI as MessageType, av as OutputType, ba as PathsToStringProps, a$ as Run, aU as SerializedStep, aV as SerializedStepFlowEntry, aL as SharedMemoryConfig, b4 as StepFailure, aT as StepFlowEntry, b7 as StepResult, b6 as StepRunning, b3 as StepSuccess, b5 as StepSuspended, b8 as StepsRecord, S as StorageColumn, f as StorageGetMessagesArg, d as StorageThreadType, au as StreamReturn, as as StructuredOutput, ar as StructuredOutputArrayItem, aq as StructuredOutputType, bd as VariableReference, aQ as VercelTool, be as WatchEvent, a_ as WorkflowResult, g as WorkflowRun, bg as WorkflowRunState, W as WorkflowRuns, bf as ZodPathType, aX as cloneStep, aZ as cloneWorkflow, aF as createMockModel, aW as createStep, aP as createTool, aY as createWorkflow, aO as memoryDefaultOptions } from './base-
|
|
3
|
+
import { a9 as ToolAction, r as Agent$1, aa as AgentConfig, c as MastraStorage$1, ab as MastraMemory$1, ac as ToolExecutionContext, ad as Tool$1, ae as Step, af as Workflow$1, ag as WorkflowConfig } from './base-BzojM-QS.js';
|
|
4
|
+
export { ap as BaseStructuredOutputType, aG as Config, ak as CoreAssistantMessage, ai as CoreMessage, aj as CoreSystemMessage, aR as CoreTool, am as CoreToolMessage, al as CoreUserMessage, az as DefaultLLMStreamObjectOptions, ay as DefaultLLMStreamOptions, ax as DefaultLLMTextObjectOptions, aw as DefaultLLMTextOptions, b9 as DynamicMapping, ao as EmbedManyResult, an as EmbedResult, E as EvalRow, b2 as ExecuteFunction, b1 as ExecutionEngine, b0 as ExecutionGraph, bc as ExtractSchemaFromStep, bb as ExtractSchemaType, at as GenerateReturn, aS as InternalCoreTool, aD as LLMInnerStreamOptions, aE as LLMStreamObjectOptions, aC as LLMStreamOptions, aB as LLMTextObjectOptions, aA as LLMTextOptions, ah as LanguageModel, h as LegacyWorkflowRun, L as LegacyWorkflowRuns, a as Mastra, aH as MastraMessageV1, aK as MemoryConfig, aN as MemoryProcessor, aM as MemoryProcessorOpts, aJ as MessageResponse, aI as MessageType, av as OutputType, ba as PathsToStringProps, a$ as Run, aU as SerializedStep, aV as SerializedStepFlowEntry, aL as SharedMemoryConfig, b4 as StepFailure, aT as StepFlowEntry, b7 as StepResult, b6 as StepRunning, b3 as StepSuccess, b5 as StepSuspended, b8 as StepsRecord, S as StorageColumn, f as StorageGetMessagesArg, d as StorageThreadType, au as StreamReturn, as as StructuredOutput, ar as StructuredOutputArrayItem, aq as StructuredOutputType, bd as VariableReference, aQ as VercelTool, be as WatchEvent, a_ as WorkflowResult, g as WorkflowRun, bg as WorkflowRunState, W as WorkflowRuns, bf as ZodPathType, aX as cloneStep, aZ as cloneWorkflow, aF as createMockModel, aW as createStep, aP as createTool, aY as createWorkflow, aO as memoryDefaultOptions } from './base-BzojM-QS.js';
|
|
5
5
|
import { M as MastraBase$1 } from './base-tc5kgDTD.js';
|
|
6
6
|
export { O as OtelConfig, S as SamplingStrategy, T as Telemetry } from './base-tc5kgDTD.js';
|
|
7
7
|
import { R as RegisteredLogger } from './logger-EhZkzZOr.js';
|