@mastra/core 0.8.3 → 0.8.4-alpha.1
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-CcL8HLr4.d.ts → base-BuCysLMv.d.ts} +1 -1
- package/dist/{base-CpNwPxOr.d.cts → base-C-0mAxUa.d.cts} +1 -1
- package/dist/{chunk-GAYETL4U.js → chunk-B7QAMVXA.js} +1 -1
- package/dist/{chunk-3DJ53HTG.js → chunk-H63UZAW4.js} +16 -6
- package/dist/{chunk-EGDZYQWH.cjs → chunk-KEETVZUV.cjs} +2 -2
- package/dist/{chunk-ZJFKIR3T.cjs → chunk-SEKWEA3B.cjs} +16 -6
- package/dist/eval/index.d.cts +1 -1
- package/dist/eval/index.d.ts +1 -1
- package/dist/index.cjs +28 -28
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +3 -3
- 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/memory/index.d.cts +1 -1
- package/dist/memory/index.d.ts +1 -1
- package/dist/network/index.cjs +11 -6
- package/dist/network/index.d.cts +1 -1
- package/dist/network/index.d.ts +1 -1
- package/dist/network/index.js +10 -5
- 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 +1 -1
- package/dist/server/index.d.ts +1 -1
- package/dist/storage/index.d.cts +1 -1
- package/dist/storage/index.d.ts +1 -1
- package/dist/storage/libsql/index.d.cts +1 -1
- package/dist/storage/libsql/index.d.ts +1 -1
- 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.d.cts +2 -2
- package/dist/voice/index.d.ts +2 -2
- package/dist/workflows/index.cjs +23 -23
- package/dist/workflows/index.d.cts +2 -2
- package/dist/workflows/index.d.ts +2 -2
- package/dist/workflows/index.js +1 -1
- package/package.json +1 -1
package/dist/agent/index.cjs
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkSEKWEA3B_cjs = require('../chunk-SEKWEA3B.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
Object.defineProperty(exports, "Agent", {
|
|
8
8
|
enumerable: true,
|
|
9
|
-
get: function () { return
|
|
9
|
+
get: function () { return chunkSEKWEA3B_cjs.Agent; }
|
|
10
10
|
});
|
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 { j as Agent, k as AgentConfig, aM as AgentGenerateOptions, aN as AgentStreamOptions, aG as MastraLanguageModel, aH as ToolsInput, aL as ToolsetsInput } from '../base-
|
|
4
|
+
export { j as Agent, k as AgentConfig, aM as AgentGenerateOptions, aN as AgentStreamOptions, aG as MastraLanguageModel, aH as ToolsInput, aL as ToolsetsInput } from '../base-C-0mAxUa.cjs';
|
|
5
5
|
import '../base-BihKcqDY.cjs';
|
|
6
6
|
import '../di/index.cjs';
|
|
7
7
|
import '../types-BtMyV38I.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 { j as Agent, k as AgentConfig, aM as AgentGenerateOptions, aN as AgentStreamOptions, aG as MastraLanguageModel, aH as ToolsInput, aL as ToolsetsInput } from '../base-
|
|
4
|
+
export { j as Agent, k as AgentConfig, aM as AgentGenerateOptions, aN as AgentStreamOptions, aG as MastraLanguageModel, aH as ToolsInput, aL as ToolsetsInput } from '../base-BuCysLMv.js';
|
|
5
5
|
import '../base-DT2poiVK.js';
|
|
6
6
|
import '../di/index.js';
|
|
7
7
|
import '../types-BtMyV38I.js';
|
package/dist/agent/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { Agent } from '../chunk-
|
|
1
|
+
export { Agent } from '../chunk-H63UZAW4.js';
|
|
@@ -140,7 +140,7 @@ declare class AgentNetwork extends MastraBase {
|
|
|
140
140
|
* @returns A formatted string with all agent interactions in chronological order
|
|
141
141
|
*/
|
|
142
142
|
getAgentInteractionSummary(): string;
|
|
143
|
-
executeAgent(agentId: string, input: CoreMessage$1[], includeHistory?: boolean): Promise<string>;
|
|
143
|
+
executeAgent(agentId: string, input: CoreMessage$1[], includeHistory?: boolean, container?: Container): Promise<string>;
|
|
144
144
|
getInstructions(): string;
|
|
145
145
|
getRoutingAgent(): Agent<string, ToolsInput, Record<string, Metric>>;
|
|
146
146
|
getAgents(): Agent<string, ToolsInput, Record<string, Metric>>[];
|
|
@@ -140,7 +140,7 @@ declare class AgentNetwork extends MastraBase {
|
|
|
140
140
|
* @returns A formatted string with all agent interactions in chronological order
|
|
141
141
|
*/
|
|
142
142
|
getAgentInteractionSummary(): string;
|
|
143
|
-
executeAgent(agentId: string, input: CoreMessage$1[], includeHistory?: boolean): Promise<string>;
|
|
143
|
+
executeAgent(agentId: string, input: CoreMessage$1[], includeHistory?: boolean, container?: Container): Promise<string>;
|
|
144
144
|
getInstructions(): string;
|
|
145
145
|
getRoutingAgent(): Agent<string, ToolsInput, Record<string, Metric>>;
|
|
146
146
|
getAgents(): Agent<string, ToolsInput, Record<string, Metric>>[];
|
|
@@ -875,10 +875,11 @@ var Agent = class extends (_a = MastraBase) {
|
|
|
875
875
|
};
|
|
876
876
|
}
|
|
877
877
|
const newMessages = ensureAllMessagesAreCoreMessages(userMessages);
|
|
878
|
-
const
|
|
878
|
+
const now = Date.now();
|
|
879
|
+
const messages = newMessages.map((u, index) => {
|
|
879
880
|
return {
|
|
880
881
|
id: this.getMemory()?.generateId(),
|
|
881
|
-
createdAt:
|
|
882
|
+
createdAt: new Date(now + index),
|
|
882
883
|
threadId,
|
|
883
884
|
...u,
|
|
884
885
|
content: u.content,
|
|
@@ -932,6 +933,7 @@ var Agent = class extends (_a = MastraBase) {
|
|
|
932
933
|
}) {
|
|
933
934
|
if (!response.messages) return [];
|
|
934
935
|
const messagesArray = Array.isArray(response.messages) ? response.messages : [response.messages];
|
|
936
|
+
const now = Date.now();
|
|
935
937
|
return this.sanitizeResponseMessages(messagesArray).map((message, index) => {
|
|
936
938
|
const messageId = randomUUID();
|
|
937
939
|
let toolCallIds;
|
|
@@ -965,7 +967,7 @@ var Agent = class extends (_a = MastraBase) {
|
|
|
965
967
|
resourceId,
|
|
966
968
|
role: message.role,
|
|
967
969
|
content: message.content,
|
|
968
|
-
createdAt: new Date(
|
|
970
|
+
createdAt: new Date(now + index),
|
|
969
971
|
// use Date.now() + index to make sure every message is atleast one millisecond apart
|
|
970
972
|
toolCallIds: toolCallIds?.length ? toolCallIds : void 0,
|
|
971
973
|
toolCallArgs: toolCallArgs?.length ? toolCallArgs : void 0,
|
|
@@ -1094,7 +1096,10 @@ var Agent = class extends (_a = MastraBase) {
|
|
|
1094
1096
|
memory,
|
|
1095
1097
|
runId,
|
|
1096
1098
|
threadId,
|
|
1097
|
-
resourceId
|
|
1099
|
+
resourceId,
|
|
1100
|
+
logger: this.logger,
|
|
1101
|
+
agentName: this.name,
|
|
1102
|
+
container
|
|
1098
1103
|
}, options) ?? void 0;
|
|
1099
1104
|
} catch (err) {
|
|
1100
1105
|
this.logger.error(`[Agent:${this.name}] - Failed memory tool execution`, {
|
|
@@ -1127,6 +1132,8 @@ var Agent = class extends (_a = MastraBase) {
|
|
|
1127
1132
|
threadId,
|
|
1128
1133
|
resourceId,
|
|
1129
1134
|
logger: this.logger,
|
|
1135
|
+
mastra: mastraProxy,
|
|
1136
|
+
memory,
|
|
1130
1137
|
agentName: this.name,
|
|
1131
1138
|
container
|
|
1132
1139
|
};
|
|
@@ -1151,6 +1158,8 @@ var Agent = class extends (_a = MastraBase) {
|
|
|
1151
1158
|
threadId,
|
|
1152
1159
|
resourceId,
|
|
1153
1160
|
logger: this.logger,
|
|
1161
|
+
mastra: mastraProxy,
|
|
1162
|
+
memory,
|
|
1154
1163
|
agentName: this.name,
|
|
1155
1164
|
container
|
|
1156
1165
|
};
|
|
@@ -1320,10 +1329,11 @@ var Agent = class extends (_a = MastraBase) {
|
|
|
1320
1329
|
try {
|
|
1321
1330
|
const userMessage = this.getMostRecentUserMessage(messages);
|
|
1322
1331
|
const newMessages = userMessage ? [userMessage] : messages;
|
|
1323
|
-
const
|
|
1332
|
+
const now = Date.now();
|
|
1333
|
+
const threadMessages = this.sanitizeResponseMessages(ensureAllMessagesAreCoreMessages(newMessages)).map((u, index) => {
|
|
1324
1334
|
return {
|
|
1325
1335
|
id: this.getMemory()?.generateId(),
|
|
1326
|
-
createdAt:
|
|
1336
|
+
createdAt: new Date(now + index),
|
|
1327
1337
|
threadId: thread.id,
|
|
1328
1338
|
resourceId,
|
|
1329
1339
|
...u,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkSEKWEA3B_cjs = require('./chunk-SEKWEA3B.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 chunkSEKWEA3B_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.
|
|
@@ -882,10 +882,11 @@ exports.Agent = class Agent extends (_a = chunkD63P5O4Q_cjs.MastraBase) {
|
|
|
882
882
|
};
|
|
883
883
|
}
|
|
884
884
|
const newMessages = chunkGNLZQNPE_cjs.ensureAllMessagesAreCoreMessages(userMessages);
|
|
885
|
-
const
|
|
885
|
+
const now = Date.now();
|
|
886
|
+
const messages = newMessages.map((u, index) => {
|
|
886
887
|
return {
|
|
887
888
|
id: this.getMemory()?.generateId(),
|
|
888
|
-
createdAt:
|
|
889
|
+
createdAt: new Date(now + index),
|
|
889
890
|
threadId,
|
|
890
891
|
...u,
|
|
891
892
|
content: u.content,
|
|
@@ -939,6 +940,7 @@ exports.Agent = class Agent extends (_a = chunkD63P5O4Q_cjs.MastraBase) {
|
|
|
939
940
|
}) {
|
|
940
941
|
if (!response.messages) return [];
|
|
941
942
|
const messagesArray = Array.isArray(response.messages) ? response.messages : [response.messages];
|
|
943
|
+
const now = Date.now();
|
|
942
944
|
return this.sanitizeResponseMessages(messagesArray).map((message, index) => {
|
|
943
945
|
const messageId = crypto$1.randomUUID();
|
|
944
946
|
let toolCallIds;
|
|
@@ -972,7 +974,7 @@ exports.Agent = class Agent extends (_a = chunkD63P5O4Q_cjs.MastraBase) {
|
|
|
972
974
|
resourceId,
|
|
973
975
|
role: message.role,
|
|
974
976
|
content: message.content,
|
|
975
|
-
createdAt: new Date(
|
|
977
|
+
createdAt: new Date(now + index),
|
|
976
978
|
// use Date.now() + index to make sure every message is atleast one millisecond apart
|
|
977
979
|
toolCallIds: toolCallIds?.length ? toolCallIds : void 0,
|
|
978
980
|
toolCallArgs: toolCallArgs?.length ? toolCallArgs : void 0,
|
|
@@ -1101,7 +1103,10 @@ exports.Agent = class Agent extends (_a = chunkD63P5O4Q_cjs.MastraBase) {
|
|
|
1101
1103
|
memory,
|
|
1102
1104
|
runId,
|
|
1103
1105
|
threadId,
|
|
1104
|
-
resourceId
|
|
1106
|
+
resourceId,
|
|
1107
|
+
logger: this.logger,
|
|
1108
|
+
agentName: this.name,
|
|
1109
|
+
container
|
|
1105
1110
|
}, options) ?? void 0;
|
|
1106
1111
|
} catch (err) {
|
|
1107
1112
|
this.logger.error(`[Agent:${this.name}] - Failed memory tool execution`, {
|
|
@@ -1134,6 +1139,8 @@ exports.Agent = class Agent extends (_a = chunkD63P5O4Q_cjs.MastraBase) {
|
|
|
1134
1139
|
threadId,
|
|
1135
1140
|
resourceId,
|
|
1136
1141
|
logger: this.logger,
|
|
1142
|
+
mastra: mastraProxy,
|
|
1143
|
+
memory,
|
|
1137
1144
|
agentName: this.name,
|
|
1138
1145
|
container
|
|
1139
1146
|
};
|
|
@@ -1158,6 +1165,8 @@ exports.Agent = class Agent extends (_a = chunkD63P5O4Q_cjs.MastraBase) {
|
|
|
1158
1165
|
threadId,
|
|
1159
1166
|
resourceId,
|
|
1160
1167
|
logger: this.logger,
|
|
1168
|
+
mastra: mastraProxy,
|
|
1169
|
+
memory,
|
|
1161
1170
|
agentName: this.name,
|
|
1162
1171
|
container
|
|
1163
1172
|
};
|
|
@@ -1327,10 +1336,11 @@ exports.Agent = class Agent extends (_a = chunkD63P5O4Q_cjs.MastraBase) {
|
|
|
1327
1336
|
try {
|
|
1328
1337
|
const userMessage = this.getMostRecentUserMessage(messages);
|
|
1329
1338
|
const newMessages = userMessage ? [userMessage] : messages;
|
|
1330
|
-
const
|
|
1339
|
+
const now = Date.now();
|
|
1340
|
+
const threadMessages = this.sanitizeResponseMessages(chunkGNLZQNPE_cjs.ensureAllMessagesAreCoreMessages(newMessages)).map((u, index) => {
|
|
1331
1341
|
return {
|
|
1332
1342
|
id: this.getMemory()?.generateId(),
|
|
1333
|
-
createdAt:
|
|
1343
|
+
createdAt: new Date(now + index),
|
|
1334
1344
|
threadId: thread.id,
|
|
1335
1345
|
resourceId,
|
|
1336
1346
|
...u,
|
package/dist/eval/index.d.cts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { a as Metric, T as TestInfo, E as EvaluationResult } from '../types-BtMyV38I.cjs';
|
|
2
2
|
export { M as MetricResult } from '../types-BtMyV38I.cjs';
|
|
3
|
-
import { j as Agent } from '../base-
|
|
3
|
+
import { j as Agent } from '../base-C-0mAxUa.cjs';
|
|
4
4
|
import 'ai';
|
|
5
5
|
import '../base-BihKcqDY.cjs';
|
|
6
6
|
import '@opentelemetry/api';
|
package/dist/eval/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { a as Metric, T as TestInfo, E as EvaluationResult } from '../types-BtMyV38I.js';
|
|
2
2
|
export { M as MetricResult } from '../types-BtMyV38I.js';
|
|
3
|
-
import { j as Agent } from '../base-
|
|
3
|
+
import { j as Agent } from '../base-BuCysLMv.js';
|
|
4
4
|
import 'ai';
|
|
5
5
|
import '../base-DT2poiVK.js';
|
|
6
6
|
import '@opentelemetry/api';
|
package/dist/index.cjs
CHANGED
|
@@ -6,8 +6,8 @@ var chunkFGPCJCMB_cjs = require('./chunk-FGPCJCMB.cjs');
|
|
|
6
6
|
var chunkX7MIXRDA_cjs = require('./chunk-X7MIXRDA.cjs');
|
|
7
7
|
var chunk7JBINHJX_cjs = require('./chunk-7JBINHJX.cjs');
|
|
8
8
|
var chunkJJ5OT2JE_cjs = require('./chunk-JJ5OT2JE.cjs');
|
|
9
|
-
var
|
|
10
|
-
var
|
|
9
|
+
var chunkKEETVZUV_cjs = require('./chunk-KEETVZUV.cjs');
|
|
10
|
+
var chunkSEKWEA3B_cjs = require('./chunk-SEKWEA3B.cjs');
|
|
11
11
|
var chunk4VGR4D7S_cjs = require('./chunk-4VGR4D7S.cjs');
|
|
12
12
|
var chunkGNLZQNPE_cjs = require('./chunk-GNLZQNPE.cjs');
|
|
13
13
|
var chunkRZCYBC7D_cjs = require('./chunk-RZCYBC7D.cjs');
|
|
@@ -17,7 +17,7 @@ var chunk3C6V2FEP_cjs = require('./chunk-3C6V2FEP.cjs');
|
|
|
17
17
|
var chunkST5RMVLG_cjs = require('./chunk-ST5RMVLG.cjs');
|
|
18
18
|
|
|
19
19
|
// src/agent/index.warning.ts
|
|
20
|
-
var Agent2 = class extends
|
|
20
|
+
var Agent2 = class extends chunkSEKWEA3B_cjs.Agent {
|
|
21
21
|
constructor(config) {
|
|
22
22
|
super(config);
|
|
23
23
|
this.logger.warn('Please import "Agent from "@mastra/core/agent" instead of "@mastra/core"');
|
|
@@ -105,7 +105,7 @@ var MastraVector2 = class extends chunk7JBINHJX_cjs.MastraVector {
|
|
|
105
105
|
};
|
|
106
106
|
|
|
107
107
|
// src/workflows/workflow.warning.ts
|
|
108
|
-
var Workflow2 = class extends
|
|
108
|
+
var Workflow2 = class extends chunkSEKWEA3B_cjs.Workflow {
|
|
109
109
|
constructor(args) {
|
|
110
110
|
super(args);
|
|
111
111
|
this.logger.warn('Please import "Workflow" from "@mastra/core/workflows" instead of "@mastra/core"');
|
|
@@ -122,99 +122,99 @@ Object.defineProperty(exports, "MemoryProcessor", {
|
|
|
122
122
|
});
|
|
123
123
|
Object.defineProperty(exports, "CohereRelevanceScorer", {
|
|
124
124
|
enumerable: true,
|
|
125
|
-
get: function () { return
|
|
125
|
+
get: function () { return chunkKEETVZUV_cjs.CohereRelevanceScorer; }
|
|
126
126
|
});
|
|
127
127
|
Object.defineProperty(exports, "MastraAgentRelevanceScorer", {
|
|
128
128
|
enumerable: true,
|
|
129
|
-
get: function () { return
|
|
129
|
+
get: function () { return chunkKEETVZUV_cjs.MastraAgentRelevanceScorer; }
|
|
130
130
|
});
|
|
131
131
|
Object.defineProperty(exports, "createSimilarityPrompt", {
|
|
132
132
|
enumerable: true,
|
|
133
|
-
get: function () { return
|
|
133
|
+
get: function () { return chunkKEETVZUV_cjs.createSimilarityPrompt; }
|
|
134
134
|
});
|
|
135
135
|
Object.defineProperty(exports, "Step", {
|
|
136
136
|
enumerable: true,
|
|
137
|
-
get: function () { return
|
|
137
|
+
get: function () { return chunkSEKWEA3B_cjs.Step; }
|
|
138
138
|
});
|
|
139
139
|
Object.defineProperty(exports, "WhenConditionReturnValue", {
|
|
140
140
|
enumerable: true,
|
|
141
|
-
get: function () { return
|
|
141
|
+
get: function () { return chunkSEKWEA3B_cjs.WhenConditionReturnValue; }
|
|
142
142
|
});
|
|
143
143
|
Object.defineProperty(exports, "agentToStep", {
|
|
144
144
|
enumerable: true,
|
|
145
|
-
get: function () { return
|
|
145
|
+
get: function () { return chunkSEKWEA3B_cjs.agentToStep; }
|
|
146
146
|
});
|
|
147
147
|
Object.defineProperty(exports, "createStep", {
|
|
148
148
|
enumerable: true,
|
|
149
|
-
get: function () { return
|
|
149
|
+
get: function () { return chunkSEKWEA3B_cjs.createStep; }
|
|
150
150
|
});
|
|
151
151
|
Object.defineProperty(exports, "getActivePathsAndStatus", {
|
|
152
152
|
enumerable: true,
|
|
153
|
-
get: function () { return
|
|
153
|
+
get: function () { return chunkSEKWEA3B_cjs.getActivePathsAndStatus; }
|
|
154
154
|
});
|
|
155
155
|
Object.defineProperty(exports, "getResultActivePaths", {
|
|
156
156
|
enumerable: true,
|
|
157
|
-
get: function () { return
|
|
157
|
+
get: function () { return chunkSEKWEA3B_cjs.getResultActivePaths; }
|
|
158
158
|
});
|
|
159
159
|
Object.defineProperty(exports, "getStepResult", {
|
|
160
160
|
enumerable: true,
|
|
161
|
-
get: function () { return
|
|
161
|
+
get: function () { return chunkSEKWEA3B_cjs.getStepResult; }
|
|
162
162
|
});
|
|
163
163
|
Object.defineProperty(exports, "getSuspendedPaths", {
|
|
164
164
|
enumerable: true,
|
|
165
|
-
get: function () { return
|
|
165
|
+
get: function () { return chunkSEKWEA3B_cjs.getSuspendedPaths; }
|
|
166
166
|
});
|
|
167
167
|
Object.defineProperty(exports, "isAgent", {
|
|
168
168
|
enumerable: true,
|
|
169
|
-
get: function () { return
|
|
169
|
+
get: function () { return chunkSEKWEA3B_cjs.isAgent; }
|
|
170
170
|
});
|
|
171
171
|
Object.defineProperty(exports, "isConditionalKey", {
|
|
172
172
|
enumerable: true,
|
|
173
|
-
get: function () { return
|
|
173
|
+
get: function () { return chunkSEKWEA3B_cjs.isConditionalKey; }
|
|
174
174
|
});
|
|
175
175
|
Object.defineProperty(exports, "isErrorEvent", {
|
|
176
176
|
enumerable: true,
|
|
177
|
-
get: function () { return
|
|
177
|
+
get: function () { return chunkSEKWEA3B_cjs.isErrorEvent; }
|
|
178
178
|
});
|
|
179
179
|
Object.defineProperty(exports, "isFinalState", {
|
|
180
180
|
enumerable: true,
|
|
181
|
-
get: function () { return
|
|
181
|
+
get: function () { return chunkSEKWEA3B_cjs.isFinalState; }
|
|
182
182
|
});
|
|
183
183
|
Object.defineProperty(exports, "isLimboState", {
|
|
184
184
|
enumerable: true,
|
|
185
|
-
get: function () { return
|
|
185
|
+
get: function () { return chunkSEKWEA3B_cjs.isLimboState; }
|
|
186
186
|
});
|
|
187
187
|
Object.defineProperty(exports, "isTransitionEvent", {
|
|
188
188
|
enumerable: true,
|
|
189
|
-
get: function () { return
|
|
189
|
+
get: function () { return chunkSEKWEA3B_cjs.isTransitionEvent; }
|
|
190
190
|
});
|
|
191
191
|
Object.defineProperty(exports, "isVariableReference", {
|
|
192
192
|
enumerable: true,
|
|
193
|
-
get: function () { return
|
|
193
|
+
get: function () { return chunkSEKWEA3B_cjs.isVariableReference; }
|
|
194
194
|
});
|
|
195
195
|
Object.defineProperty(exports, "isWorkflow", {
|
|
196
196
|
enumerable: true,
|
|
197
|
-
get: function () { return
|
|
197
|
+
get: function () { return chunkSEKWEA3B_cjs.isWorkflow; }
|
|
198
198
|
});
|
|
199
199
|
Object.defineProperty(exports, "mergeChildValue", {
|
|
200
200
|
enumerable: true,
|
|
201
|
-
get: function () { return
|
|
201
|
+
get: function () { return chunkSEKWEA3B_cjs.mergeChildValue; }
|
|
202
202
|
});
|
|
203
203
|
Object.defineProperty(exports, "recursivelyCheckForFinalState", {
|
|
204
204
|
enumerable: true,
|
|
205
|
-
get: function () { return
|
|
205
|
+
get: function () { return chunkSEKWEA3B_cjs.recursivelyCheckForFinalState; }
|
|
206
206
|
});
|
|
207
207
|
Object.defineProperty(exports, "resolveVariables", {
|
|
208
208
|
enumerable: true,
|
|
209
|
-
get: function () { return
|
|
209
|
+
get: function () { return chunkSEKWEA3B_cjs.resolveVariables; }
|
|
210
210
|
});
|
|
211
211
|
Object.defineProperty(exports, "updateStepInHierarchy", {
|
|
212
212
|
enumerable: true,
|
|
213
|
-
get: function () { return
|
|
213
|
+
get: function () { return chunkSEKWEA3B_cjs.updateStepInHierarchy; }
|
|
214
214
|
});
|
|
215
215
|
Object.defineProperty(exports, "workflowToStep", {
|
|
216
216
|
enumerable: true,
|
|
217
|
-
get: function () { return
|
|
217
|
+
get: function () { return chunkSEKWEA3B_cjs.workflowToStep; }
|
|
218
218
|
});
|
|
219
219
|
Object.defineProperty(exports, "InstrumentClass", {
|
|
220
220
|
enumerable: true,
|
package/dist/index.d.cts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { a as Metric } from './types-BtMyV38I.cjs';
|
|
2
2
|
export { E as EvaluationResult, M as MetricResult, T as TestInfo } from './types-BtMyV38I.cjs';
|
|
3
|
-
import { i as ToolAction, j as Agent$1, k as AgentConfig, e as MastraStorage$1, l as MastraMemory$1, m as ToolExecutionContext, n as Tool$1, o as Step, p as Workflow$1, q as WorkflowOptions } from './base-
|
|
4
|
-
export { ae as ActionContext, ad as BaseCondition, B as BaseStructuredOutputType, Z as Config, v as CoreAssistantMessage, t as CoreMessage, u as CoreSystemMessage, a5 as CoreTool, x as CoreToolMessage, w as CoreUserMessage, P as DefaultLLMStreamObjectOptions, N as DefaultLLMStreamOptions, K as DefaultLLMTextObjectOptions, J as DefaultLLMTextOptions, as as DependencyCheckOutput, z as EmbedManyResult, y as EmbedResult, E as EvalRow, az as ExtractSchemaFromStep, aC as ExtractSchemaType, aA as ExtractStepResult, H as GenerateReturn, X as LLMInnerStreamOptions, Y as LLMStreamObjectOptions, U as LLMStreamOptions, R as LLMTextObjectOptions, Q as LLMTextOptions, L as LanguageModel, a as Mastra, $ as MemoryConfig, a2 as MemoryProcessor, a1 as MemoryProcessorOpts, _ as MessageResponse, g as MessageType, O as OutputType, aD as PathsToStringProps, ap as ResolverFunctionInput, aq as ResolverFunctionOutput, ab as RetryConfig, a0 as SharedMemoryConfig, a7 as StepAction, ah as StepCondition, ai as StepConfig, ag as StepDef, a6 as StepExecutionContext, aa as StepGraph, ay as StepId, aB as StepInputType, a9 as StepNode, at as StepResolverOutput, aj as StepResult, a8 as StepVariableType, ak as StepsRecord, S as StorageColumn, h as StorageGetMessagesArg, f as StorageThreadType, I as StreamReturn, G as StructuredOutput, F as StructuredOutputArrayItem, D as StructuredOutputType, ar as SubscriberFunctionOutput, ac as VariableReference, a4 as VercelTool, af as WhenConditionReturnValue, av as WorkflowActionParams, aw as WorkflowActions, au as WorkflowActors, am as WorkflowContext, ao as WorkflowEvent, an as WorkflowLogMessage, aE as WorkflowResumeResult, r as WorkflowRow, al as WorkflowRunResult, W as WorkflowRunState, s as WorkflowRuns, ax as WorkflowState, aF as createStep, a3 as createTool } from './base-
|
|
3
|
+
import { i as ToolAction, j as Agent$1, k as AgentConfig, e as MastraStorage$1, l as MastraMemory$1, m as ToolExecutionContext, n as Tool$1, o as Step, p as Workflow$1, q as WorkflowOptions } from './base-C-0mAxUa.cjs';
|
|
4
|
+
export { ae as ActionContext, ad as BaseCondition, B as BaseStructuredOutputType, Z as Config, v as CoreAssistantMessage, t as CoreMessage, u as CoreSystemMessage, a5 as CoreTool, x as CoreToolMessage, w as CoreUserMessage, P as DefaultLLMStreamObjectOptions, N as DefaultLLMStreamOptions, K as DefaultLLMTextObjectOptions, J as DefaultLLMTextOptions, as as DependencyCheckOutput, z as EmbedManyResult, y as EmbedResult, E as EvalRow, az as ExtractSchemaFromStep, aC as ExtractSchemaType, aA as ExtractStepResult, H as GenerateReturn, X as LLMInnerStreamOptions, Y as LLMStreamObjectOptions, U as LLMStreamOptions, R as LLMTextObjectOptions, Q as LLMTextOptions, L as LanguageModel, a as Mastra, $ as MemoryConfig, a2 as MemoryProcessor, a1 as MemoryProcessorOpts, _ as MessageResponse, g as MessageType, O as OutputType, aD as PathsToStringProps, ap as ResolverFunctionInput, aq as ResolverFunctionOutput, ab as RetryConfig, a0 as SharedMemoryConfig, a7 as StepAction, ah as StepCondition, ai as StepConfig, ag as StepDef, a6 as StepExecutionContext, aa as StepGraph, ay as StepId, aB as StepInputType, a9 as StepNode, at as StepResolverOutput, aj as StepResult, a8 as StepVariableType, ak as StepsRecord, S as StorageColumn, h as StorageGetMessagesArg, f as StorageThreadType, I as StreamReturn, G as StructuredOutput, F as StructuredOutputArrayItem, D as StructuredOutputType, ar as SubscriberFunctionOutput, ac as VariableReference, a4 as VercelTool, af as WhenConditionReturnValue, av as WorkflowActionParams, aw as WorkflowActions, au as WorkflowActors, am as WorkflowContext, ao as WorkflowEvent, an as WorkflowLogMessage, aE as WorkflowResumeResult, r as WorkflowRow, al as WorkflowRunResult, W as WorkflowRunState, s as WorkflowRuns, ax as WorkflowState, aF as createStep, a3 as createTool } from './base-C-0mAxUa.cjs';
|
|
5
5
|
import { M as MastraBase$1 } from './base-BihKcqDY.cjs';
|
|
6
6
|
export { O as OtelConfig, S as SamplingStrategy, T as Telemetry } from './base-BihKcqDY.cjs';
|
|
7
7
|
import { R as RegisteredLogger, a as LogLevel, T as TransportMap, L as Logger } from './index-CquI0inB.cjs';
|
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { a as Metric } from './types-BtMyV38I.js';
|
|
2
2
|
export { E as EvaluationResult, M as MetricResult, T as TestInfo } from './types-BtMyV38I.js';
|
|
3
|
-
import { i as ToolAction, j as Agent$1, k as AgentConfig, e as MastraStorage$1, l as MastraMemory$1, m as ToolExecutionContext, n as Tool$1, o as Step, p as Workflow$1, q as WorkflowOptions } from './base-
|
|
4
|
-
export { ae as ActionContext, ad as BaseCondition, B as BaseStructuredOutputType, Z as Config, v as CoreAssistantMessage, t as CoreMessage, u as CoreSystemMessage, a5 as CoreTool, x as CoreToolMessage, w as CoreUserMessage, P as DefaultLLMStreamObjectOptions, N as DefaultLLMStreamOptions, K as DefaultLLMTextObjectOptions, J as DefaultLLMTextOptions, as as DependencyCheckOutput, z as EmbedManyResult, y as EmbedResult, E as EvalRow, az as ExtractSchemaFromStep, aC as ExtractSchemaType, aA as ExtractStepResult, H as GenerateReturn, X as LLMInnerStreamOptions, Y as LLMStreamObjectOptions, U as LLMStreamOptions, R as LLMTextObjectOptions, Q as LLMTextOptions, L as LanguageModel, a as Mastra, $ as MemoryConfig, a2 as MemoryProcessor, a1 as MemoryProcessorOpts, _ as MessageResponse, g as MessageType, O as OutputType, aD as PathsToStringProps, ap as ResolverFunctionInput, aq as ResolverFunctionOutput, ab as RetryConfig, a0 as SharedMemoryConfig, a7 as StepAction, ah as StepCondition, ai as StepConfig, ag as StepDef, a6 as StepExecutionContext, aa as StepGraph, ay as StepId, aB as StepInputType, a9 as StepNode, at as StepResolverOutput, aj as StepResult, a8 as StepVariableType, ak as StepsRecord, S as StorageColumn, h as StorageGetMessagesArg, f as StorageThreadType, I as StreamReturn, G as StructuredOutput, F as StructuredOutputArrayItem, D as StructuredOutputType, ar as SubscriberFunctionOutput, ac as VariableReference, a4 as VercelTool, af as WhenConditionReturnValue, av as WorkflowActionParams, aw as WorkflowActions, au as WorkflowActors, am as WorkflowContext, ao as WorkflowEvent, an as WorkflowLogMessage, aE as WorkflowResumeResult, r as WorkflowRow, al as WorkflowRunResult, W as WorkflowRunState, s as WorkflowRuns, ax as WorkflowState, aF as createStep, a3 as createTool } from './base-
|
|
3
|
+
import { i as ToolAction, j as Agent$1, k as AgentConfig, e as MastraStorage$1, l as MastraMemory$1, m as ToolExecutionContext, n as Tool$1, o as Step, p as Workflow$1, q as WorkflowOptions } from './base-BuCysLMv.js';
|
|
4
|
+
export { ae as ActionContext, ad as BaseCondition, B as BaseStructuredOutputType, Z as Config, v as CoreAssistantMessage, t as CoreMessage, u as CoreSystemMessage, a5 as CoreTool, x as CoreToolMessage, w as CoreUserMessage, P as DefaultLLMStreamObjectOptions, N as DefaultLLMStreamOptions, K as DefaultLLMTextObjectOptions, J as DefaultLLMTextOptions, as as DependencyCheckOutput, z as EmbedManyResult, y as EmbedResult, E as EvalRow, az as ExtractSchemaFromStep, aC as ExtractSchemaType, aA as ExtractStepResult, H as GenerateReturn, X as LLMInnerStreamOptions, Y as LLMStreamObjectOptions, U as LLMStreamOptions, R as LLMTextObjectOptions, Q as LLMTextOptions, L as LanguageModel, a as Mastra, $ as MemoryConfig, a2 as MemoryProcessor, a1 as MemoryProcessorOpts, _ as MessageResponse, g as MessageType, O as OutputType, aD as PathsToStringProps, ap as ResolverFunctionInput, aq as ResolverFunctionOutput, ab as RetryConfig, a0 as SharedMemoryConfig, a7 as StepAction, ah as StepCondition, ai as StepConfig, ag as StepDef, a6 as StepExecutionContext, aa as StepGraph, ay as StepId, aB as StepInputType, a9 as StepNode, at as StepResolverOutput, aj as StepResult, a8 as StepVariableType, ak as StepsRecord, S as StorageColumn, h as StorageGetMessagesArg, f as StorageThreadType, I as StreamReturn, G as StructuredOutput, F as StructuredOutputArrayItem, D as StructuredOutputType, ar as SubscriberFunctionOutput, ac as VariableReference, a4 as VercelTool, af as WhenConditionReturnValue, av as WorkflowActionParams, aw as WorkflowActions, au as WorkflowActors, am as WorkflowContext, ao as WorkflowEvent, an as WorkflowLogMessage, aE as WorkflowResumeResult, r as WorkflowRow, al as WorkflowRunResult, W as WorkflowRunState, s as WorkflowRuns, ax as WorkflowState, aF as createStep, a3 as createTool } from './base-BuCysLMv.js';
|
|
5
5
|
import { M as MastraBase$1 } from './base-DT2poiVK.js';
|
|
6
6
|
export { O as OtelConfig, S as SamplingStrategy, T as Telemetry } from './base-DT2poiVK.js';
|
|
7
7
|
import { R as RegisteredLogger, a as LogLevel, T as TransportMap, L as Logger } from './index-CquI0inB.js';
|
package/dist/index.js
CHANGED
|
@@ -5,9 +5,9 @@ import { MastraMemory } from './chunk-QBQ3CW2R.js';
|
|
|
5
5
|
export { MemoryProcessor } from './chunk-QBQ3CW2R.js';
|
|
6
6
|
import { MastraVector } from './chunk-FY57LEMC.js';
|
|
7
7
|
import { MastraStorage } from './chunk-ZKVHS4RY.js';
|
|
8
|
-
export { CohereRelevanceScorer, MastraAgentRelevanceScorer, createSimilarityPrompt } from './chunk-
|
|
9
|
-
import { Agent, Workflow } from './chunk-
|
|
10
|
-
export { Step, WhenConditionReturnValue, agentToStep, createStep, getActivePathsAndStatus, getResultActivePaths, getStepResult, getSuspendedPaths, isAgent, isConditionalKey, isErrorEvent, isFinalState, isLimboState, isTransitionEvent, isVariableReference, isWorkflow, mergeChildValue, recursivelyCheckForFinalState, resolveVariables, updateStepInHierarchy, workflowToStep } from './chunk-
|
|
8
|
+
export { CohereRelevanceScorer, MastraAgentRelevanceScorer, createSimilarityPrompt } from './chunk-B7QAMVXA.js';
|
|
9
|
+
import { Agent, Workflow } from './chunk-H63UZAW4.js';
|
|
10
|
+
export { Step, WhenConditionReturnValue, agentToStep, createStep, getActivePathsAndStatus, getResultActivePaths, getStepResult, getSuspendedPaths, isAgent, isConditionalKey, isErrorEvent, isFinalState, isLimboState, isTransitionEvent, isVariableReference, isWorkflow, mergeChildValue, recursivelyCheckForFinalState, resolveVariables, updateStepInHierarchy, workflowToStep } from './chunk-H63UZAW4.js';
|
|
11
11
|
export { InstrumentClass, OTLPTraceExporter as OTLPStorageExporter, Telemetry, hasActiveTelemetry, withSpan } from './chunk-RT3BSWWR.js';
|
|
12
12
|
import { Tool } from './chunk-4EEVN2IP.js';
|
|
13
13
|
export { checkEvalStorageFields, createMastraProxy, createTool, deepMerge, delay, ensureAllMessagesAreCoreMessages, ensureToolProperties, isVercelTool, jsonSchemaPropertiesToTSTypes, jsonSchemaToModel, makeCoreTool, maskStreamTags, resolveSerializedZodOutput } from './chunk-4EEVN2IP.js';
|
package/dist/llm/index.d.cts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import 'ai';
|
|
2
2
|
import 'json-schema';
|
|
3
3
|
import 'zod';
|
|
4
|
-
export { B as BaseStructuredOutputType, v as CoreAssistantMessage, t as CoreMessage, u as CoreSystemMessage, x as CoreToolMessage, w as CoreUserMessage, P as DefaultLLMStreamObjectOptions, N as DefaultLLMStreamOptions, K as DefaultLLMTextObjectOptions, J as DefaultLLMTextOptions, z as EmbedManyResult, y as EmbedResult, H as GenerateReturn, X as LLMInnerStreamOptions, Y as LLMStreamObjectOptions, U as LLMStreamOptions, R as LLMTextObjectOptions, Q as LLMTextOptions, L as LanguageModel, O as OutputType, I as StreamReturn, G as StructuredOutput, F as StructuredOutputArrayItem, D as StructuredOutputType } from '../base-
|
|
4
|
+
export { B as BaseStructuredOutputType, v as CoreAssistantMessage, t as CoreMessage, u as CoreSystemMessage, x as CoreToolMessage, w as CoreUserMessage, P as DefaultLLMStreamObjectOptions, N as DefaultLLMStreamOptions, K as DefaultLLMTextObjectOptions, J as DefaultLLMTextOptions, z as EmbedManyResult, y as EmbedResult, H as GenerateReturn, X as LLMInnerStreamOptions, Y as LLMStreamObjectOptions, U as LLMStreamOptions, R as LLMTextObjectOptions, Q as LLMTextOptions, L as LanguageModel, O as OutputType, I as StreamReturn, G as StructuredOutput, F as StructuredOutputArrayItem, D as StructuredOutputType } from '../base-C-0mAxUa.cjs';
|
|
5
5
|
import '../di/index.cjs';
|
|
6
6
|
import '../index-CquI0inB.cjs';
|
|
7
7
|
import '../base-BihKcqDY.cjs';
|
package/dist/llm/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import 'ai';
|
|
2
2
|
import 'json-schema';
|
|
3
3
|
import 'zod';
|
|
4
|
-
export { B as BaseStructuredOutputType, v as CoreAssistantMessage, t as CoreMessage, u as CoreSystemMessage, x as CoreToolMessage, w as CoreUserMessage, P as DefaultLLMStreamObjectOptions, N as DefaultLLMStreamOptions, K as DefaultLLMTextObjectOptions, J as DefaultLLMTextOptions, z as EmbedManyResult, y as EmbedResult, H as GenerateReturn, X as LLMInnerStreamOptions, Y as LLMStreamObjectOptions, U as LLMStreamOptions, R as LLMTextObjectOptions, Q as LLMTextOptions, L as LanguageModel, O as OutputType, I as StreamReturn, G as StructuredOutput, F as StructuredOutputArrayItem, D as StructuredOutputType } from '../base-
|
|
4
|
+
export { B as BaseStructuredOutputType, v as CoreAssistantMessage, t as CoreMessage, u as CoreSystemMessage, x as CoreToolMessage, w as CoreUserMessage, P as DefaultLLMStreamObjectOptions, N as DefaultLLMStreamOptions, K as DefaultLLMTextObjectOptions, J as DefaultLLMTextOptions, z as EmbedManyResult, y as EmbedResult, H as GenerateReturn, X as LLMInnerStreamOptions, Y as LLMStreamObjectOptions, U as LLMStreamOptions, R as LLMTextObjectOptions, Q as LLMTextOptions, L as LanguageModel, O as OutputType, I as StreamReturn, G as StructuredOutput, F as StructuredOutputArrayItem, D as StructuredOutputType } from '../base-BuCysLMv.js';
|
|
5
5
|
import '../di/index.js';
|
|
6
6
|
import '../index-CquI0inB.js';
|
|
7
7
|
import '../base-DT2poiVK.js';
|
package/dist/mastra/index.d.cts
CHANGED
package/dist/mastra/index.d.ts
CHANGED
package/dist/memory/index.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { l as MastraMemory, $ as MemoryConfig, a2 as MemoryProcessor, a1 as MemoryProcessorOpts, _ as MessageResponse, g as MessageType, a0 as SharedMemoryConfig, f as StorageThreadType } from '../base-
|
|
1
|
+
export { l as MastraMemory, $ as MemoryConfig, a2 as MemoryProcessor, a1 as MemoryProcessorOpts, _ as MessageResponse, g as MessageType, a0 as SharedMemoryConfig, f as StorageThreadType } from '../base-C-0mAxUa.cjs';
|
|
2
2
|
export { Message as AiMessageType } from 'ai';
|
|
3
3
|
import '../base-BihKcqDY.cjs';
|
|
4
4
|
import '@opentelemetry/api';
|
package/dist/memory/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { l as MastraMemory, $ as MemoryConfig, a2 as MemoryProcessor, a1 as MemoryProcessorOpts, _ as MessageResponse, g as MessageType, a0 as SharedMemoryConfig, f as StorageThreadType } from '../base-
|
|
1
|
+
export { l as MastraMemory, $ as MemoryConfig, a2 as MemoryProcessor, a1 as MemoryProcessorOpts, _ as MessageResponse, g as MessageType, a0 as SharedMemoryConfig, f as StorageThreadType } from '../base-BuCysLMv.js';
|
|
2
2
|
export { Message as AiMessageType } from 'ai';
|
|
3
3
|
import '../base-DT2poiVK.js';
|
|
4
4
|
import '@opentelemetry/api';
|
package/dist/network/index.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkSEKWEA3B_cjs = require('../chunk-SEKWEA3B.cjs');
|
|
4
4
|
var chunkGNLZQNPE_cjs = require('../chunk-GNLZQNPE.cjs');
|
|
5
5
|
var chunkD63P5O4Q_cjs = require('../chunk-D63P5O4Q.cjs');
|
|
6
6
|
var chunkO7IW545H_cjs = require('../chunk-O7IW545H.cjs');
|
|
@@ -17,7 +17,7 @@ var AgentNetwork = class extends chunkD63P5O4Q_cjs.MastraBase {
|
|
|
17
17
|
this.#instructions = config.instructions;
|
|
18
18
|
this.#agents = config.agents;
|
|
19
19
|
this.#model = config.model;
|
|
20
|
-
this.#routingAgent = new
|
|
20
|
+
this.#routingAgent = new chunkSEKWEA3B_cjs.Agent({
|
|
21
21
|
name: config.name,
|
|
22
22
|
instructions: this.getInstructions(),
|
|
23
23
|
model: this.#model,
|
|
@@ -41,13 +41,18 @@ var AgentNetwork = class extends chunkD63P5O4Q_cjs.MastraBase {
|
|
|
41
41
|
})
|
|
42
42
|
)
|
|
43
43
|
}),
|
|
44
|
-
execute: async ({ context }) => {
|
|
44
|
+
execute: async ({ context, container }) => {
|
|
45
45
|
try {
|
|
46
46
|
const actions = context.actions;
|
|
47
47
|
this.logger.debug(`Executing ${actions.length} specialized agents`);
|
|
48
48
|
const results = await Promise.all(
|
|
49
49
|
actions.map(
|
|
50
|
-
(action) => this.executeAgent(
|
|
50
|
+
(action) => this.executeAgent(
|
|
51
|
+
action.agent,
|
|
52
|
+
[{ role: "user", content: action.input }],
|
|
53
|
+
action.includeHistory,
|
|
54
|
+
container
|
|
55
|
+
)
|
|
51
56
|
)
|
|
52
57
|
);
|
|
53
58
|
this.logger.debug("Results:", { results });
|
|
@@ -130,7 +135,7 @@ var AgentNetwork = class extends chunkD63P5O4Q_cjs.MastraBase {
|
|
|
130
135
|
**Output:** ${item.interaction.output.substring(0, 100)}${item.interaction.output.length > 100 ? "..." : ""}`
|
|
131
136
|
).join("\n\n");
|
|
132
137
|
}
|
|
133
|
-
async executeAgent(agentId, input, includeHistory = false) {
|
|
138
|
+
async executeAgent(agentId, input, includeHistory = false, container) {
|
|
134
139
|
try {
|
|
135
140
|
const agent = this.#agents.find((agent2) => this.formatAgentId(agent2.name) === agentId);
|
|
136
141
|
if (!agent) {
|
|
@@ -158,7 +163,7 @@ ${interactions.map(
|
|
|
158
163
|
messagesWithContext = [contextMessage, ...messagesWithContext];
|
|
159
164
|
}
|
|
160
165
|
}
|
|
161
|
-
const result = await agent.generate(messagesWithContext);
|
|
166
|
+
const result = await agent.generate(messagesWithContext, { container });
|
|
162
167
|
return result.text;
|
|
163
168
|
} catch (err) {
|
|
164
169
|
const error = err;
|
package/dist/network/index.d.cts
CHANGED
package/dist/network/index.d.ts
CHANGED
package/dist/network/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Agent } from '../chunk-
|
|
1
|
+
import { Agent } from '../chunk-H63UZAW4.js';
|
|
2
2
|
import { createTool } from '../chunk-4EEVN2IP.js';
|
|
3
3
|
import { MastraBase } from '../chunk-CLJQYXNM.js';
|
|
4
4
|
import { RegisteredLogger } from '../chunk-2BVZNKLX.js';
|
|
@@ -39,13 +39,18 @@ var AgentNetwork = class extends MastraBase {
|
|
|
39
39
|
})
|
|
40
40
|
)
|
|
41
41
|
}),
|
|
42
|
-
execute: async ({ context }) => {
|
|
42
|
+
execute: async ({ context, container }) => {
|
|
43
43
|
try {
|
|
44
44
|
const actions = context.actions;
|
|
45
45
|
this.logger.debug(`Executing ${actions.length} specialized agents`);
|
|
46
46
|
const results = await Promise.all(
|
|
47
47
|
actions.map(
|
|
48
|
-
(action) => this.executeAgent(
|
|
48
|
+
(action) => this.executeAgent(
|
|
49
|
+
action.agent,
|
|
50
|
+
[{ role: "user", content: action.input }],
|
|
51
|
+
action.includeHistory,
|
|
52
|
+
container
|
|
53
|
+
)
|
|
49
54
|
)
|
|
50
55
|
);
|
|
51
56
|
this.logger.debug("Results:", { results });
|
|
@@ -128,7 +133,7 @@ var AgentNetwork = class extends MastraBase {
|
|
|
128
133
|
**Output:** ${item.interaction.output.substring(0, 100)}${item.interaction.output.length > 100 ? "..." : ""}`
|
|
129
134
|
).join("\n\n");
|
|
130
135
|
}
|
|
131
|
-
async executeAgent(agentId, input, includeHistory = false) {
|
|
136
|
+
async executeAgent(agentId, input, includeHistory = false, container) {
|
|
132
137
|
try {
|
|
133
138
|
const agent = this.#agents.find((agent2) => this.formatAgentId(agent2.name) === agentId);
|
|
134
139
|
if (!agent) {
|
|
@@ -156,7 +161,7 @@ ${interactions.map(
|
|
|
156
161
|
messagesWithContext = [contextMessage, ...messagesWithContext];
|
|
157
162
|
}
|
|
158
163
|
}
|
|
159
|
-
const result = await agent.generate(messagesWithContext);
|
|
164
|
+
const result = await agent.generate(messagesWithContext, { container });
|
|
160
165
|
return result.text;
|
|
161
166
|
} catch (err) {
|
|
162
167
|
const error = err;
|
package/dist/relevance/index.cjs
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkKEETVZUV_cjs = require('../chunk-KEETVZUV.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
Object.defineProperty(exports, "CohereRelevanceScorer", {
|
|
8
8
|
enumerable: true,
|
|
9
|
-
get: function () { return
|
|
9
|
+
get: function () { return chunkKEETVZUV_cjs.CohereRelevanceScorer; }
|
|
10
10
|
});
|
|
11
11
|
Object.defineProperty(exports, "MastraAgentRelevanceScorer", {
|
|
12
12
|
enumerable: true,
|
|
13
|
-
get: function () { return
|
|
13
|
+
get: function () { return chunkKEETVZUV_cjs.MastraAgentRelevanceScorer; }
|
|
14
14
|
});
|
|
15
15
|
Object.defineProperty(exports, "createSimilarityPrompt", {
|
|
16
16
|
enumerable: true,
|
|
17
|
-
get: function () { return
|
|
17
|
+
get: function () { return chunkKEETVZUV_cjs.createSimilarityPrompt; }
|
|
18
18
|
});
|
package/dist/relevance/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { CohereRelevanceScorer, MastraAgentRelevanceScorer, createSimilarityPrompt } from '../chunk-
|
|
1
|
+
export { CohereRelevanceScorer, MastraAgentRelevanceScorer, createSimilarityPrompt } from '../chunk-B7QAMVXA.js';
|
package/dist/server/index.d.cts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Handler, MiddlewareHandler } from 'hono';
|
|
2
2
|
import { DescribeRouteOptions } from 'hono-openapi';
|
|
3
|
-
import { M as Methods, a as Mastra, A as ApiRoute } from '../base-
|
|
3
|
+
import { M as Methods, a as Mastra, A as ApiRoute } from '../base-C-0mAxUa.cjs';
|
|
4
4
|
import 'ai';
|
|
5
5
|
import '../base-BihKcqDY.cjs';
|
|
6
6
|
import '@opentelemetry/api';
|
package/dist/server/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Handler, MiddlewareHandler } from 'hono';
|
|
2
2
|
import { DescribeRouteOptions } from 'hono-openapi';
|
|
3
|
-
import { M as Methods, a as Mastra, A as ApiRoute } from '../base-
|
|
3
|
+
import { M as Methods, a as Mastra, A as ApiRoute } from '../base-BuCysLMv.js';
|
|
4
4
|
import 'ai';
|
|
5
5
|
import '../base-DT2poiVK.js';
|
|
6
6
|
import '@opentelemetry/api';
|
package/dist/storage/index.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { E as EvalRow, e as MastraStorage, S as StorageColumn, h as StorageGetMessagesArg, aP as TABLE_EVALS, aQ as TABLE_MESSAGES, T as TABLE_NAMES, aT as TABLE_SCHEMAS, aR as TABLE_THREADS, aS as TABLE_TRACES, aO as TABLE_WORKFLOW_SNAPSHOT, r as WorkflowRow, s as WorkflowRuns } from '../base-
|
|
1
|
+
export { E as EvalRow, e as MastraStorage, S as StorageColumn, h as StorageGetMessagesArg, aP as TABLE_EVALS, aQ as TABLE_MESSAGES, T as TABLE_NAMES, aT as TABLE_SCHEMAS, aR as TABLE_THREADS, aS as TABLE_TRACES, aO as TABLE_WORKFLOW_SNAPSHOT, r as WorkflowRow, s as WorkflowRuns } from '../base-C-0mAxUa.cjs';
|
|
2
2
|
import 'ai';
|
|
3
3
|
import '../base-BihKcqDY.cjs';
|
|
4
4
|
import '@opentelemetry/api';
|
package/dist/storage/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { E as EvalRow, e as MastraStorage, S as StorageColumn, h as StorageGetMessagesArg, aP as TABLE_EVALS, aQ as TABLE_MESSAGES, T as TABLE_NAMES, aT as TABLE_SCHEMAS, aR as TABLE_THREADS, aS as TABLE_TRACES, aO as TABLE_WORKFLOW_SNAPSHOT, r as WorkflowRow, s as WorkflowRuns } from '../base-
|
|
1
|
+
export { E as EvalRow, e as MastraStorage, S as StorageColumn, h as StorageGetMessagesArg, aP as TABLE_EVALS, aQ as TABLE_MESSAGES, T as TABLE_NAMES, aT as TABLE_SCHEMAS, aR as TABLE_THREADS, aS as TABLE_TRACES, aO as TABLE_WORKFLOW_SNAPSHOT, r as WorkflowRow, s as WorkflowRuns } from '../base-BuCysLMv.js';
|
|
2
2
|
import 'ai';
|
|
3
3
|
import '../base-DT2poiVK.js';
|
|
4
4
|
import '@opentelemetry/api';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { e as MastraStorage, T as TABLE_NAMES, S as StorageColumn, f as StorageThreadType, g as MessageType, h as StorageGetMessagesArg, E as EvalRow, W as WorkflowRunState } from '../../base-
|
|
1
|
+
import { e as MastraStorage, T as TABLE_NAMES, S as StorageColumn, f as StorageThreadType, g as MessageType, h as StorageGetMessagesArg, E as EvalRow, W as WorkflowRunState } from '../../base-C-0mAxUa.cjs';
|
|
2
2
|
import '../../base-BihKcqDY.cjs';
|
|
3
3
|
import 'ai';
|
|
4
4
|
import '../../types-BtMyV38I.cjs';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { e as MastraStorage, T as TABLE_NAMES, S as StorageColumn, f as StorageThreadType, g as MessageType, h as StorageGetMessagesArg, E as EvalRow, W as WorkflowRunState } from '../../base-
|
|
1
|
+
import { e as MastraStorage, T as TABLE_NAMES, S as StorageColumn, f as StorageThreadType, g as MessageType, h as StorageGetMessagesArg, E as EvalRow, W as WorkflowRunState } from '../../base-BuCysLMv.js';
|
|
2
2
|
import '../../base-DT2poiVK.js';
|
|
3
3
|
import 'ai';
|
|
4
4
|
import '../../types-BtMyV38I.js';
|
|
@@ -3,7 +3,7 @@ import { SpanKind } from '@opentelemetry/api';
|
|
|
3
3
|
import { ExportResult } from '@opentelemetry/core';
|
|
4
4
|
import { SpanExporter, ReadableSpan } from '@opentelemetry/sdk-trace-base';
|
|
5
5
|
import { L as Logger } from '../index-CquI0inB.cjs';
|
|
6
|
-
import { e as MastraStorage } from '../base-
|
|
6
|
+
import { e as MastraStorage } from '../base-C-0mAxUa.cjs';
|
|
7
7
|
import 'stream';
|
|
8
8
|
import 'pino';
|
|
9
9
|
import 'ai';
|
|
@@ -3,7 +3,7 @@ import { SpanKind } from '@opentelemetry/api';
|
|
|
3
3
|
import { ExportResult } from '@opentelemetry/core';
|
|
4
4
|
import { SpanExporter, ReadableSpan } from '@opentelemetry/sdk-trace-base';
|
|
5
5
|
import { L as Logger } from '../index-CquI0inB.js';
|
|
6
|
-
import { e as MastraStorage } from '../base-
|
|
6
|
+
import { e as MastraStorage } from '../base-BuCysLMv.js';
|
|
7
7
|
import 'stream';
|
|
8
8
|
import 'pino';
|
|
9
9
|
import 'ai';
|
package/dist/tools/index.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { a5 as CoreTool, n as Tool, i as ToolAction, m as ToolExecutionContext, a4 as VercelTool, a3 as createTool } from '../base-
|
|
1
|
+
export { a5 as CoreTool, n as Tool, i as ToolAction, m as ToolExecutionContext, a4 as VercelTool, a3 as createTool } from '../base-C-0mAxUa.cjs';
|
|
2
2
|
export { isVercelTool } from '../utils.cjs';
|
|
3
3
|
import 'ai';
|
|
4
4
|
import '../base-BihKcqDY.cjs';
|
package/dist/tools/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { a5 as CoreTool, n as Tool, i as ToolAction, m as ToolExecutionContext, a4 as VercelTool, a3 as createTool } from '../base-
|
|
1
|
+
export { a5 as CoreTool, n as Tool, i as ToolAction, m as ToolExecutionContext, a4 as VercelTool, a3 as createTool } from '../base-BuCysLMv.js';
|
|
2
2
|
export { isVercelTool } from '../utils.js';
|
|
3
3
|
import 'ai';
|
|
4
4
|
import '../base-DT2poiVK.js';
|
package/dist/utils.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a4 as VercelTool, i as ToolAction, aH as ToolsInput, a as Mastra, aI as MastraPrimitives, l as MastraMemory, a5 as CoreTool, j as Agent, p as Workflow, o as Step, a6 as StepExecutionContext, am as WorkflowContext, aJ as AgentNetwork } from './base-
|
|
1
|
+
import { a4 as VercelTool, i as ToolAction, aH as ToolsInput, a as Mastra, aI as MastraPrimitives, l as MastraMemory, a5 as CoreTool, j as Agent, p as Workflow, o as Step, a6 as StepExecutionContext, am as WorkflowContext, aJ as AgentNetwork } from './base-C-0mAxUa.cjs';
|
|
2
2
|
import { CoreMessage, Message } from 'ai';
|
|
3
3
|
import { MastraTTS } from './tts/index.cjs';
|
|
4
4
|
import { MastraVector } from './vector/index.cjs';
|
package/dist/utils.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a4 as VercelTool, i as ToolAction, aH as ToolsInput, a as Mastra, aI as MastraPrimitives, l as MastraMemory, a5 as CoreTool, j as Agent, p as Workflow, o as Step, a6 as StepExecutionContext, am as WorkflowContext, aJ as AgentNetwork } from './base-
|
|
1
|
+
import { a4 as VercelTool, i as ToolAction, aH as ToolsInput, a as Mastra, aI as MastraPrimitives, l as MastraMemory, a5 as CoreTool, j as Agent, p as Workflow, o as Step, a6 as StepExecutionContext, am as WorkflowContext, aJ as AgentNetwork } from './base-BuCysLMv.js';
|
|
2
2
|
import { CoreMessage, Message } from 'ai';
|
|
3
3
|
import { MastraTTS } from './tts/index.js';
|
|
4
4
|
import { MastraVector } from './vector/index.js';
|
package/dist/voice/index.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { b as MastraVoice } from '../base-
|
|
2
|
-
export { C as CompositeVoice, d as VoiceConfig, c as VoiceEventMap, V as VoiceEventType } from '../base-
|
|
1
|
+
import { b as MastraVoice } from '../base-C-0mAxUa.cjs';
|
|
2
|
+
export { C as CompositeVoice, d as VoiceConfig, c as VoiceEventMap, V as VoiceEventType } from '../base-C-0mAxUa.cjs';
|
|
3
3
|
import '../base-BihKcqDY.cjs';
|
|
4
4
|
import 'ai';
|
|
5
5
|
import '../types-BtMyV38I.cjs';
|
package/dist/voice/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { b as MastraVoice } from '../base-
|
|
2
|
-
export { C as CompositeVoice, d as VoiceConfig, c as VoiceEventMap, V as VoiceEventType } from '../base-
|
|
1
|
+
import { b as MastraVoice } from '../base-BuCysLMv.js';
|
|
2
|
+
export { C as CompositeVoice, d as VoiceConfig, c as VoiceEventMap, V as VoiceEventType } from '../base-BuCysLMv.js';
|
|
3
3
|
import '../base-DT2poiVK.js';
|
|
4
4
|
import 'ai';
|
|
5
5
|
import '../types-BtMyV38I.js';
|
package/dist/workflows/index.cjs
CHANGED
|
@@ -1,94 +1,94 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkSEKWEA3B_cjs = require('../chunk-SEKWEA3B.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
Object.defineProperty(exports, "Step", {
|
|
8
8
|
enumerable: true,
|
|
9
|
-
get: function () { return
|
|
9
|
+
get: function () { return chunkSEKWEA3B_cjs.Step; }
|
|
10
10
|
});
|
|
11
11
|
Object.defineProperty(exports, "WhenConditionReturnValue", {
|
|
12
12
|
enumerable: true,
|
|
13
|
-
get: function () { return
|
|
13
|
+
get: function () { return chunkSEKWEA3B_cjs.WhenConditionReturnValue; }
|
|
14
14
|
});
|
|
15
15
|
Object.defineProperty(exports, "Workflow", {
|
|
16
16
|
enumerable: true,
|
|
17
|
-
get: function () { return
|
|
17
|
+
get: function () { return chunkSEKWEA3B_cjs.Workflow; }
|
|
18
18
|
});
|
|
19
19
|
Object.defineProperty(exports, "agentToStep", {
|
|
20
20
|
enumerable: true,
|
|
21
|
-
get: function () { return
|
|
21
|
+
get: function () { return chunkSEKWEA3B_cjs.agentToStep; }
|
|
22
22
|
});
|
|
23
23
|
Object.defineProperty(exports, "createStep", {
|
|
24
24
|
enumerable: true,
|
|
25
|
-
get: function () { return
|
|
25
|
+
get: function () { return chunkSEKWEA3B_cjs.createStep; }
|
|
26
26
|
});
|
|
27
27
|
Object.defineProperty(exports, "getActivePathsAndStatus", {
|
|
28
28
|
enumerable: true,
|
|
29
|
-
get: function () { return
|
|
29
|
+
get: function () { return chunkSEKWEA3B_cjs.getActivePathsAndStatus; }
|
|
30
30
|
});
|
|
31
31
|
Object.defineProperty(exports, "getResultActivePaths", {
|
|
32
32
|
enumerable: true,
|
|
33
|
-
get: function () { return
|
|
33
|
+
get: function () { return chunkSEKWEA3B_cjs.getResultActivePaths; }
|
|
34
34
|
});
|
|
35
35
|
Object.defineProperty(exports, "getStepResult", {
|
|
36
36
|
enumerable: true,
|
|
37
|
-
get: function () { return
|
|
37
|
+
get: function () { return chunkSEKWEA3B_cjs.getStepResult; }
|
|
38
38
|
});
|
|
39
39
|
Object.defineProperty(exports, "getSuspendedPaths", {
|
|
40
40
|
enumerable: true,
|
|
41
|
-
get: function () { return
|
|
41
|
+
get: function () { return chunkSEKWEA3B_cjs.getSuspendedPaths; }
|
|
42
42
|
});
|
|
43
43
|
Object.defineProperty(exports, "isAgent", {
|
|
44
44
|
enumerable: true,
|
|
45
|
-
get: function () { return
|
|
45
|
+
get: function () { return chunkSEKWEA3B_cjs.isAgent; }
|
|
46
46
|
});
|
|
47
47
|
Object.defineProperty(exports, "isConditionalKey", {
|
|
48
48
|
enumerable: true,
|
|
49
|
-
get: function () { return
|
|
49
|
+
get: function () { return chunkSEKWEA3B_cjs.isConditionalKey; }
|
|
50
50
|
});
|
|
51
51
|
Object.defineProperty(exports, "isErrorEvent", {
|
|
52
52
|
enumerable: true,
|
|
53
|
-
get: function () { return
|
|
53
|
+
get: function () { return chunkSEKWEA3B_cjs.isErrorEvent; }
|
|
54
54
|
});
|
|
55
55
|
Object.defineProperty(exports, "isFinalState", {
|
|
56
56
|
enumerable: true,
|
|
57
|
-
get: function () { return
|
|
57
|
+
get: function () { return chunkSEKWEA3B_cjs.isFinalState; }
|
|
58
58
|
});
|
|
59
59
|
Object.defineProperty(exports, "isLimboState", {
|
|
60
60
|
enumerable: true,
|
|
61
|
-
get: function () { return
|
|
61
|
+
get: function () { return chunkSEKWEA3B_cjs.isLimboState; }
|
|
62
62
|
});
|
|
63
63
|
Object.defineProperty(exports, "isTransitionEvent", {
|
|
64
64
|
enumerable: true,
|
|
65
|
-
get: function () { return
|
|
65
|
+
get: function () { return chunkSEKWEA3B_cjs.isTransitionEvent; }
|
|
66
66
|
});
|
|
67
67
|
Object.defineProperty(exports, "isVariableReference", {
|
|
68
68
|
enumerable: true,
|
|
69
|
-
get: function () { return
|
|
69
|
+
get: function () { return chunkSEKWEA3B_cjs.isVariableReference; }
|
|
70
70
|
});
|
|
71
71
|
Object.defineProperty(exports, "isWorkflow", {
|
|
72
72
|
enumerable: true,
|
|
73
|
-
get: function () { return
|
|
73
|
+
get: function () { return chunkSEKWEA3B_cjs.isWorkflow; }
|
|
74
74
|
});
|
|
75
75
|
Object.defineProperty(exports, "mergeChildValue", {
|
|
76
76
|
enumerable: true,
|
|
77
|
-
get: function () { return
|
|
77
|
+
get: function () { return chunkSEKWEA3B_cjs.mergeChildValue; }
|
|
78
78
|
});
|
|
79
79
|
Object.defineProperty(exports, "recursivelyCheckForFinalState", {
|
|
80
80
|
enumerable: true,
|
|
81
|
-
get: function () { return
|
|
81
|
+
get: function () { return chunkSEKWEA3B_cjs.recursivelyCheckForFinalState; }
|
|
82
82
|
});
|
|
83
83
|
Object.defineProperty(exports, "resolveVariables", {
|
|
84
84
|
enumerable: true,
|
|
85
|
-
get: function () { return
|
|
85
|
+
get: function () { return chunkSEKWEA3B_cjs.resolveVariables; }
|
|
86
86
|
});
|
|
87
87
|
Object.defineProperty(exports, "updateStepInHierarchy", {
|
|
88
88
|
enumerable: true,
|
|
89
|
-
get: function () { return
|
|
89
|
+
get: function () { return chunkSEKWEA3B_cjs.updateStepInHierarchy; }
|
|
90
90
|
});
|
|
91
91
|
Object.defineProperty(exports, "workflowToStep", {
|
|
92
92
|
enumerable: true,
|
|
93
|
-
get: function () { return
|
|
93
|
+
get: function () { return chunkSEKWEA3B_cjs.workflowToStep; }
|
|
94
94
|
});
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ac as VariableReference, aj as StepResult, o as Step, p as Workflow, j as Agent, am as WorkflowContext, aH as ToolsInput, a as Mastra, a7 as StepAction, al as WorkflowRunResult } from '../base-
|
|
2
|
-
export { ae as ActionContext, ad as BaseCondition, as as DependencyCheckOutput, az as ExtractSchemaFromStep, aC as ExtractSchemaType, aA as ExtractStepResult, aD as PathsToStringProps, ap as ResolverFunctionInput, aq as ResolverFunctionOutput, ab as RetryConfig, ah as StepCondition, ai as StepConfig, ag as StepDef, a6 as StepExecutionContext, aa as StepGraph, ay as StepId, aB as StepInputType, a9 as StepNode, at as StepResolverOutput, a8 as StepVariableType, ak as StepsRecord, ar as SubscriberFunctionOutput, af as WhenConditionReturnValue, av as WorkflowActionParams, aw as WorkflowActions, au as WorkflowActors, ao as WorkflowEvent, an as WorkflowLogMessage, q as WorkflowOptions, aE as WorkflowResumeResult, W as WorkflowRunState, ax as WorkflowState, aF as createStep } from '../base-
|
|
1
|
+
import { ac as VariableReference, aj as StepResult, o as Step, p as Workflow, j as Agent, am as WorkflowContext, aH as ToolsInput, a as Mastra, a7 as StepAction, al as WorkflowRunResult } from '../base-C-0mAxUa.cjs';
|
|
2
|
+
export { ae as ActionContext, ad as BaseCondition, as as DependencyCheckOutput, az as ExtractSchemaFromStep, aC as ExtractSchemaType, aA as ExtractStepResult, aD as PathsToStringProps, ap as ResolverFunctionInput, aq as ResolverFunctionOutput, ab as RetryConfig, ah as StepCondition, ai as StepConfig, ag as StepDef, a6 as StepExecutionContext, aa as StepGraph, ay as StepId, aB as StepInputType, a9 as StepNode, at as StepResolverOutput, a8 as StepVariableType, ak as StepsRecord, ar as SubscriberFunctionOutput, af as WhenConditionReturnValue, av as WorkflowActionParams, aw as WorkflowActions, au as WorkflowActors, ao as WorkflowEvent, an as WorkflowLogMessage, q as WorkflowOptions, aE as WorkflowResumeResult, W as WorkflowRunState, ax as WorkflowState, aF as createStep } from '../base-C-0mAxUa.cjs';
|
|
3
3
|
import { z } from 'zod';
|
|
4
4
|
import { a as Metric } from '../types-BtMyV38I.cjs';
|
|
5
5
|
import { L as Logger } from '../index-CquI0inB.cjs';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ac as VariableReference, aj as StepResult, o as Step, p as Workflow, j as Agent, am as WorkflowContext, aH as ToolsInput, a as Mastra, a7 as StepAction, al as WorkflowRunResult } from '../base-
|
|
2
|
-
export { ae as ActionContext, ad as BaseCondition, as as DependencyCheckOutput, az as ExtractSchemaFromStep, aC as ExtractSchemaType, aA as ExtractStepResult, aD as PathsToStringProps, ap as ResolverFunctionInput, aq as ResolverFunctionOutput, ab as RetryConfig, ah as StepCondition, ai as StepConfig, ag as StepDef, a6 as StepExecutionContext, aa as StepGraph, ay as StepId, aB as StepInputType, a9 as StepNode, at as StepResolverOutput, a8 as StepVariableType, ak as StepsRecord, ar as SubscriberFunctionOutput, af as WhenConditionReturnValue, av as WorkflowActionParams, aw as WorkflowActions, au as WorkflowActors, ao as WorkflowEvent, an as WorkflowLogMessage, q as WorkflowOptions, aE as WorkflowResumeResult, W as WorkflowRunState, ax as WorkflowState, aF as createStep } from '../base-
|
|
1
|
+
import { ac as VariableReference, aj as StepResult, o as Step, p as Workflow, j as Agent, am as WorkflowContext, aH as ToolsInput, a as Mastra, a7 as StepAction, al as WorkflowRunResult } from '../base-BuCysLMv.js';
|
|
2
|
+
export { ae as ActionContext, ad as BaseCondition, as as DependencyCheckOutput, az as ExtractSchemaFromStep, aC as ExtractSchemaType, aA as ExtractStepResult, aD as PathsToStringProps, ap as ResolverFunctionInput, aq as ResolverFunctionOutput, ab as RetryConfig, ah as StepCondition, ai as StepConfig, ag as StepDef, a6 as StepExecutionContext, aa as StepGraph, ay as StepId, aB as StepInputType, a9 as StepNode, at as StepResolverOutput, a8 as StepVariableType, ak as StepsRecord, ar as SubscriberFunctionOutput, af as WhenConditionReturnValue, av as WorkflowActionParams, aw as WorkflowActions, au as WorkflowActors, ao as WorkflowEvent, an as WorkflowLogMessage, q as WorkflowOptions, aE as WorkflowResumeResult, W as WorkflowRunState, ax as WorkflowState, aF as createStep } from '../base-BuCysLMv.js';
|
|
3
3
|
import { z } from 'zod';
|
|
4
4
|
import { a as Metric } from '../types-BtMyV38I.js';
|
|
5
5
|
import { L as Logger } from '../index-CquI0inB.js';
|
package/dist/workflows/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { Step, WhenConditionReturnValue, Workflow, agentToStep, createStep, getActivePathsAndStatus, getResultActivePaths, getStepResult, getSuspendedPaths, isAgent, isConditionalKey, isErrorEvent, isFinalState, isLimboState, isTransitionEvent, isVariableReference, isWorkflow, mergeChildValue, recursivelyCheckForFinalState, resolveVariables, updateStepInHierarchy, workflowToStep } from '../chunk-
|
|
1
|
+
export { Step, WhenConditionReturnValue, Workflow, agentToStep, createStep, getActivePathsAndStatus, getResultActivePaths, getStepResult, getSuspendedPaths, isAgent, isConditionalKey, isErrorEvent, isFinalState, isLimboState, isTransitionEvent, isVariableReference, isWorkflow, mergeChildValue, recursivelyCheckForFinalState, resolveVariables, updateStepInHierarchy, workflowToStep } from '../chunk-H63UZAW4.js';
|