@mastra/core 0.6.3-alpha.0 → 0.6.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/agent/index.cjs +2 -2
- package/dist/agent/index.js +1 -1
- package/dist/{chunk-XOOCUJXH.cjs → chunk-75XZXEUM.cjs} +2 -2
- package/dist/{chunk-24DC4KOG.js → chunk-DW4X6TXX.js} +2 -2
- package/dist/{chunk-QCIDQL37.js → chunk-F6KZ3CUF.js} +1 -1
- package/dist/{chunk-5DMCYDEY.cjs → chunk-ZG5FKEL2.cjs} +2 -2
- package/dist/index.cjs +6 -6
- package/dist/index.js +2 -2
- package/dist/network/index.cjs +2 -2
- package/dist/network/index.js +1 -1
- package/dist/relevance/index.cjs +4 -4
- package/dist/relevance/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 chunk75XZXEUM_cjs = require('../chunk-75XZXEUM.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 chunk75XZXEUM_cjs.Agent; }
|
|
10
10
|
});
|
package/dist/agent/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { Agent } from '../chunk-
|
|
1
|
+
export { Agent } from '../chunk-DW4X6TXX.js';
|
|
@@ -1176,9 +1176,9 @@ exports.Agent = class Agent extends (_a = chunkPL7PVTGF_cjs.MastraBase) {
|
|
|
1176
1176
|
threadId: threadId2
|
|
1177
1177
|
});
|
|
1178
1178
|
const memory = this.getMemory();
|
|
1179
|
-
const thread = await memory?.getThreadById({
|
|
1179
|
+
const thread = threadId2 ? await memory?.getThreadById({
|
|
1180
1180
|
threadId: threadId2
|
|
1181
|
-
});
|
|
1181
|
+
}) : void 0;
|
|
1182
1182
|
if (memory && resourceId && thread) {
|
|
1183
1183
|
try {
|
|
1184
1184
|
const userMessage = this.getMostRecentUserMessage(messages);
|
|
@@ -1174,9 +1174,9 @@ var Agent = class extends (_a = MastraBase) {
|
|
|
1174
1174
|
threadId: threadId2
|
|
1175
1175
|
});
|
|
1176
1176
|
const memory = this.getMemory();
|
|
1177
|
-
const thread = await memory?.getThreadById({
|
|
1177
|
+
const thread = threadId2 ? await memory?.getThreadById({
|
|
1178
1178
|
threadId: threadId2
|
|
1179
|
-
});
|
|
1179
|
+
}) : void 0;
|
|
1180
1180
|
if (memory && resourceId && thread) {
|
|
1181
1181
|
try {
|
|
1182
1182
|
const userMessage = this.getMostRecentUserMessage(messages);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunk75XZXEUM_cjs = require('./chunk-75XZXEUM.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 chunk75XZXEUM_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.
|
package/dist/index.cjs
CHANGED
|
@@ -6,9 +6,9 @@ var chunkXLSROQ26_cjs = require('./chunk-XLSROQ26.cjs');
|
|
|
6
6
|
var chunkLHUFN2BG_cjs = require('./chunk-LHUFN2BG.cjs');
|
|
7
7
|
var chunk5ROCYEY7_cjs = require('./chunk-5ROCYEY7.cjs');
|
|
8
8
|
var chunkRUA6BSB6_cjs = require('./chunk-RUA6BSB6.cjs');
|
|
9
|
-
var
|
|
9
|
+
var chunkZG5FKEL2_cjs = require('./chunk-ZG5FKEL2.cjs');
|
|
10
10
|
var chunkWVVKLIUW_cjs = require('./chunk-WVVKLIUW.cjs');
|
|
11
|
-
var
|
|
11
|
+
var chunk75XZXEUM_cjs = require('./chunk-75XZXEUM.cjs');
|
|
12
12
|
var chunkXB2TJ7LX_cjs = require('./chunk-XB2TJ7LX.cjs');
|
|
13
13
|
var chunkWSMI66XC_cjs = require('./chunk-WSMI66XC.cjs');
|
|
14
14
|
var chunk2W2GYEYQ_cjs = require('./chunk-2W2GYEYQ.cjs');
|
|
@@ -19,7 +19,7 @@ var chunkV5ORZPFW_cjs = require('./chunk-V5ORZPFW.cjs');
|
|
|
19
19
|
var chunkST5RMVLG_cjs = require('./chunk-ST5RMVLG.cjs');
|
|
20
20
|
|
|
21
21
|
// src/agent/index.warning.ts
|
|
22
|
-
var Agent2 = class extends
|
|
22
|
+
var Agent2 = class extends chunk75XZXEUM_cjs.Agent {
|
|
23
23
|
constructor(config) {
|
|
24
24
|
super(config);
|
|
25
25
|
this.logger.warn('Please import "Agent from "@mastra/core/agent" instead of "@mastra/core"');
|
|
@@ -180,15 +180,15 @@ Object.defineProperty(exports, "Mastra", {
|
|
|
180
180
|
});
|
|
181
181
|
Object.defineProperty(exports, "CohereRelevanceScorer", {
|
|
182
182
|
enumerable: true,
|
|
183
|
-
get: function () { return
|
|
183
|
+
get: function () { return chunkZG5FKEL2_cjs.CohereRelevanceScorer; }
|
|
184
184
|
});
|
|
185
185
|
Object.defineProperty(exports, "MastraAgentRelevanceScorer", {
|
|
186
186
|
enumerable: true,
|
|
187
|
-
get: function () { return
|
|
187
|
+
get: function () { return chunkZG5FKEL2_cjs.MastraAgentRelevanceScorer; }
|
|
188
188
|
});
|
|
189
189
|
Object.defineProperty(exports, "createSimilarityPrompt", {
|
|
190
190
|
enumerable: true,
|
|
191
|
-
get: function () { return
|
|
191
|
+
get: function () { return chunkZG5FKEL2_cjs.createSimilarityPrompt; }
|
|
192
192
|
});
|
|
193
193
|
Object.defineProperty(exports, "InstrumentClass", {
|
|
194
194
|
enumerable: true,
|
package/dist/index.js
CHANGED
|
@@ -5,9 +5,9 @@ import { Integration, OpenAPIToolset } from './chunk-PNZK456O.js';
|
|
|
5
5
|
export { Mastra } from './chunk-U6V76AAB.js';
|
|
6
6
|
import { MastraMemory } from './chunk-OC5LOLNS.js';
|
|
7
7
|
import { MastraVector } from './chunk-ZABXT2MN.js';
|
|
8
|
-
export { CohereRelevanceScorer, MastraAgentRelevanceScorer, createSimilarityPrompt } from './chunk-
|
|
8
|
+
export { CohereRelevanceScorer, MastraAgentRelevanceScorer, createSimilarityPrompt } from './chunk-F6KZ3CUF.js';
|
|
9
9
|
import { MastraStorage } from './chunk-RU7CSPAV.js';
|
|
10
|
-
import { Agent } from './chunk-
|
|
10
|
+
import { Agent } from './chunk-DW4X6TXX.js';
|
|
11
11
|
export { InstrumentClass, OTLPTraceExporter as OTLPStorageExporter, Telemetry, hasActiveTelemetry, withSpan } from './chunk-W5HVJX45.js';
|
|
12
12
|
export { createMastraProxy, deepMerge, delay, ensureToolProperties, isVercelTool, jsonSchemaPropertiesToTSTypes, jsonSchemaToModel, makeCoreTool, maskStreamTags, resolveSerializedZodOutput } from './chunk-64NEAPI4.js';
|
|
13
13
|
import { Tool } from './chunk-ZINPRHAN.js';
|
package/dist/network/index.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunk75XZXEUM_cjs = require('../chunk-75XZXEUM.cjs');
|
|
4
4
|
var chunk2W2GYEYQ_cjs = require('../chunk-2W2GYEYQ.cjs');
|
|
5
5
|
var chunkPL7PVTGF_cjs = require('../chunk-PL7PVTGF.cjs');
|
|
6
6
|
var chunkNPOKIPWC_cjs = require('../chunk-NPOKIPWC.cjs');
|
|
@@ -17,7 +17,7 @@ var AgentNetwork = class extends chunkPL7PVTGF_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 chunk75XZXEUM_cjs.Agent({
|
|
21
21
|
name: config.name,
|
|
22
22
|
instructions: this.getInstructions(),
|
|
23
23
|
model: this.#model,
|
package/dist/network/index.js
CHANGED
package/dist/relevance/index.cjs
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkZG5FKEL2_cjs = require('../chunk-ZG5FKEL2.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 chunkZG5FKEL2_cjs.CohereRelevanceScorer; }
|
|
10
10
|
});
|
|
11
11
|
Object.defineProperty(exports, "MastraAgentRelevanceScorer", {
|
|
12
12
|
enumerable: true,
|
|
13
|
-
get: function () { return
|
|
13
|
+
get: function () { return chunkZG5FKEL2_cjs.MastraAgentRelevanceScorer; }
|
|
14
14
|
});
|
|
15
15
|
Object.defineProperty(exports, "createSimilarityPrompt", {
|
|
16
16
|
enumerable: true,
|
|
17
|
-
get: function () { return
|
|
17
|
+
get: function () { return chunkZG5FKEL2_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-F6KZ3CUF.js';
|