@mastra/core 0.15.3-alpha.9 → 0.16.0-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +77 -0
- package/dist/agent/index.cjs +8 -8
- package/dist/agent/index.d.ts.map +1 -1
- package/dist/agent/index.js +1 -1
- package/dist/agent/input-processor/index.cjs +6 -6
- package/dist/agent/input-processor/index.js +1 -1
- package/dist/{chunk-K6UMYGK5.cjs → chunk-3CJXUAA2.cjs} +2 -2
- package/dist/{chunk-K6UMYGK5.cjs.map → chunk-3CJXUAA2.cjs.map} +1 -1
- package/dist/{chunk-AWES6LTC.cjs → chunk-7NKIBBCV.cjs} +4 -4
- package/dist/{chunk-AWES6LTC.cjs.map → chunk-7NKIBBCV.cjs.map} +1 -1
- package/dist/chunk-ABJOUEVA.cjs +10 -0
- package/dist/chunk-ABJOUEVA.cjs.map +1 -0
- package/dist/{chunk-VZYIKGJ6.cjs → chunk-AHJY7RHO.cjs} +4 -4
- package/dist/{chunk-VZYIKGJ6.cjs.map → chunk-AHJY7RHO.cjs.map} +1 -1
- package/dist/{chunk-AEE54ND4.js → chunk-AJXRKF6P.js} +13 -7
- package/dist/chunk-AJXRKF6P.js.map +1 -0
- package/dist/{chunk-Z637KSJF.cjs → chunk-BHB4PDNV.cjs} +4 -4
- package/dist/{chunk-Z637KSJF.cjs.map → chunk-BHB4PDNV.cjs.map} +1 -1
- package/dist/{chunk-PDODMDSQ.js → chunk-FAGDTY7M.js} +3 -3
- package/dist/{chunk-PDODMDSQ.js.map → chunk-FAGDTY7M.js.map} +1 -1
- package/dist/{chunk-QQO4SF3C.js → chunk-FCNVKNBE.js} +16 -6
- package/dist/chunk-FCNVKNBE.js.map +1 -0
- package/dist/{chunk-FTAXL6TR.cjs → chunk-FTDWZOPH.cjs} +25 -15
- package/dist/chunk-FTDWZOPH.cjs.map +1 -0
- package/dist/chunk-IHVB4C5U.cjs +4 -0
- package/dist/{chunk-X4RMXTXF.cjs.map → chunk-IHVB4C5U.cjs.map} +1 -1
- package/dist/{chunk-ZHFYYSVY.cjs → chunk-JBCB54LR.cjs} +17 -11
- package/dist/chunk-JBCB54LR.cjs.map +1 -0
- package/dist/{chunk-YGW2WEJ5.js → chunk-JTU7FZ5O.js} +2 -2
- package/dist/{chunk-YGW2WEJ5.js.map → chunk-JTU7FZ5O.js.map} +1 -1
- package/dist/{chunk-EZCMCWSC.cjs → chunk-KPEYRIL4.cjs} +130 -60
- package/dist/chunk-KPEYRIL4.cjs.map +1 -0
- package/dist/chunk-NLNKQD2T.js +7 -0
- package/dist/chunk-NLNKQD2T.js.map +1 -0
- package/dist/{chunk-65ZPZGFH.cjs → chunk-OX7VSHIN.cjs} +4 -4
- package/dist/{chunk-65ZPZGFH.cjs.map → chunk-OX7VSHIN.cjs.map} +1 -1
- package/dist/{chunk-4VU6A5XE.js → chunk-QQIBOVFQ.js} +3 -3
- package/dist/{chunk-4VU6A5XE.js.map → chunk-QQIBOVFQ.js.map} +1 -1
- package/dist/{chunk-AVPW677Z.js → chunk-RRBS3FVU.js} +116 -46
- package/dist/chunk-RRBS3FVU.js.map +1 -0
- package/dist/chunk-S43VACTO.js +3 -0
- package/dist/{chunk-GXSERFAG.js.map → chunk-S43VACTO.js.map} +1 -1
- package/dist/{chunk-R7K2QO7M.js → chunk-TLJPVRO5.js} +4 -4
- package/dist/{chunk-R7K2QO7M.js.map → chunk-TLJPVRO5.js.map} +1 -1
- package/dist/chunk-UM2UEDFU.js +665 -0
- package/dist/chunk-UM2UEDFU.js.map +1 -0
- package/dist/chunk-XDSZO4OG.cjs +673 -0
- package/dist/chunk-XDSZO4OG.cjs.map +1 -0
- package/dist/{chunk-VZS4UVKF.js → chunk-YFAHGS45.js} +3 -3
- package/dist/{chunk-VZS4UVKF.js.map → chunk-YFAHGS45.js.map} +1 -1
- package/dist/index.cjs +31 -31
- package/dist/index.js +8 -8
- package/dist/loop/index.cjs +2 -2
- package/dist/loop/index.js +1 -1
- package/dist/loop/workflow/llm-execution.d.ts +4 -4
- package/dist/loop/workflow/outer-llm-step.d.ts +2 -2
- package/dist/loop/workflow/schema.d.ts +2 -2
- package/dist/mastra/hooks.d.ts +3 -1
- package/dist/mastra/hooks.d.ts.map +1 -1
- package/dist/mastra/index.cjs +2 -2
- package/dist/mastra/index.js +1 -1
- package/dist/network/index.cjs +2 -2
- package/dist/network/index.js +1 -1
- package/dist/network/vNext/index.cjs +15 -15
- package/dist/network/vNext/index.js +2 -2
- package/dist/processors/index.cjs +8 -8
- package/dist/processors/index.js +2 -2
- package/dist/relevance/index.cjs +4 -4
- package/dist/relevance/index.js +1 -1
- package/dist/scores/hooks.d.ts +3 -1
- package/dist/scores/hooks.d.ts.map +1 -1
- package/dist/scores/index.cjs +29 -638
- package/dist/scores/index.cjs.map +1 -1
- package/dist/scores/index.js +1 -636
- package/dist/scores/index.js.map +1 -1
- package/dist/scores/types.d.ts +80 -0
- package/dist/scores/types.d.ts.map +1 -1
- package/dist/server/index.cjs +2 -2
- package/dist/server/index.js +1 -1
- package/dist/storage/base.d.ts +2 -2
- package/dist/storage/base.d.ts.map +1 -1
- package/dist/storage/domains/memory/inmemory.d.ts.map +1 -1
- package/dist/storage/index.cjs +8 -6
- package/dist/storage/index.cjs.map +1 -1
- package/dist/storage/index.js +4 -2
- package/dist/storage/index.js.map +1 -1
- package/dist/stream/base/output.d.ts.map +1 -1
- package/dist/stream/index.cjs +3 -3
- package/dist/stream/index.js +1 -1
- package/dist/telemetry/index.cjs +7 -7
- package/dist/telemetry/index.js +1 -1
- package/dist/tools/index.d.ts +1 -0
- package/dist/tools/index.d.ts.map +1 -1
- package/dist/tools/ui-types.d.ts +39 -0
- package/dist/tools/ui-types.d.ts.map +1 -0
- package/dist/tts/index.cjs +2 -2
- package/dist/tts/index.js +1 -1
- package/dist/voice/index.cjs +4 -4
- package/dist/voice/index.js +1 -1
- package/dist/workflows/constants.cjs +6 -2
- package/dist/workflows/constants.d.ts +1 -0
- package/dist/workflows/constants.d.ts.map +1 -1
- package/dist/workflows/constants.js +1 -1
- package/dist/workflows/default.d.ts +6 -3
- package/dist/workflows/default.d.ts.map +1 -1
- package/dist/workflows/evented/execution-engine.d.ts +1 -0
- package/dist/workflows/evented/execution-engine.d.ts.map +1 -1
- package/dist/workflows/evented/index.cjs +10 -10
- package/dist/workflows/evented/index.js +1 -1
- package/dist/workflows/evented/step-executor.d.ts.map +1 -1
- package/dist/workflows/execution-engine.d.ts +1 -0
- package/dist/workflows/execution-engine.d.ts.map +1 -1
- package/dist/workflows/index.cjs +10 -10
- package/dist/workflows/index.js +1 -1
- package/dist/workflows/legacy/index.cjs +22 -22
- package/dist/workflows/legacy/index.js +1 -1
- package/dist/workflows/step.d.ts +2 -1
- package/dist/workflows/step.d.ts.map +1 -1
- package/dist/workflows/types.d.ts +13 -1
- package/dist/workflows/types.d.ts.map +1 -1
- package/dist/workflows/workflow.d.ts +9 -1
- package/dist/workflows/workflow.d.ts.map +1 -1
- package/package.json +4 -4
- package/dist/chunk-AEE54ND4.js.map +0 -1
- package/dist/chunk-AVPW677Z.js.map +0 -1
- package/dist/chunk-EZCMCWSC.cjs.map +0 -1
- package/dist/chunk-FTAXL6TR.cjs.map +0 -1
- package/dist/chunk-GK5V7YTQ.js +0 -6
- package/dist/chunk-GK5V7YTQ.js.map +0 -1
- package/dist/chunk-GXSERFAG.js +0 -3
- package/dist/chunk-NFXTYMWZ.cjs +0 -8
- package/dist/chunk-NFXTYMWZ.cjs.map +0 -1
- package/dist/chunk-QQO4SF3C.js.map +0 -1
- package/dist/chunk-X4RMXTXF.cjs +0 -4
- package/dist/chunk-ZHFYYSVY.cjs.map +0 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
var
|
|
3
|
+
var chunkKPEYRIL4_cjs = require('../../chunk-KPEYRIL4.cjs');
|
|
4
|
+
var chunkABJOUEVA_cjs = require('../../chunk-ABJOUEVA.cjs');
|
|
5
5
|
var chunkSIKEQ32R_cjs = require('../../chunk-SIKEQ32R.cjs');
|
|
6
6
|
var chunkGPWMM745_cjs = require('../../chunk-GPWMM745.cjs');
|
|
7
7
|
var chunkKXCUCBEI_cjs = require('../../chunk-KXCUCBEI.cjs');
|
|
@@ -210,7 +210,7 @@ var NewAgentNetwork = class extends chunkKXCUCBEI_cjs.MastraBase {
|
|
|
210
210
|
|
|
211
211
|
Keep in mind that the user only sees the final result of the task. When reviewing completion, you should know that the user will not see the intermediate results.
|
|
212
212
|
`;
|
|
213
|
-
return new
|
|
213
|
+
return new chunkKPEYRIL4_cjs.Agent({
|
|
214
214
|
name: "routing-agent",
|
|
215
215
|
instructions,
|
|
216
216
|
model: this.#model,
|
|
@@ -226,7 +226,7 @@ var NewAgentNetwork = class extends chunkKXCUCBEI_cjs.MastraBase {
|
|
|
226
226
|
resourceId
|
|
227
227
|
}) {
|
|
228
228
|
const networkWorkflow = this.createWorkflow({ runtimeContext });
|
|
229
|
-
const finalStep =
|
|
229
|
+
const finalStep = chunkKPEYRIL4_cjs.createStep({
|
|
230
230
|
id: "final-step",
|
|
231
231
|
inputSchema: networkWorkflow.outputSchema,
|
|
232
232
|
outputSchema: networkWorkflow.outputSchema,
|
|
@@ -240,7 +240,7 @@ var NewAgentNetwork = class extends chunkKXCUCBEI_cjs.MastraBase {
|
|
|
240
240
|
return inputData;
|
|
241
241
|
}
|
|
242
242
|
});
|
|
243
|
-
const mainWorkflow =
|
|
243
|
+
const mainWorkflow = chunkKPEYRIL4_cjs.createWorkflow({
|
|
244
244
|
id: "Agent-Network-Main-Workflow",
|
|
245
245
|
inputSchema: zod.z.object({
|
|
246
246
|
iteration: zod.z.number(),
|
|
@@ -285,7 +285,7 @@ var NewAgentNetwork = class extends chunkKXCUCBEI_cjs.MastraBase {
|
|
|
285
285
|
resourceId
|
|
286
286
|
}) {
|
|
287
287
|
const networkWorkflow = this.createWorkflow({ runtimeContext });
|
|
288
|
-
const finalStep =
|
|
288
|
+
const finalStep = chunkKPEYRIL4_cjs.createStep({
|
|
289
289
|
id: "final-step",
|
|
290
290
|
inputSchema: networkWorkflow.outputSchema,
|
|
291
291
|
outputSchema: networkWorkflow.outputSchema,
|
|
@@ -299,7 +299,7 @@ var NewAgentNetwork = class extends chunkKXCUCBEI_cjs.MastraBase {
|
|
|
299
299
|
return inputData;
|
|
300
300
|
}
|
|
301
301
|
});
|
|
302
|
-
const mainWorkflow =
|
|
302
|
+
const mainWorkflow = chunkKPEYRIL4_cjs.createWorkflow({
|
|
303
303
|
id: "Agent-Network-Main-Workflow",
|
|
304
304
|
inputSchema: zod.z.object({
|
|
305
305
|
iteration: zod.z.number(),
|
|
@@ -349,7 +349,7 @@ var NewAgentNetwork = class extends chunkKXCUCBEI_cjs.MastraBase {
|
|
|
349
349
|
createWorkflow({ runtimeContext }) {
|
|
350
350
|
const runId = this.#mastra?.generateId() || crypto.randomUUID();
|
|
351
351
|
const runtimeContextToUse = runtimeContext || new chunkGPWMM745_cjs.RuntimeContext();
|
|
352
|
-
const routingStep =
|
|
352
|
+
const routingStep = chunkKPEYRIL4_cjs.createStep({
|
|
353
353
|
id: "routing-step",
|
|
354
354
|
inputSchema: zod.z.object({
|
|
355
355
|
task: zod.z.string(),
|
|
@@ -479,7 +479,7 @@ ${completionResult.object.finalResult}` : ""}
|
|
|
479
479
|
};
|
|
480
480
|
}
|
|
481
481
|
});
|
|
482
|
-
const agentStep =
|
|
482
|
+
const agentStep = chunkKPEYRIL4_cjs.createStep({
|
|
483
483
|
id: "agent-step",
|
|
484
484
|
inputSchema: zod.z.object({
|
|
485
485
|
task: zod.z.string(),
|
|
@@ -499,7 +499,7 @@ ${completionResult.object.finalResult}` : ""}
|
|
|
499
499
|
isComplete: zod.z.boolean().optional(),
|
|
500
500
|
iteration: zod.z.number()
|
|
501
501
|
}),
|
|
502
|
-
execute: async ({ inputData, [
|
|
502
|
+
execute: async ({ inputData, [chunkABJOUEVA_cjs.EMITTER_SYMBOL]: emitter, getInitData }) => {
|
|
503
503
|
const agentsMap = await this.getAgents({ runtimeContext: runtimeContextToUse });
|
|
504
504
|
const agentId = inputData.resourceId;
|
|
505
505
|
const agent = agentsMap[inputData.resourceId];
|
|
@@ -615,7 +615,7 @@ ${completionResult.object.finalResult}` : ""}
|
|
|
615
615
|
};
|
|
616
616
|
}
|
|
617
617
|
});
|
|
618
|
-
const workflowStep =
|
|
618
|
+
const workflowStep = chunkKPEYRIL4_cjs.createStep({
|
|
619
619
|
id: "workflow-step",
|
|
620
620
|
inputSchema: zod.z.object({
|
|
621
621
|
task: zod.z.string(),
|
|
@@ -635,7 +635,7 @@ ${completionResult.object.finalResult}` : ""}
|
|
|
635
635
|
isComplete: zod.z.boolean().optional(),
|
|
636
636
|
iteration: zod.z.number()
|
|
637
637
|
}),
|
|
638
|
-
execute: async ({ inputData, [
|
|
638
|
+
execute: async ({ inputData, [chunkABJOUEVA_cjs.EMITTER_SYMBOL]: emitter, getInitData }) => {
|
|
639
639
|
const workflowsMap = await this.getWorkflows({ runtimeContext: runtimeContextToUse });
|
|
640
640
|
const wf = workflowsMap[inputData.resourceId];
|
|
641
641
|
if (!wf) {
|
|
@@ -737,7 +737,7 @@ ${completionResult.object.finalResult}` : ""}
|
|
|
737
737
|
};
|
|
738
738
|
}
|
|
739
739
|
});
|
|
740
|
-
const toolStep =
|
|
740
|
+
const toolStep = chunkKPEYRIL4_cjs.createStep({
|
|
741
741
|
id: "toolStep",
|
|
742
742
|
inputSchema: zod.z.object({
|
|
743
743
|
task: zod.z.string(),
|
|
@@ -809,7 +809,7 @@ ${completionResult.object.finalResult}` : ""}
|
|
|
809
809
|
};
|
|
810
810
|
}
|
|
811
811
|
});
|
|
812
|
-
const finishStep =
|
|
812
|
+
const finishStep = chunkKPEYRIL4_cjs.createStep({
|
|
813
813
|
id: "finish-step",
|
|
814
814
|
inputSchema: zod.z.object({
|
|
815
815
|
task: zod.z.string(),
|
|
@@ -836,7 +836,7 @@ ${completionResult.object.finalResult}` : ""}
|
|
|
836
836
|
};
|
|
837
837
|
}
|
|
838
838
|
});
|
|
839
|
-
const networkWorkflow =
|
|
839
|
+
const networkWorkflow = chunkKPEYRIL4_cjs.createWorkflow({
|
|
840
840
|
id: "Agent-Network-Outer-Workflow",
|
|
841
841
|
inputSchema: zod.z.object({
|
|
842
842
|
task: zod.z.string(),
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Agent, createStep, createWorkflow } from '../../chunk-
|
|
2
|
-
import { EMITTER_SYMBOL } from '../../chunk-
|
|
1
|
+
import { Agent, createStep, createWorkflow } from '../../chunk-RRBS3FVU.js';
|
|
2
|
+
import { EMITTER_SYMBOL } from '../../chunk-NLNKQD2T.js';
|
|
3
3
|
import { MessageList } from '../../chunk-HF7HXOCC.js';
|
|
4
4
|
import { RuntimeContext } from '../../chunk-HLRWYUFN.js';
|
|
5
5
|
import { MastraBase } from '../../chunk-6GF5M4GX.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkKPEYRIL4_cjs = require('../chunk-KPEYRIL4.cjs');
|
|
4
4
|
var lite = require('js-tiktoken/lite');
|
|
5
5
|
var o200k_base = require('js-tiktoken/ranks/o200k_base');
|
|
6
6
|
var zod = require('zod');
|
|
@@ -271,7 +271,7 @@ var SystemPromptScrubber = class {
|
|
|
271
271
|
this.placeholderText = options.placeholderText || "[SYSTEM_PROMPT]";
|
|
272
272
|
this.instructions = options.instructions || this.getDefaultInstructions();
|
|
273
273
|
this.model = options.model;
|
|
274
|
-
this.detectionAgent = new
|
|
274
|
+
this.detectionAgent = new chunkKPEYRIL4_cjs.Agent({
|
|
275
275
|
name: "system-prompt-detector",
|
|
276
276
|
model: this.model,
|
|
277
277
|
instructions: this.instructions
|
|
@@ -499,27 +499,27 @@ Be thorough but avoid false positives. Only flag content that genuinely represen
|
|
|
499
499
|
|
|
500
500
|
Object.defineProperty(exports, "LanguageDetector", {
|
|
501
501
|
enumerable: true,
|
|
502
|
-
get: function () { return
|
|
502
|
+
get: function () { return chunkKPEYRIL4_cjs.LanguageDetector; }
|
|
503
503
|
});
|
|
504
504
|
Object.defineProperty(exports, "ModerationProcessor", {
|
|
505
505
|
enumerable: true,
|
|
506
|
-
get: function () { return
|
|
506
|
+
get: function () { return chunkKPEYRIL4_cjs.ModerationProcessor; }
|
|
507
507
|
});
|
|
508
508
|
Object.defineProperty(exports, "PIIDetector", {
|
|
509
509
|
enumerable: true,
|
|
510
|
-
get: function () { return
|
|
510
|
+
get: function () { return chunkKPEYRIL4_cjs.PIIDetector; }
|
|
511
511
|
});
|
|
512
512
|
Object.defineProperty(exports, "PromptInjectionDetector", {
|
|
513
513
|
enumerable: true,
|
|
514
|
-
get: function () { return
|
|
514
|
+
get: function () { return chunkKPEYRIL4_cjs.PromptInjectionDetector; }
|
|
515
515
|
});
|
|
516
516
|
Object.defineProperty(exports, "StructuredOutputProcessor", {
|
|
517
517
|
enumerable: true,
|
|
518
|
-
get: function () { return
|
|
518
|
+
get: function () { return chunkKPEYRIL4_cjs.StructuredOutputProcessor; }
|
|
519
519
|
});
|
|
520
520
|
Object.defineProperty(exports, "UnicodeNormalizer", {
|
|
521
521
|
enumerable: true,
|
|
522
|
-
get: function () { return
|
|
522
|
+
get: function () { return chunkKPEYRIL4_cjs.UnicodeNormalizer; }
|
|
523
523
|
});
|
|
524
524
|
exports.BatchPartsProcessor = BatchPartsProcessor;
|
|
525
525
|
exports.SystemPromptScrubber = SystemPromptScrubber;
|
package/dist/processors/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Agent } from '../chunk-
|
|
2
|
-
export { LanguageDetector, ModerationProcessor, PIIDetector, PromptInjectionDetector, StructuredOutputProcessor, UnicodeNormalizer } from '../chunk-
|
|
1
|
+
import { Agent } from '../chunk-RRBS3FVU.js';
|
|
2
|
+
export { LanguageDetector, ModerationProcessor, PIIDetector, PromptInjectionDetector, StructuredOutputProcessor, UnicodeNormalizer } from '../chunk-RRBS3FVU.js';
|
|
3
3
|
import { Tiktoken } from 'js-tiktoken/lite';
|
|
4
4
|
import o200k_base from 'js-tiktoken/ranks/o200k_base';
|
|
5
5
|
import { z } from 'zod';
|
package/dist/relevance/index.cjs
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkOX7VSHIN_cjs = require('../chunk-OX7VSHIN.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 chunkOX7VSHIN_cjs.CohereRelevanceScorer; }
|
|
10
10
|
});
|
|
11
11
|
Object.defineProperty(exports, "MastraAgentRelevanceScorer", {
|
|
12
12
|
enumerable: true,
|
|
13
|
-
get: function () { return
|
|
13
|
+
get: function () { return chunkOX7VSHIN_cjs.MastraAgentRelevanceScorer; }
|
|
14
14
|
});
|
|
15
15
|
Object.defineProperty(exports, "createSimilarityPrompt", {
|
|
16
16
|
enumerable: true,
|
|
17
|
-
get: function () { return
|
|
17
|
+
get: function () { return chunkOX7VSHIN_cjs.createSimilarityPrompt; }
|
|
18
18
|
});
|
|
19
19
|
//# sourceMappingURL=index.cjs.map
|
|
20
20
|
//# sourceMappingURL=index.cjs.map
|
package/dist/relevance/index.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { CohereRelevanceScorer, MastraAgentRelevanceScorer, createSimilarityPrompt } from '../chunk-
|
|
1
|
+
export { CohereRelevanceScorer, MastraAgentRelevanceScorer, createSimilarityPrompt } from '../chunk-FAGDTY7M.js';
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
|
3
3
|
//# sourceMappingURL=index.js.map
|
package/dist/scores/hooks.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
|
+
import type { TracingContext } from '../ai-tracing/types.js';
|
|
1
2
|
import type { MastraScorerEntry } from './base.js';
|
|
2
3
|
import type { ScoringEntityType, ScoringSource } from './types.js';
|
|
3
|
-
export declare function runScorer({ runId, scorerId, scorerObject, input, output, runtimeContext, entity, structuredOutput, source, entityType, threadId, resourceId, }: {
|
|
4
|
+
export declare function runScorer({ runId, scorerId, scorerObject, input, output, runtimeContext, entity, structuredOutput, source, entityType, threadId, resourceId, tracingContext, }: {
|
|
4
5
|
scorerId: string;
|
|
5
6
|
scorerObject: MastraScorerEntry;
|
|
6
7
|
runId: string;
|
|
@@ -13,5 +14,6 @@ export declare function runScorer({ runId, scorerId, scorerObject, input, output
|
|
|
13
14
|
entityType: ScoringEntityType;
|
|
14
15
|
threadId?: string;
|
|
15
16
|
resourceId?: string;
|
|
17
|
+
tracingContext?: TracingContext;
|
|
16
18
|
}): void;
|
|
17
19
|
//# sourceMappingURL=hooks.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"hooks.d.ts","sourceRoot":"","sources":["../../src/scores/hooks.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"hooks.d.ts","sourceRoot":"","sources":["../../src/scores/hooks.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAE1D,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,QAAQ,CAAC;AAChD,OAAO,KAAK,EAAE,iBAAiB,EAAoB,aAAa,EAAE,MAAM,SAAS,CAAC;AAElF,wBAAgB,SAAS,CAAC,EACxB,KAAK,EACL,QAAQ,EACR,YAAY,EACZ,KAAK,EACL,MAAM,EACN,cAAc,EACd,MAAM,EACN,gBAAgB,EAChB,MAAM,EACN,UAAU,EACV,QAAQ,EACR,UAAU,EACV,cAAc,GACf,EAAE;IACD,QAAQ,EAAE,MAAM,CAAC;IACjB,YAAY,EAAE,iBAAiB,CAAC;IAChC,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,GAAG,CAAC;IACX,MAAM,EAAE,GAAG,CAAC;IACZ,cAAc,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IACpC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IAC5B,gBAAgB,EAAE,OAAO,CAAC;IAC1B,MAAM,EAAE,aAAa,CAAC;IACtB,UAAU,EAAE,iBAAiB,CAAC;IAC9B,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,cAAc,CAAC,EAAE,cAAc,CAAC;CACjC,QAyCA"}
|