@mastra/core 0.7.0 → 0.8.0-alpha.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +76 -74
- package/dist/agent/index.cjs +2 -2
- package/dist/agent/index.d.cts +5 -3
- package/dist/agent/index.d.ts +5 -3
- package/dist/agent/index.js +1 -1
- package/dist/{base-Cmunaaxb.d.ts → base-BA_in99t.d.ts} +4 -1
- package/dist/{base-Cyl73WbV.d.ts → base-CQuRWXAH.d.ts} +985 -913
- package/dist/{base-ObPJ-w8K.d.cts → base-CvQbEqGB.d.cts} +4 -1
- package/dist/{base-C0wILuA9.d.cts → base-Dpt4tO56.d.cts} +985 -913
- package/dist/base.cjs +2 -2
- package/dist/base.d.cts +1 -1
- package/dist/base.d.ts +1 -1
- package/dist/base.js +1 -1
- package/dist/bundler/index.cjs +2 -2
- package/dist/bundler/index.d.cts +1 -1
- package/dist/bundler/index.d.ts +1 -1
- package/dist/bundler/index.js +1 -1
- package/dist/{chunk-L7CR75HA.js → chunk-2BVZNKLX.js} +1 -1
- package/dist/{chunk-V5ORZPFW.cjs → chunk-3C6V2FEP.cjs} +1 -1
- package/dist/chunk-3HE5CJBG.cjs +4604 -0
- package/dist/{chunk-PNZK456O.js → chunk-4RMSGSQN.js} +4 -4
- package/dist/{chunk-WESJ2ZY7.cjs → chunk-57LXIDIK.cjs} +2 -2
- package/dist/chunk-5RRJEWMA.cjs +107 -0
- package/dist/{chunk-3CNO7YB5.js → chunk-5TFGORLG.js} +1 -1
- package/dist/{chunk-5FAJ6HUC.cjs → chunk-64VPB7ZD.cjs} +23 -2
- package/dist/chunk-6XLV4KSD.js +100 -0
- package/dist/{chunk-XLSROQ26.cjs → chunk-7I7AKQH3.cjs} +5 -5
- package/dist/{chunk-RUA6BSB6.cjs → chunk-7JBINHJX.cjs} +2 -2
- package/dist/chunk-A6MBM56X.js +268 -0
- package/dist/{chunk-2YF5JYTJ.js → chunk-BC5B4EGI.js} +21 -2
- package/dist/chunk-BF7ZLRGO.cjs +271 -0
- package/dist/{chunk-SMBKF6K5.js → chunk-BRBHQ6KS.js} +10 -1
- package/dist/{chunk-VN4M67DA.js → chunk-CLJQYXNM.js} +1 -1
- package/dist/{chunk-PL7PVTGF.cjs → chunk-D63P5O4Q.cjs} +4 -4
- package/dist/chunk-DCGLGWHI.cjs +141 -0
- package/dist/{chunk-YXJQFZOW.cjs → chunk-DL4QPJKI.cjs} +24 -10
- package/dist/{chunk-ZABXT2MN.js → chunk-FY57LEMC.js} +1 -1
- package/dist/{chunk-XLXJUYKH.js → chunk-GHK3HBWN.js} +1 -1
- package/dist/{chunk-ONDCHP6G.cjs → chunk-GO2D7FEK.cjs} +2 -2
- package/dist/{chunk-7VTZI3YN.js → chunk-H6ZU5N2C.js} +1 -1
- package/dist/{chunk-WBE5RTFI.js → chunk-HAWAUEWK.js} +2 -2
- package/dist/chunk-HCDXBSMK.js +4577 -0
- package/dist/{chunk-RU7CSPAV.js → chunk-JGJMVCJ4.js} +7 -84
- package/dist/{chunk-W5HVJX45.js → chunk-N5ZYOQBL.js} +46 -5
- package/dist/{chunk-NPOKIPWC.cjs → chunk-O7IW545H.cjs} +1 -1
- package/dist/{chunk-XB2TJ7LX.cjs → chunk-PHWEC4VD.cjs} +47 -6
- package/dist/{chunk-NUDAZEOG.js → chunk-PK5QRKSG.js} +1 -1
- package/dist/{chunk-43SD5CUE.js → chunk-QDHRRKQ5.js} +63 -9
- package/dist/{chunk-ZBKJDQPM.js → chunk-RBWBJC6D.js} +17 -3
- package/dist/{chunk-4PYORXWM.cjs → chunk-RXDLSCBA.cjs} +4 -4
- package/dist/{chunk-IQLRSKED.cjs → chunk-RZCYBC7D.cjs} +2 -2
- package/dist/{chunk-ASFUEC75.cjs → chunk-TNNHN4ZY.cjs} +67 -12
- package/dist/{chunk-QM6WIIPM.js → chunk-UF4LZV3D.js} +1 -1
- package/dist/{chunk-JJ4YQTFT.cjs → chunk-WAW7QBY4.cjs} +2 -2
- package/dist/{chunk-U7ONOIBO.cjs → chunk-YZDUZFVZ.cjs} +11 -2
- package/dist/deployer/index.cjs +2 -2
- package/dist/deployer/index.d.cts +1 -1
- package/dist/deployer/index.d.ts +1 -1
- package/dist/deployer/index.js +1 -1
- package/dist/eval/index.cjs +3 -3
- package/dist/eval/index.d.cts +8 -5
- package/dist/eval/index.d.ts +8 -5
- package/dist/eval/index.js +1 -1
- package/dist/hooks/index.d.cts +1 -1
- package/dist/hooks/index.d.ts +1 -1
- package/dist/index.cjs +102 -92
- package/dist/index.d.cts +11 -9
- package/dist/index.d.ts +11 -9
- package/dist/index.js +18 -19
- package/dist/integration/index.cjs +3 -3
- package/dist/integration/index.d.cts +5 -3
- package/dist/integration/index.d.ts +5 -3
- package/dist/integration/index.js +1 -1
- package/dist/llm/index.d.cts +5 -3
- package/dist/llm/index.d.ts +5 -3
- package/dist/logger/index.cjs +9 -9
- package/dist/logger/index.js +1 -1
- package/dist/mastra/index.cjs +2 -2
- package/dist/mastra/index.d.cts +5 -3
- package/dist/mastra/index.d.ts +5 -3
- package/dist/mastra/index.js +1 -1
- package/dist/memory/index.cjs +6 -2
- package/dist/memory/index.d.cts +5 -3
- package/dist/memory/index.d.ts +5 -3
- package/dist/memory/index.js +1 -1
- package/dist/network/index.cjs +8 -8
- package/dist/network/index.d.cts +5 -3
- package/dist/network/index.d.ts +5 -3
- package/dist/network/index.js +4 -4
- package/dist/relevance/index.cjs +4 -4
- package/dist/relevance/index.d.cts +10 -8
- package/dist/relevance/index.d.ts +10 -8
- package/dist/relevance/index.js +1 -1
- package/dist/server/index.cjs +17 -0
- package/dist/server/index.d.cts +37 -0
- package/dist/server/index.d.ts +37 -0
- package/dist/server/index.js +15 -0
- package/dist/storage/index.cjs +12 -8
- package/dist/storage/index.d.cts +5 -3
- package/dist/storage/index.d.ts +5 -3
- package/dist/storage/index.js +2 -2
- package/dist/storage/libsql/index.cjs +24 -24
- package/dist/storage/libsql/index.d.cts +5 -3
- package/dist/storage/libsql/index.d.ts +5 -3
- package/dist/storage/libsql/index.js +12 -12
- package/dist/telemetry/index.cjs +6 -6
- package/dist/telemetry/index.d.cts +5 -3
- package/dist/telemetry/index.d.ts +5 -3
- package/dist/telemetry/index.js +1 -1
- package/dist/tools/index.cjs +7 -3
- package/dist/tools/index.d.cts +6 -3
- package/dist/tools/index.d.ts +6 -3
- package/dist/tools/index.js +1 -1
- package/dist/tts/index.cjs +2 -2
- package/dist/tts/index.d.cts +1 -1
- package/dist/tts/index.d.ts +1 -1
- package/dist/tts/index.js +1 -1
- package/dist/{types-CwTG2XyQ.d.cts → types-BtMyV38I.d.cts} +4 -1
- package/dist/{types-CwTG2XyQ.d.ts → types-BtMyV38I.d.ts} +4 -1
- package/dist/utils.cjs +13 -13
- package/dist/utils.d.cts +7 -5
- package/dist/utils.d.ts +7 -5
- package/dist/utils.js +1 -1
- package/dist/vector/index.cjs +2 -2
- package/dist/vector/index.d.cts +1 -1
- package/dist/vector/index.d.ts +1 -1
- package/dist/vector/index.js +1 -1
- package/dist/vector/libsql/index.cjs +3 -3
- package/dist/vector/libsql/index.d.cts +1 -1
- package/dist/vector/libsql/index.d.ts +1 -1
- package/dist/vector/libsql/index.js +1 -1
- package/dist/voice/index.cjs +13 -249
- package/dist/voice/index.d.cts +22 -8
- package/dist/voice/index.d.ts +22 -8
- package/dist/voice/index.js +1 -252
- package/dist/workflows/index.cjs +28 -20
- package/dist/workflows/index.d.cts +18 -7
- package/dist/workflows/index.d.ts +18 -7
- package/dist/workflows/index.js +1 -1
- package/package.json +5 -3
- package/dist/chunk-2W2GYEYQ.cjs +0 -25
- package/dist/chunk-C6BBAS4I.cjs +0 -1715
- package/dist/chunk-F5UYWPV4.cjs +0 -14
- package/dist/chunk-GG6TEAMJ.cjs +0 -2289
- package/dist/chunk-R2M5CZ5U.js +0 -2264
- package/dist/chunk-RG66XEJT.js +0 -8
- package/dist/chunk-VNQRLYIA.js +0 -1715
- package/dist/chunk-WVVKLIUW.cjs +0 -218
- package/dist/chunk-ZINPRHAN.js +0 -22
package/dist/index.cjs
CHANGED
|
@@ -1,25 +1,23 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var
|
|
6
|
-
var
|
|
7
|
-
var
|
|
8
|
-
var
|
|
9
|
-
var
|
|
10
|
-
var
|
|
11
|
-
var
|
|
12
|
-
var
|
|
13
|
-
var
|
|
14
|
-
var
|
|
15
|
-
var
|
|
16
|
-
var
|
|
17
|
-
var chunkNPOKIPWC_cjs = require('./chunk-NPOKIPWC.cjs');
|
|
18
|
-
var chunkV5ORZPFW_cjs = require('./chunk-V5ORZPFW.cjs');
|
|
3
|
+
var chunkRXDLSCBA_cjs = require('./chunk-RXDLSCBA.cjs');
|
|
4
|
+
var chunk7I7AKQH3_cjs = require('./chunk-7I7AKQH3.cjs');
|
|
5
|
+
var chunkDL4QPJKI_cjs = require('./chunk-DL4QPJKI.cjs');
|
|
6
|
+
var chunkTNNHN4ZY_cjs = require('./chunk-TNNHN4ZY.cjs');
|
|
7
|
+
var chunk7JBINHJX_cjs = require('./chunk-7JBINHJX.cjs');
|
|
8
|
+
var chunkDCGLGWHI_cjs = require('./chunk-DCGLGWHI.cjs');
|
|
9
|
+
var chunk57LXIDIK_cjs = require('./chunk-57LXIDIK.cjs');
|
|
10
|
+
var chunk3HE5CJBG_cjs = require('./chunk-3HE5CJBG.cjs');
|
|
11
|
+
var chunkPHWEC4VD_cjs = require('./chunk-PHWEC4VD.cjs');
|
|
12
|
+
var chunk64VPB7ZD_cjs = require('./chunk-64VPB7ZD.cjs');
|
|
13
|
+
var chunkRZCYBC7D_cjs = require('./chunk-RZCYBC7D.cjs');
|
|
14
|
+
var chunkD63P5O4Q_cjs = require('./chunk-D63P5O4Q.cjs');
|
|
15
|
+
var chunkO7IW545H_cjs = require('./chunk-O7IW545H.cjs');
|
|
16
|
+
var chunk3C6V2FEP_cjs = require('./chunk-3C6V2FEP.cjs');
|
|
19
17
|
var chunkST5RMVLG_cjs = require('./chunk-ST5RMVLG.cjs');
|
|
20
18
|
|
|
21
19
|
// src/agent/index.warning.ts
|
|
22
|
-
var Agent2 = class extends
|
|
20
|
+
var Agent2 = class extends chunk3HE5CJBG_cjs.Agent {
|
|
23
21
|
constructor(config) {
|
|
24
22
|
super(config);
|
|
25
23
|
this.logger.warn('Please import "Agent from "@mastra/core/agent" instead of "@mastra/core"');
|
|
@@ -27,7 +25,7 @@ var Agent2 = class extends chunkC6BBAS4I_cjs.Agent {
|
|
|
27
25
|
};
|
|
28
26
|
|
|
29
27
|
// src/base.warning.ts
|
|
30
|
-
var MastraBase2 = class extends
|
|
28
|
+
var MastraBase2 = class extends chunkD63P5O4Q_cjs.MastraBase {
|
|
31
29
|
constructor(args) {
|
|
32
30
|
super(args);
|
|
33
31
|
this.logger.warn('Please import "MastraBase" from "@mastra/core/base" instead of "@mastra/core"');
|
|
@@ -35,7 +33,7 @@ var MastraBase2 = class extends chunkPL7PVTGF_cjs.MastraBase {
|
|
|
35
33
|
};
|
|
36
34
|
|
|
37
35
|
// src/deployer/index.warning.ts
|
|
38
|
-
var MastraDeployer2 = class extends
|
|
36
|
+
var MastraDeployer2 = class extends chunkRZCYBC7D_cjs.MastraDeployer {
|
|
39
37
|
constructor(args) {
|
|
40
38
|
super(args);
|
|
41
39
|
this.logger.warn('Please import "MastraDeployer" from "@mastra/core/deployer" instead of "@mastra/core"');
|
|
@@ -43,7 +41,7 @@ var MastraDeployer2 = class extends chunkIQLRSKED_cjs.MastraDeployer {
|
|
|
43
41
|
};
|
|
44
42
|
|
|
45
43
|
// src/storage/base.warning.ts
|
|
46
|
-
var MastraStorage2 = class extends
|
|
44
|
+
var MastraStorage2 = class extends chunkDCGLGWHI_cjs.MastraStorage {
|
|
47
45
|
constructor({ name }) {
|
|
48
46
|
super({
|
|
49
47
|
name
|
|
@@ -53,7 +51,7 @@ var MastraStorage2 = class extends chunkWVVKLIUW_cjs.MastraStorage {
|
|
|
53
51
|
};
|
|
54
52
|
|
|
55
53
|
// src/integration/integration.warning.ts
|
|
56
|
-
var Integration2 = class extends
|
|
54
|
+
var Integration2 = class extends chunk7I7AKQH3_cjs.Integration {
|
|
57
55
|
constructor() {
|
|
58
56
|
super();
|
|
59
57
|
console.warn('Please import "Integration" from "@mastra/core/integration" instead of "@mastra/core"');
|
|
@@ -61,7 +59,7 @@ var Integration2 = class extends chunkXLSROQ26_cjs.Integration {
|
|
|
61
59
|
};
|
|
62
60
|
|
|
63
61
|
// src/integration/openapi-toolset.warning.ts
|
|
64
|
-
var OpenAPIToolset2 = class extends
|
|
62
|
+
var OpenAPIToolset2 = class extends chunk7I7AKQH3_cjs.OpenAPIToolset {
|
|
65
63
|
constructor() {
|
|
66
64
|
super();
|
|
67
65
|
console.warn('Please import "OpenAPIToolset" from "@mastra/core/integration" instead of "@mastra/core"');
|
|
@@ -71,11 +69,11 @@ var OpenAPIToolset2 = class extends chunkXLSROQ26_cjs.OpenAPIToolset {
|
|
|
71
69
|
// src/logger/index.warning.ts
|
|
72
70
|
function createLogger2(options) {
|
|
73
71
|
console.warn('Please import "createLogger" from "@mastra/core/logger" instead of "@mastra/core"');
|
|
74
|
-
return
|
|
72
|
+
return chunkO7IW545H_cjs.createLogger(options);
|
|
75
73
|
}
|
|
76
74
|
|
|
77
75
|
// src/memory/index.warning.ts
|
|
78
|
-
var MastraMemory2 = class extends
|
|
76
|
+
var MastraMemory2 = class extends chunkTNNHN4ZY_cjs.MastraMemory {
|
|
79
77
|
constructor(_arg) {
|
|
80
78
|
super({ name: `Deprecated memory` });
|
|
81
79
|
this.logger.warn('Please import "MastraMemory" from "@mastra/core/memory" instead of "@mastra/core"');
|
|
@@ -83,7 +81,7 @@ var MastraMemory2 = class extends chunkASFUEC75_cjs.MastraMemory {
|
|
|
83
81
|
};
|
|
84
82
|
|
|
85
83
|
// src/tools/index.warning.ts
|
|
86
|
-
var Tool2 = class extends
|
|
84
|
+
var Tool2 = class extends chunk64VPB7ZD_cjs.Tool {
|
|
87
85
|
constructor(opts) {
|
|
88
86
|
super(opts);
|
|
89
87
|
console.warn('Please import "Tool" from "@mastra/core/tools" instead of "@mastra/core"');
|
|
@@ -91,7 +89,7 @@ var Tool2 = class extends chunk2W2GYEYQ_cjs.Tool {
|
|
|
91
89
|
};
|
|
92
90
|
|
|
93
91
|
// src/tts/index.warning.ts
|
|
94
|
-
var MastraTTS2 = class extends
|
|
92
|
+
var MastraTTS2 = class extends chunkRXDLSCBA_cjs.MastraTTS {
|
|
95
93
|
constructor(args) {
|
|
96
94
|
super(args);
|
|
97
95
|
this.logger.warn('Please import "MastraTTS" from "@mastra/core/tts" instead of "@mastra/core"');
|
|
@@ -99,7 +97,7 @@ var MastraTTS2 = class extends chunk4PYORXWM_cjs.MastraTTS {
|
|
|
99
97
|
};
|
|
100
98
|
|
|
101
99
|
// src/vector/index.warning.ts
|
|
102
|
-
var MastraVector2 = class extends
|
|
100
|
+
var MastraVector2 = class extends chunk7JBINHJX_cjs.MastraVector {
|
|
103
101
|
constructor() {
|
|
104
102
|
super();
|
|
105
103
|
this.logger.warn('Please import "MastraVector" from "@mastra/core/vector" instead of "@mastra/core"');
|
|
@@ -107,208 +105,220 @@ var MastraVector2 = class extends chunkRUA6BSB6_cjs.MastraVector {
|
|
|
107
105
|
};
|
|
108
106
|
|
|
109
107
|
// src/workflows/workflow.warning.ts
|
|
110
|
-
var Workflow2 = class extends
|
|
108
|
+
var Workflow2 = class extends chunk3HE5CJBG_cjs.Workflow {
|
|
111
109
|
constructor(args) {
|
|
112
110
|
super(args);
|
|
113
111
|
this.logger.warn('Please import "Workflow" from "@mastra/core/workflows" instead of "@mastra/core"');
|
|
114
112
|
}
|
|
115
113
|
};
|
|
116
114
|
|
|
115
|
+
Object.defineProperty(exports, "Mastra", {
|
|
116
|
+
enumerable: true,
|
|
117
|
+
get: function () { return chunkDL4QPJKI_cjs.Mastra; }
|
|
118
|
+
});
|
|
119
|
+
Object.defineProperty(exports, "MemoryProcessor", {
|
|
120
|
+
enumerable: true,
|
|
121
|
+
get: function () { return chunkTNNHN4ZY_cjs.MemoryProcessor; }
|
|
122
|
+
});
|
|
123
|
+
Object.defineProperty(exports, "CohereRelevanceScorer", {
|
|
124
|
+
enumerable: true,
|
|
125
|
+
get: function () { return chunk57LXIDIK_cjs.CohereRelevanceScorer; }
|
|
126
|
+
});
|
|
127
|
+
Object.defineProperty(exports, "MastraAgentRelevanceScorer", {
|
|
128
|
+
enumerable: true,
|
|
129
|
+
get: function () { return chunk57LXIDIK_cjs.MastraAgentRelevanceScorer; }
|
|
130
|
+
});
|
|
131
|
+
Object.defineProperty(exports, "createSimilarityPrompt", {
|
|
132
|
+
enumerable: true,
|
|
133
|
+
get: function () { return chunk57LXIDIK_cjs.createSimilarityPrompt; }
|
|
134
|
+
});
|
|
117
135
|
Object.defineProperty(exports, "Step", {
|
|
118
136
|
enumerable: true,
|
|
119
|
-
get: function () { return
|
|
137
|
+
get: function () { return chunk3HE5CJBG_cjs.Step; }
|
|
120
138
|
});
|
|
121
139
|
Object.defineProperty(exports, "WhenConditionReturnValue", {
|
|
122
140
|
enumerable: true,
|
|
123
|
-
get: function () { return
|
|
141
|
+
get: function () { return chunk3HE5CJBG_cjs.WhenConditionReturnValue; }
|
|
142
|
+
});
|
|
143
|
+
Object.defineProperty(exports, "agentToStep", {
|
|
144
|
+
enumerable: true,
|
|
145
|
+
get: function () { return chunk3HE5CJBG_cjs.agentToStep; }
|
|
124
146
|
});
|
|
125
147
|
Object.defineProperty(exports, "createStep", {
|
|
126
148
|
enumerable: true,
|
|
127
|
-
get: function () { return
|
|
149
|
+
get: function () { return chunk3HE5CJBG_cjs.createStep; }
|
|
128
150
|
});
|
|
129
151
|
Object.defineProperty(exports, "getActivePathsAndStatus", {
|
|
130
152
|
enumerable: true,
|
|
131
|
-
get: function () { return
|
|
153
|
+
get: function () { return chunk3HE5CJBG_cjs.getActivePathsAndStatus; }
|
|
132
154
|
});
|
|
133
155
|
Object.defineProperty(exports, "getResultActivePaths", {
|
|
134
156
|
enumerable: true,
|
|
135
|
-
get: function () { return
|
|
157
|
+
get: function () { return chunk3HE5CJBG_cjs.getResultActivePaths; }
|
|
136
158
|
});
|
|
137
159
|
Object.defineProperty(exports, "getStepResult", {
|
|
138
160
|
enumerable: true,
|
|
139
|
-
get: function () { return
|
|
161
|
+
get: function () { return chunk3HE5CJBG_cjs.getStepResult; }
|
|
140
162
|
});
|
|
141
163
|
Object.defineProperty(exports, "getSuspendedPaths", {
|
|
142
164
|
enumerable: true,
|
|
143
|
-
get: function () { return
|
|
165
|
+
get: function () { return chunk3HE5CJBG_cjs.getSuspendedPaths; }
|
|
166
|
+
});
|
|
167
|
+
Object.defineProperty(exports, "isAgent", {
|
|
168
|
+
enumerable: true,
|
|
169
|
+
get: function () { return chunk3HE5CJBG_cjs.isAgent; }
|
|
144
170
|
});
|
|
145
171
|
Object.defineProperty(exports, "isErrorEvent", {
|
|
146
172
|
enumerable: true,
|
|
147
|
-
get: function () { return
|
|
173
|
+
get: function () { return chunk3HE5CJBG_cjs.isErrorEvent; }
|
|
148
174
|
});
|
|
149
175
|
Object.defineProperty(exports, "isFinalState", {
|
|
150
176
|
enumerable: true,
|
|
151
|
-
get: function () { return
|
|
177
|
+
get: function () { return chunk3HE5CJBG_cjs.isFinalState; }
|
|
152
178
|
});
|
|
153
179
|
Object.defineProperty(exports, "isLimboState", {
|
|
154
180
|
enumerable: true,
|
|
155
|
-
get: function () { return
|
|
181
|
+
get: function () { return chunk3HE5CJBG_cjs.isLimboState; }
|
|
156
182
|
});
|
|
157
183
|
Object.defineProperty(exports, "isTransitionEvent", {
|
|
158
184
|
enumerable: true,
|
|
159
|
-
get: function () { return
|
|
185
|
+
get: function () { return chunk3HE5CJBG_cjs.isTransitionEvent; }
|
|
160
186
|
});
|
|
161
187
|
Object.defineProperty(exports, "isVariableReference", {
|
|
162
188
|
enumerable: true,
|
|
163
|
-
get: function () { return
|
|
189
|
+
get: function () { return chunk3HE5CJBG_cjs.isVariableReference; }
|
|
164
190
|
});
|
|
165
191
|
Object.defineProperty(exports, "isWorkflow", {
|
|
166
192
|
enumerable: true,
|
|
167
|
-
get: function () { return
|
|
193
|
+
get: function () { return chunk3HE5CJBG_cjs.isWorkflow; }
|
|
168
194
|
});
|
|
169
195
|
Object.defineProperty(exports, "mergeChildValue", {
|
|
170
196
|
enumerable: true,
|
|
171
|
-
get: function () { return
|
|
197
|
+
get: function () { return chunk3HE5CJBG_cjs.mergeChildValue; }
|
|
172
198
|
});
|
|
173
199
|
Object.defineProperty(exports, "recursivelyCheckForFinalState", {
|
|
174
200
|
enumerable: true,
|
|
175
|
-
get: function () { return
|
|
201
|
+
get: function () { return chunk3HE5CJBG_cjs.recursivelyCheckForFinalState; }
|
|
176
202
|
});
|
|
177
203
|
Object.defineProperty(exports, "resolveVariables", {
|
|
178
204
|
enumerable: true,
|
|
179
|
-
get: function () { return
|
|
205
|
+
get: function () { return chunk3HE5CJBG_cjs.resolveVariables; }
|
|
180
206
|
});
|
|
181
207
|
Object.defineProperty(exports, "updateStepInHierarchy", {
|
|
182
208
|
enumerable: true,
|
|
183
|
-
get: function () { return
|
|
209
|
+
get: function () { return chunk3HE5CJBG_cjs.updateStepInHierarchy; }
|
|
184
210
|
});
|
|
185
211
|
Object.defineProperty(exports, "workflowToStep", {
|
|
186
212
|
enumerable: true,
|
|
187
|
-
get: function () { return
|
|
188
|
-
});
|
|
189
|
-
Object.defineProperty(exports, "Mastra", {
|
|
190
|
-
enumerable: true,
|
|
191
|
-
get: function () { return chunkYXJQFZOW_cjs.Mastra; }
|
|
192
|
-
});
|
|
193
|
-
Object.defineProperty(exports, "CohereRelevanceScorer", {
|
|
194
|
-
enumerable: true,
|
|
195
|
-
get: function () { return chunkWESJ2ZY7_cjs.CohereRelevanceScorer; }
|
|
196
|
-
});
|
|
197
|
-
Object.defineProperty(exports, "MastraAgentRelevanceScorer", {
|
|
198
|
-
enumerable: true,
|
|
199
|
-
get: function () { return chunkWESJ2ZY7_cjs.MastraAgentRelevanceScorer; }
|
|
200
|
-
});
|
|
201
|
-
Object.defineProperty(exports, "createSimilarityPrompt", {
|
|
202
|
-
enumerable: true,
|
|
203
|
-
get: function () { return chunkWESJ2ZY7_cjs.createSimilarityPrompt; }
|
|
213
|
+
get: function () { return chunk3HE5CJBG_cjs.workflowToStep; }
|
|
204
214
|
});
|
|
205
215
|
Object.defineProperty(exports, "InstrumentClass", {
|
|
206
216
|
enumerable: true,
|
|
207
|
-
get: function () { return
|
|
217
|
+
get: function () { return chunkPHWEC4VD_cjs.InstrumentClass; }
|
|
208
218
|
});
|
|
209
219
|
Object.defineProperty(exports, "OTLPStorageExporter", {
|
|
210
220
|
enumerable: true,
|
|
211
|
-
get: function () { return
|
|
221
|
+
get: function () { return chunkPHWEC4VD_cjs.OTLPTraceExporter; }
|
|
212
222
|
});
|
|
213
223
|
Object.defineProperty(exports, "Telemetry", {
|
|
214
224
|
enumerable: true,
|
|
215
|
-
get: function () { return
|
|
225
|
+
get: function () { return chunkPHWEC4VD_cjs.Telemetry; }
|
|
216
226
|
});
|
|
217
227
|
Object.defineProperty(exports, "hasActiveTelemetry", {
|
|
218
228
|
enumerable: true,
|
|
219
|
-
get: function () { return
|
|
229
|
+
get: function () { return chunkPHWEC4VD_cjs.hasActiveTelemetry; }
|
|
220
230
|
});
|
|
221
231
|
Object.defineProperty(exports, "withSpan", {
|
|
222
232
|
enumerable: true,
|
|
223
|
-
get: function () { return
|
|
233
|
+
get: function () { return chunkPHWEC4VD_cjs.withSpan; }
|
|
224
234
|
});
|
|
225
235
|
Object.defineProperty(exports, "checkEvalStorageFields", {
|
|
226
236
|
enumerable: true,
|
|
227
|
-
get: function () { return
|
|
237
|
+
get: function () { return chunk64VPB7ZD_cjs.checkEvalStorageFields; }
|
|
228
238
|
});
|
|
229
239
|
Object.defineProperty(exports, "createMastraProxy", {
|
|
230
240
|
enumerable: true,
|
|
231
|
-
get: function () { return
|
|
241
|
+
get: function () { return chunk64VPB7ZD_cjs.createMastraProxy; }
|
|
242
|
+
});
|
|
243
|
+
Object.defineProperty(exports, "createTool", {
|
|
244
|
+
enumerable: true,
|
|
245
|
+
get: function () { return chunk64VPB7ZD_cjs.createTool; }
|
|
232
246
|
});
|
|
233
247
|
Object.defineProperty(exports, "deepMerge", {
|
|
234
248
|
enumerable: true,
|
|
235
|
-
get: function () { return
|
|
249
|
+
get: function () { return chunk64VPB7ZD_cjs.deepMerge; }
|
|
236
250
|
});
|
|
237
251
|
Object.defineProperty(exports, "delay", {
|
|
238
252
|
enumerable: true,
|
|
239
|
-
get: function () { return
|
|
253
|
+
get: function () { return chunk64VPB7ZD_cjs.delay; }
|
|
240
254
|
});
|
|
241
255
|
Object.defineProperty(exports, "ensureAllMessagesAreCoreMessages", {
|
|
242
256
|
enumerable: true,
|
|
243
|
-
get: function () { return
|
|
257
|
+
get: function () { return chunk64VPB7ZD_cjs.ensureAllMessagesAreCoreMessages; }
|
|
244
258
|
});
|
|
245
259
|
Object.defineProperty(exports, "ensureToolProperties", {
|
|
246
260
|
enumerable: true,
|
|
247
|
-
get: function () { return
|
|
261
|
+
get: function () { return chunk64VPB7ZD_cjs.ensureToolProperties; }
|
|
248
262
|
});
|
|
249
263
|
Object.defineProperty(exports, "isVercelTool", {
|
|
250
264
|
enumerable: true,
|
|
251
|
-
get: function () { return
|
|
265
|
+
get: function () { return chunk64VPB7ZD_cjs.isVercelTool; }
|
|
252
266
|
});
|
|
253
267
|
Object.defineProperty(exports, "jsonSchemaPropertiesToTSTypes", {
|
|
254
268
|
enumerable: true,
|
|
255
|
-
get: function () { return
|
|
269
|
+
get: function () { return chunk64VPB7ZD_cjs.jsonSchemaPropertiesToTSTypes; }
|
|
256
270
|
});
|
|
257
271
|
Object.defineProperty(exports, "jsonSchemaToModel", {
|
|
258
272
|
enumerable: true,
|
|
259
|
-
get: function () { return
|
|
273
|
+
get: function () { return chunk64VPB7ZD_cjs.jsonSchemaToModel; }
|
|
260
274
|
});
|
|
261
275
|
Object.defineProperty(exports, "makeCoreTool", {
|
|
262
276
|
enumerable: true,
|
|
263
|
-
get: function () { return
|
|
277
|
+
get: function () { return chunk64VPB7ZD_cjs.makeCoreTool; }
|
|
264
278
|
});
|
|
265
279
|
Object.defineProperty(exports, "maskStreamTags", {
|
|
266
280
|
enumerable: true,
|
|
267
|
-
get: function () { return
|
|
281
|
+
get: function () { return chunk64VPB7ZD_cjs.maskStreamTags; }
|
|
268
282
|
});
|
|
269
283
|
Object.defineProperty(exports, "resolveSerializedZodOutput", {
|
|
270
284
|
enumerable: true,
|
|
271
|
-
get: function () { return
|
|
272
|
-
});
|
|
273
|
-
Object.defineProperty(exports, "createTool", {
|
|
274
|
-
enumerable: true,
|
|
275
|
-
get: function () { return chunk2W2GYEYQ_cjs.createTool; }
|
|
285
|
+
get: function () { return chunk64VPB7ZD_cjs.resolveSerializedZodOutput; }
|
|
276
286
|
});
|
|
277
287
|
Object.defineProperty(exports, "LogLevel", {
|
|
278
288
|
enumerable: true,
|
|
279
|
-
get: function () { return
|
|
289
|
+
get: function () { return chunkO7IW545H_cjs.LogLevel; }
|
|
280
290
|
});
|
|
281
291
|
Object.defineProperty(exports, "Logger", {
|
|
282
292
|
enumerable: true,
|
|
283
|
-
get: function () { return
|
|
293
|
+
get: function () { return chunkO7IW545H_cjs.Logger; }
|
|
284
294
|
});
|
|
285
295
|
Object.defineProperty(exports, "LoggerTransport", {
|
|
286
296
|
enumerable: true,
|
|
287
|
-
get: function () { return
|
|
297
|
+
get: function () { return chunkO7IW545H_cjs.LoggerTransport; }
|
|
288
298
|
});
|
|
289
299
|
Object.defineProperty(exports, "MultiLogger", {
|
|
290
300
|
enumerable: true,
|
|
291
|
-
get: function () { return
|
|
301
|
+
get: function () { return chunkO7IW545H_cjs.MultiLogger; }
|
|
292
302
|
});
|
|
293
303
|
Object.defineProperty(exports, "RegisteredLogger", {
|
|
294
304
|
enumerable: true,
|
|
295
|
-
get: function () { return
|
|
305
|
+
get: function () { return chunkO7IW545H_cjs.RegisteredLogger; }
|
|
296
306
|
});
|
|
297
307
|
Object.defineProperty(exports, "combineLoggers", {
|
|
298
308
|
enumerable: true,
|
|
299
|
-
get: function () { return
|
|
309
|
+
get: function () { return chunkO7IW545H_cjs.combineLoggers; }
|
|
300
310
|
});
|
|
301
311
|
Object.defineProperty(exports, "noopLogger", {
|
|
302
312
|
enumerable: true,
|
|
303
|
-
get: function () { return
|
|
313
|
+
get: function () { return chunkO7IW545H_cjs.noopLogger; }
|
|
304
314
|
});
|
|
305
315
|
Object.defineProperty(exports, "Metric", {
|
|
306
316
|
enumerable: true,
|
|
307
|
-
get: function () { return
|
|
317
|
+
get: function () { return chunk3C6V2FEP_cjs.Metric; }
|
|
308
318
|
});
|
|
309
319
|
Object.defineProperty(exports, "evaluate", {
|
|
310
320
|
enumerable: true,
|
|
311
|
-
get: function () { return
|
|
321
|
+
get: function () { return chunk3C6V2FEP_cjs.evaluate; }
|
|
312
322
|
});
|
|
313
323
|
Object.defineProperty(exports, "AvailableHooks", {
|
|
314
324
|
enumerable: true,
|
package/dist/index.d.cts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export {
|
|
3
|
-
import {
|
|
4
|
-
export {
|
|
5
|
-
import { M as MastraBase$1 } from './base-
|
|
6
|
-
export { O as OtelConfig, S as SamplingStrategy, T as Telemetry } from './base-
|
|
1
|
+
import { a as Metric } from './types-BtMyV38I.cjs';
|
|
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, W as Workflow$1, p as WorkflowOptions } from './base-Dpt4tO56.cjs';
|
|
4
|
+
export { ac as ActionContext, ab as BaseCondition, B as BaseStructuredOutputType, X as Config, t as CoreAssistantMessage, r as CoreMessage, s as CoreSystemMessage, a3 as CoreTool, v as CoreToolMessage, u as CoreUserMessage, K as DefaultLLMStreamObjectOptions, J as DefaultLLMStreamOptions, I as DefaultLLMTextObjectOptions, H as DefaultLLMTextOptions, aq as DependencyCheckOutput, x as EmbedManyResult, w as EmbedResult, E as EvalRow, ax as ExtractSchemaFromStep, aA as ExtractSchemaType, ay as ExtractStepResult, G as GenerateReturn, R as LLMInnerStreamOptions, U as LLMStreamObjectOptions, Q as LLMStreamOptions, P as LLMTextObjectOptions, N as LLMTextOptions, L as LanguageModel, a as Mastra, Z as MemoryConfig, a0 as MemoryProcessor, $ as MemoryProcessorOpts, Y as MessageResponse, g as MessageType, O as OutputType, aB as PathsToStringProps, an as ResolverFunctionInput, ao as ResolverFunctionOutput, a9 as RetryConfig, _ as SharedMemoryConfig, a5 as StepAction, af as StepCondition, ag as StepConfig, ae as StepDef, a4 as StepExecutionContext, a8 as StepGraph, aw as StepId, az as StepInputType, a7 as StepNode, ar as StepResolverOutput, ah as StepResult, a6 as StepVariableType, ai as StepsRecord, S as StorageColumn, h as StorageGetMessagesArg, f as StorageThreadType, F as StreamReturn, D as StructuredOutput, z as StructuredOutputArrayItem, y as StructuredOutputType, ap as SubscriberFunctionOutput, aa as VariableReference, a2 as VercelTool, ad as WhenConditionReturnValue, at as WorkflowActionParams, au as WorkflowActions, as as WorkflowActors, ak as WorkflowContext, am as WorkflowEvent, al as WorkflowLogMessage, aD as WorkflowResumeResult, q as WorkflowRow, aj as WorkflowRunResult, aC as WorkflowRunState, av as WorkflowState, aE as createStep, a1 as createTool } from './base-Dpt4tO56.cjs';
|
|
5
|
+
import { M as MastraBase$1 } from './base-CvQbEqGB.cjs';
|
|
6
|
+
export { O as OtelConfig, S as SamplingStrategy, T as Telemetry } from './base-CvQbEqGB.cjs';
|
|
7
7
|
import { R as RegisteredLogger, a as LogLevel, T as TransportMap, L as Logger } from './index-CquI0inB.cjs';
|
|
8
8
|
export { B as BaseLogMessage, b as LoggerTransport, M as MultiLogger, c as combineLoggers, n as noopLogger } from './index-CquI0inB.cjs';
|
|
9
9
|
import { MastraDeployer as MastraDeployer$1 } from './deployer/index.cjs';
|
|
@@ -16,7 +16,7 @@ import { MastraTTS as MastraTTS$1, TTSConfig } from './tts/index.cjs';
|
|
|
16
16
|
export { TagMaskOptions, checkEvalStorageFields, createMastraProxy, deepMerge, delay, ensureAllMessagesAreCoreMessages, ensureToolProperties, isVercelTool, jsonSchemaPropertiesToTSTypes, jsonSchemaToModel, makeCoreTool, maskStreamTags, resolveSerializedZodOutput } from './utils.cjs';
|
|
17
17
|
import { MastraVector as MastraVector$1 } from './vector/index.cjs';
|
|
18
18
|
export { CreateIndexArgs, CreateIndexParams, IndexStats, ParamsToArgs, QueryResult, QueryVectorArgs, QueryVectorParams, UpsertVectorArgs, UpsertVectorParams } from './vector/index.cjs';
|
|
19
|
-
export { getActivePathsAndStatus, getResultActivePaths, getStepResult, getSuspendedPaths, isErrorEvent, isFinalState, isLimboState, isTransitionEvent, isVariableReference, isWorkflow, mergeChildValue, recursivelyCheckForFinalState, resolveVariables, updateStepInHierarchy, workflowToStep } from './workflows/index.cjs';
|
|
19
|
+
export { agentToStep, getActivePathsAndStatus, getResultActivePaths, getStepResult, getSuspendedPaths, isAgent, isErrorEvent, isFinalState, isLimboState, isTransitionEvent, isVariableReference, isWorkflow, mergeChildValue, recursivelyCheckForFinalState, resolveVariables, updateStepInHierarchy, workflowToStep } from './workflows/index.cjs';
|
|
20
20
|
export { AvailableHooks, executeHook, registerHook } from './hooks/index.cjs';
|
|
21
21
|
export { Message as AiMessageType } from 'ai';
|
|
22
22
|
import 'sift';
|
|
@@ -24,6 +24,8 @@ import 'json-schema';
|
|
|
24
24
|
import '@opentelemetry/api';
|
|
25
25
|
import 'xstate';
|
|
26
26
|
import 'node:events';
|
|
27
|
+
import 'hono';
|
|
28
|
+
import 'hono-openapi';
|
|
27
29
|
import '@opentelemetry/sdk-trace-base';
|
|
28
30
|
import 'stream';
|
|
29
31
|
import 'pino';
|
|
@@ -31,8 +33,8 @@ import './bundler/index.cjs';
|
|
|
31
33
|
import '@opentelemetry/core';
|
|
32
34
|
import './vector/filter/index.cjs';
|
|
33
35
|
|
|
34
|
-
declare class Agent<TTools extends Record<string, ToolAction<any, any, any>> = Record<string, ToolAction<any, any, any>>, TMetrics extends Record<string, Metric> = Record<string, Metric>> extends Agent$1<TTools, TMetrics> {
|
|
35
|
-
constructor(config: AgentConfig<TTools, TMetrics>);
|
|
36
|
+
declare class Agent<TAgentId extends string = string, TTools extends Record<string, ToolAction<any, any, any>> = Record<string, ToolAction<any, any, any>>, TMetrics extends Record<string, Metric> = Record<string, Metric>> extends Agent$1<TAgentId, TTools, TMetrics> {
|
|
37
|
+
constructor(config: AgentConfig<TAgentId, TTools, TMetrics>);
|
|
36
38
|
}
|
|
37
39
|
|
|
38
40
|
declare class MastraBase extends MastraBase$1 {
|
package/dist/index.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export {
|
|
3
|
-
import {
|
|
4
|
-
export {
|
|
5
|
-
import { M as MastraBase$1 } from './base-
|
|
6
|
-
export { O as OtelConfig, S as SamplingStrategy, T as Telemetry } from './base-
|
|
1
|
+
import { a as Metric } from './types-BtMyV38I.js';
|
|
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, W as Workflow$1, p as WorkflowOptions } from './base-CQuRWXAH.js';
|
|
4
|
+
export { ac as ActionContext, ab as BaseCondition, B as BaseStructuredOutputType, X as Config, t as CoreAssistantMessage, r as CoreMessage, s as CoreSystemMessage, a3 as CoreTool, v as CoreToolMessage, u as CoreUserMessage, K as DefaultLLMStreamObjectOptions, J as DefaultLLMStreamOptions, I as DefaultLLMTextObjectOptions, H as DefaultLLMTextOptions, aq as DependencyCheckOutput, x as EmbedManyResult, w as EmbedResult, E as EvalRow, ax as ExtractSchemaFromStep, aA as ExtractSchemaType, ay as ExtractStepResult, G as GenerateReturn, R as LLMInnerStreamOptions, U as LLMStreamObjectOptions, Q as LLMStreamOptions, P as LLMTextObjectOptions, N as LLMTextOptions, L as LanguageModel, a as Mastra, Z as MemoryConfig, a0 as MemoryProcessor, $ as MemoryProcessorOpts, Y as MessageResponse, g as MessageType, O as OutputType, aB as PathsToStringProps, an as ResolverFunctionInput, ao as ResolverFunctionOutput, a9 as RetryConfig, _ as SharedMemoryConfig, a5 as StepAction, af as StepCondition, ag as StepConfig, ae as StepDef, a4 as StepExecutionContext, a8 as StepGraph, aw as StepId, az as StepInputType, a7 as StepNode, ar as StepResolverOutput, ah as StepResult, a6 as StepVariableType, ai as StepsRecord, S as StorageColumn, h as StorageGetMessagesArg, f as StorageThreadType, F as StreamReturn, D as StructuredOutput, z as StructuredOutputArrayItem, y as StructuredOutputType, ap as SubscriberFunctionOutput, aa as VariableReference, a2 as VercelTool, ad as WhenConditionReturnValue, at as WorkflowActionParams, au as WorkflowActions, as as WorkflowActors, ak as WorkflowContext, am as WorkflowEvent, al as WorkflowLogMessage, aD as WorkflowResumeResult, q as WorkflowRow, aj as WorkflowRunResult, aC as WorkflowRunState, av as WorkflowState, aE as createStep, a1 as createTool } from './base-CQuRWXAH.js';
|
|
5
|
+
import { M as MastraBase$1 } from './base-BA_in99t.js';
|
|
6
|
+
export { O as OtelConfig, S as SamplingStrategy, T as Telemetry } from './base-BA_in99t.js';
|
|
7
7
|
import { R as RegisteredLogger, a as LogLevel, T as TransportMap, L as Logger } from './index-CquI0inB.js';
|
|
8
8
|
export { B as BaseLogMessage, b as LoggerTransport, M as MultiLogger, c as combineLoggers, n as noopLogger } from './index-CquI0inB.js';
|
|
9
9
|
import { MastraDeployer as MastraDeployer$1 } from './deployer/index.js';
|
|
@@ -16,7 +16,7 @@ import { MastraTTS as MastraTTS$1, TTSConfig } from './tts/index.js';
|
|
|
16
16
|
export { TagMaskOptions, checkEvalStorageFields, createMastraProxy, deepMerge, delay, ensureAllMessagesAreCoreMessages, ensureToolProperties, isVercelTool, jsonSchemaPropertiesToTSTypes, jsonSchemaToModel, makeCoreTool, maskStreamTags, resolveSerializedZodOutput } from './utils.js';
|
|
17
17
|
import { MastraVector as MastraVector$1 } from './vector/index.js';
|
|
18
18
|
export { CreateIndexArgs, CreateIndexParams, IndexStats, ParamsToArgs, QueryResult, QueryVectorArgs, QueryVectorParams, UpsertVectorArgs, UpsertVectorParams } from './vector/index.js';
|
|
19
|
-
export { getActivePathsAndStatus, getResultActivePaths, getStepResult, getSuspendedPaths, isErrorEvent, isFinalState, isLimboState, isTransitionEvent, isVariableReference, isWorkflow, mergeChildValue, recursivelyCheckForFinalState, resolveVariables, updateStepInHierarchy, workflowToStep } from './workflows/index.js';
|
|
19
|
+
export { agentToStep, getActivePathsAndStatus, getResultActivePaths, getStepResult, getSuspendedPaths, isAgent, isErrorEvent, isFinalState, isLimboState, isTransitionEvent, isVariableReference, isWorkflow, mergeChildValue, recursivelyCheckForFinalState, resolveVariables, updateStepInHierarchy, workflowToStep } from './workflows/index.js';
|
|
20
20
|
export { AvailableHooks, executeHook, registerHook } from './hooks/index.js';
|
|
21
21
|
export { Message as AiMessageType } from 'ai';
|
|
22
22
|
import 'sift';
|
|
@@ -24,6 +24,8 @@ import 'json-schema';
|
|
|
24
24
|
import '@opentelemetry/api';
|
|
25
25
|
import 'xstate';
|
|
26
26
|
import 'node:events';
|
|
27
|
+
import 'hono';
|
|
28
|
+
import 'hono-openapi';
|
|
27
29
|
import '@opentelemetry/sdk-trace-base';
|
|
28
30
|
import 'stream';
|
|
29
31
|
import 'pino';
|
|
@@ -31,8 +33,8 @@ import './bundler/index.js';
|
|
|
31
33
|
import '@opentelemetry/core';
|
|
32
34
|
import './vector/filter/index.js';
|
|
33
35
|
|
|
34
|
-
declare class Agent<TTools extends Record<string, ToolAction<any, any, any>> = Record<string, ToolAction<any, any, any>>, TMetrics extends Record<string, Metric> = Record<string, Metric>> extends Agent$1<TTools, TMetrics> {
|
|
35
|
-
constructor(config: AgentConfig<TTools, TMetrics>);
|
|
36
|
+
declare class Agent<TAgentId extends string = string, TTools extends Record<string, ToolAction<any, any, any>> = Record<string, ToolAction<any, any, any>>, TMetrics extends Record<string, Metric> = Record<string, Metric>> extends Agent$1<TAgentId, TTools, TMetrics> {
|
|
37
|
+
constructor(config: AgentConfig<TAgentId, TTools, TMetrics>);
|
|
36
38
|
}
|
|
37
39
|
|
|
38
40
|
declare class MastraBase extends MastraBase$1 {
|
package/dist/index.js
CHANGED
|
@@ -1,22 +1,21 @@
|
|
|
1
|
-
import { MastraTTS } from './chunk-
|
|
2
|
-
import {
|
|
3
|
-
export {
|
|
4
|
-
import {
|
|
5
|
-
export {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
export { CohereRelevanceScorer, MastraAgentRelevanceScorer, createSimilarityPrompt } from './chunk-
|
|
9
|
-
import {
|
|
10
|
-
|
|
11
|
-
export { InstrumentClass, OTLPTraceExporter as OTLPStorageExporter, Telemetry, hasActiveTelemetry, withSpan } from './chunk-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
|
|
18
|
-
export {
|
|
19
|
-
export { Metric, evaluate } from './chunk-NUDAZEOG.js';
|
|
1
|
+
import { MastraTTS } from './chunk-HAWAUEWK.js';
|
|
2
|
+
import { Integration, OpenAPIToolset } from './chunk-4RMSGSQN.js';
|
|
3
|
+
export { Mastra } from './chunk-RBWBJC6D.js';
|
|
4
|
+
import { MastraMemory } from './chunk-QDHRRKQ5.js';
|
|
5
|
+
export { MemoryProcessor } from './chunk-QDHRRKQ5.js';
|
|
6
|
+
import { MastraVector } from './chunk-FY57LEMC.js';
|
|
7
|
+
import { MastraStorage } from './chunk-JGJMVCJ4.js';
|
|
8
|
+
export { CohereRelevanceScorer, MastraAgentRelevanceScorer, createSimilarityPrompt } from './chunk-UF4LZV3D.js';
|
|
9
|
+
import { Agent, Workflow } from './chunk-HCDXBSMK.js';
|
|
10
|
+
export { Step, WhenConditionReturnValue, agentToStep, createStep, getActivePathsAndStatus, getResultActivePaths, getStepResult, getSuspendedPaths, isAgent, isErrorEvent, isFinalState, isLimboState, isTransitionEvent, isVariableReference, isWorkflow, mergeChildValue, recursivelyCheckForFinalState, resolveVariables, updateStepInHierarchy, workflowToStep } from './chunk-HCDXBSMK.js';
|
|
11
|
+
export { InstrumentClass, OTLPTraceExporter as OTLPStorageExporter, Telemetry, hasActiveTelemetry, withSpan } from './chunk-N5ZYOQBL.js';
|
|
12
|
+
import { Tool } from './chunk-BC5B4EGI.js';
|
|
13
|
+
export { checkEvalStorageFields, createMastraProxy, createTool, deepMerge, delay, ensureAllMessagesAreCoreMessages, ensureToolProperties, isVercelTool, jsonSchemaPropertiesToTSTypes, jsonSchemaToModel, makeCoreTool, maskStreamTags, resolveSerializedZodOutput } from './chunk-BC5B4EGI.js';
|
|
14
|
+
import { MastraDeployer } from './chunk-5TFGORLG.js';
|
|
15
|
+
import { MastraBase } from './chunk-CLJQYXNM.js';
|
|
16
|
+
import { createLogger } from './chunk-2BVZNKLX.js';
|
|
17
|
+
export { LogLevel, Logger, LoggerTransport, MultiLogger, RegisteredLogger, combineLoggers, noopLogger } from './chunk-2BVZNKLX.js';
|
|
18
|
+
export { Metric, evaluate } from './chunk-PK5QRKSG.js';
|
|
20
19
|
export { AvailableHooks, executeHook, registerHook } from './chunk-BB4KXGBU.js';
|
|
21
20
|
|
|
22
21
|
// src/agent/index.warning.ts
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunk7I7AKQH3_cjs = require('../chunk-7I7AKQH3.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
Object.defineProperty(exports, "Integration", {
|
|
8
8
|
enumerable: true,
|
|
9
|
-
get: function () { return
|
|
9
|
+
get: function () { return chunk7I7AKQH3_cjs.Integration; }
|
|
10
10
|
});
|
|
11
11
|
Object.defineProperty(exports, "OpenAPIToolset", {
|
|
12
12
|
enumerable: true,
|
|
13
|
-
get: function () { return
|
|
13
|
+
get: function () { return chunk7I7AKQH3_cjs.OpenAPIToolset; }
|
|
14
14
|
});
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import '../base-
|
|
2
|
-
import { W as Workflow,
|
|
1
|
+
import '../base-CvQbEqGB.cjs';
|
|
2
|
+
import { W as Workflow, i as ToolAction } from '../base-Dpt4tO56.cjs';
|
|
3
3
|
import '@opentelemetry/api';
|
|
4
4
|
import '../index-CquI0inB.cjs';
|
|
5
5
|
import 'stream';
|
|
6
6
|
import 'pino';
|
|
7
7
|
import '@opentelemetry/sdk-trace-base';
|
|
8
8
|
import 'ai';
|
|
9
|
-
import '../types-
|
|
9
|
+
import '../types-BtMyV38I.cjs';
|
|
10
10
|
import 'sift';
|
|
11
11
|
import 'zod';
|
|
12
12
|
import 'json-schema';
|
|
@@ -17,6 +17,8 @@ import '../vector/filter/index.cjs';
|
|
|
17
17
|
import '../tts/index.cjs';
|
|
18
18
|
import '../deployer/index.cjs';
|
|
19
19
|
import '../bundler/index.cjs';
|
|
20
|
+
import 'hono';
|
|
21
|
+
import 'hono-openapi';
|
|
20
22
|
|
|
21
23
|
declare class Integration<ToolsParams = void, ApiClient = void> {
|
|
22
24
|
name: string;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import '../base-
|
|
2
|
-
import { W as Workflow,
|
|
1
|
+
import '../base-BA_in99t.js';
|
|
2
|
+
import { W as Workflow, i as ToolAction } from '../base-CQuRWXAH.js';
|
|
3
3
|
import '@opentelemetry/api';
|
|
4
4
|
import '../index-CquI0inB.js';
|
|
5
5
|
import 'stream';
|
|
6
6
|
import 'pino';
|
|
7
7
|
import '@opentelemetry/sdk-trace-base';
|
|
8
8
|
import 'ai';
|
|
9
|
-
import '../types-
|
|
9
|
+
import '../types-BtMyV38I.js';
|
|
10
10
|
import 'sift';
|
|
11
11
|
import 'zod';
|
|
12
12
|
import 'json-schema';
|
|
@@ -17,6 +17,8 @@ import '../vector/filter/index.js';
|
|
|
17
17
|
import '../tts/index.js';
|
|
18
18
|
import '../deployer/index.js';
|
|
19
19
|
import '../bundler/index.js';
|
|
20
|
+
import 'hono';
|
|
21
|
+
import 'hono-openapi';
|
|
20
22
|
|
|
21
23
|
declare class Integration<ToolsParams = void, ApiClient = void> {
|
|
22
24
|
name: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { Integration, OpenAPIToolset } from '../chunk-
|
|
1
|
+
export { Integration, OpenAPIToolset } from '../chunk-4RMSGSQN.js';
|