@mastra/server 0.0.0-consolidate-changesets-20250904042643 → 0.0.0-cor235-20251008175106
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 +523 -4
- package/README.md +0 -5
- package/dist/chunk-2PLXW4ZX.cjs +2777 -0
- package/dist/chunk-2PLXW4ZX.cjs.map +1 -0
- package/dist/{chunk-L265APUD.cjs → chunk-2S4IMB6E.cjs} +66 -5
- package/dist/chunk-2S4IMB6E.cjs.map +1 -0
- package/dist/{chunk-KLCYAQBL.cjs → chunk-3SNGNFUJ.cjs} +23 -15
- package/dist/chunk-3SNGNFUJ.cjs.map +1 -0
- package/dist/{chunk-OW4FX5TS.js → chunk-4QCXUEAT.js} +10 -3
- package/dist/chunk-4QCXUEAT.js.map +1 -0
- package/dist/{chunk-7QEJ5QG5.js → chunk-5BNQIYQN.js} +61 -23
- package/dist/chunk-5BNQIYQN.js.map +1 -0
- package/dist/{chunk-KV6VHX4V.js → chunk-67GYDFSB.js} +3 -3
- package/dist/{chunk-KV6VHX4V.js.map → chunk-67GYDFSB.js.map} +1 -1
- package/dist/{chunk-PWTXZZTR.cjs → chunk-6ZR275MD.cjs} +4 -4
- package/dist/{chunk-PWTXZZTR.cjs.map → chunk-6ZR275MD.cjs.map} +1 -1
- package/dist/chunk-7HDOBOGG.cjs +17517 -0
- package/dist/chunk-7HDOBOGG.cjs.map +1 -0
- package/dist/{chunk-ROA7BCHD.js → chunk-ABRFV4XP.js} +4 -4
- package/dist/{chunk-ROA7BCHD.js.map → chunk-ABRFV4XP.js.map} +1 -1
- package/dist/{chunk-A3ZHTDWB.js → chunk-AHB4JCIQ.js} +10 -6
- package/dist/chunk-AHB4JCIQ.js.map +1 -0
- package/dist/chunk-BATEJLED.js +124 -0
- package/dist/chunk-BATEJLED.js.map +1 -0
- package/dist/chunk-BZLZFHAT.cjs +682 -0
- package/dist/chunk-BZLZFHAT.cjs.map +1 -0
- package/dist/{chunk-OZGPYA7A.js → chunk-DB63UMTV.js} +201 -120
- package/dist/chunk-DB63UMTV.js.map +1 -0
- package/dist/{chunk-T3TIA3O6.cjs → chunk-EP3JQDPD.cjs} +4 -4
- package/dist/{chunk-T3TIA3O6.cjs.map → chunk-EP3JQDPD.cjs.map} +1 -1
- package/dist/chunk-FWO7VQDC.js +17481 -0
- package/dist/chunk-FWO7VQDC.js.map +1 -0
- package/dist/chunk-FZNS32WJ.js +46 -0
- package/dist/chunk-FZNS32WJ.js.map +1 -0
- package/dist/{chunk-4QSNRCOT.cjs → chunk-G4PUALCE.cjs} +10 -2
- package/dist/chunk-G4PUALCE.cjs.map +1 -0
- package/dist/{chunk-5QUKZCEF.js → chunk-HPXAM2PG.js} +5 -4
- package/dist/chunk-HPXAM2PG.js.map +1 -0
- package/dist/{chunk-KNGXRN26.cjs → chunk-I3C4ODGV.cjs} +4 -4
- package/dist/{chunk-KNGXRN26.cjs.map → chunk-I3C4ODGV.cjs.map} +1 -1
- package/dist/chunk-JSLAYFEW.js +662 -0
- package/dist/chunk-JSLAYFEW.js.map +1 -0
- package/dist/{chunk-TTHEEIZ3.js → chunk-LLUOPR3J.js} +3 -3
- package/dist/{chunk-TTHEEIZ3.js.map → chunk-LLUOPR3J.js.map} +1 -1
- package/dist/{chunk-GUI3CROV.cjs → chunk-LNT5N7XW.cjs} +62 -24
- package/dist/chunk-LNT5N7XW.cjs.map +1 -0
- package/dist/chunk-LPM6BBAX.cjs +1043 -0
- package/dist/chunk-LPM6BBAX.cjs.map +1 -0
- package/dist/{chunk-E64XEGXM.cjs → chunk-MQDBNHBT.cjs} +206 -124
- package/dist/chunk-MQDBNHBT.cjs.map +1 -0
- package/dist/{chunk-WHN4VX55.js → chunk-MYR4PVGN.js} +3 -3
- package/dist/{chunk-WHN4VX55.js.map → chunk-MYR4PVGN.js.map} +1 -1
- package/dist/{chunk-EMMSS5I5.cjs → chunk-O7I5CWRX.cjs} +10 -3
- package/dist/{chunk-EMMSS5I5.cjs.map → chunk-O7I5CWRX.cjs.map} +1 -1
- package/dist/chunk-OYL5TBJW.cjs +48 -0
- package/dist/chunk-OYL5TBJW.cjs.map +1 -0
- package/dist/{chunk-G3PMV62Z.js → chunk-PR4QN5HX.js} +10 -4
- package/dist/{chunk-G3PMV62Z.js.map → chunk-PR4QN5HX.js.map} +1 -1
- package/dist/{chunk-QBWF6U7Z.js → chunk-QQXMIP6C.js} +21 -13
- package/dist/chunk-QQXMIP6C.js.map +1 -0
- package/dist/chunk-RQK4FQUD.js +1012 -0
- package/dist/chunk-RQK4FQUD.js.map +1 -0
- package/dist/chunk-SIW6CYO3.js +254 -0
- package/dist/chunk-SIW6CYO3.js.map +1 -0
- package/dist/{chunk-3THIIWWW.cjs → chunk-TOP25AIO.cjs} +6 -5
- package/dist/chunk-TOP25AIO.cjs.map +1 -0
- package/dist/{chunk-YFLNLDQV.cjs → chunk-TRGAMKHX.cjs} +12 -8
- package/dist/chunk-TRGAMKHX.cjs.map +1 -0
- package/dist/chunk-VY4ENABS.cjs +135 -0
- package/dist/chunk-VY4ENABS.cjs.map +1 -0
- package/dist/{chunk-LUPY3MQY.js → chunk-WHABYJRY.js} +21 -41
- package/dist/chunk-WHABYJRY.js.map +1 -0
- package/dist/{chunk-NPE3X7FQ.cjs → chunk-XN74I6VW.cjs} +7 -7
- package/dist/{chunk-NPE3X7FQ.cjs.map → chunk-XN74I6VW.cjs.map} +1 -1
- package/dist/chunk-XVPBGW6Y.cjs +256 -0
- package/dist/chunk-XVPBGW6Y.cjs.map +1 -0
- package/dist/{chunk-UVKXRPMV.cjs → chunk-YJU744I4.cjs} +33 -53
- package/dist/chunk-YJU744I4.cjs.map +1 -0
- package/dist/chunk-YWOK4F5A.js +131 -0
- package/dist/chunk-YWOK4F5A.js.map +1 -0
- package/dist/chunk-ZULZ2752.js +2774 -0
- package/dist/chunk-ZULZ2752.js.map +1 -0
- package/dist/dist-4MVGNSRL.cjs +1150 -0
- package/dist/dist-4MVGNSRL.cjs.map +1 -0
- package/dist/dist-FZYCV3VB.cjs +940 -0
- package/dist/dist-FZYCV3VB.cjs.map +1 -0
- package/dist/dist-G2BYZJOC.cjs +928 -0
- package/dist/dist-G2BYZJOC.cjs.map +1 -0
- package/dist/dist-P4MXBQ3U.cjs +16 -0
- package/dist/dist-P4MXBQ3U.cjs.map +1 -0
- package/dist/dist-PQZUVLPC.js +937 -0
- package/dist/dist-PQZUVLPC.js.map +1 -0
- package/dist/dist-R7WYX6LC.js +925 -0
- package/dist/dist-R7WYX6LC.js.map +1 -0
- package/dist/dist-RFMYFILX.cjs +764 -0
- package/dist/dist-RFMYFILX.cjs.map +1 -0
- package/dist/dist-X7XR3M3Z.js +1147 -0
- package/dist/dist-X7XR3M3Z.js.map +1 -0
- package/dist/dist-XVBSOGFK.js +761 -0
- package/dist/dist-XVBSOGFK.js.map +1 -0
- package/dist/dist-YREX2TJT.js +3 -0
- package/dist/dist-YREX2TJT.js.map +1 -0
- package/dist/index.cjs +4 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +3 -0
- package/dist/index.js.map +1 -1
- package/dist/server/handlers/a2a.cjs +7 -7
- package/dist/server/handlers/a2a.d.ts.map +1 -1
- package/dist/server/handlers/a2a.js +1 -1
- package/dist/server/handlers/agent-builder.cjs +16 -16
- package/dist/server/handlers/agent-builder.d.ts +11 -4
- package/dist/server/handlers/agent-builder.d.ts.map +1 -1
- package/dist/server/handlers/agent-builder.js +1 -1
- package/dist/server/handlers/agents.cjs +39 -19
- package/dist/server/handlers/agents.d.ts +126 -51
- package/dist/server/handlers/agents.d.ts.map +1 -1
- package/dist/server/handlers/agents.js +1 -1
- package/dist/server/handlers/legacyWorkflows.cjs +11 -11
- package/dist/server/handlers/legacyWorkflows.js +1 -1
- package/dist/server/handlers/logs.cjs +4 -4
- package/dist/server/handlers/logs.js +1 -1
- package/dist/server/handlers/memory.cjs +16 -16
- package/dist/server/handlers/memory.d.ts +14 -15
- package/dist/server/handlers/memory.d.ts.map +1 -1
- package/dist/server/handlers/memory.js +1 -1
- package/dist/server/handlers/observability.cjs +11 -3
- package/dist/server/handlers/observability.d.ts +27 -1
- package/dist/server/handlers/observability.d.ts.map +1 -1
- package/dist/server/handlers/observability.js +1 -1
- package/dist/server/handlers/scores.cjs +7 -7
- package/dist/server/handlers/scores.d.ts +208 -6
- package/dist/server/handlers/scores.d.ts.map +1 -1
- package/dist/server/handlers/scores.js +1 -1
- package/dist/server/handlers/telemetry.cjs +4 -4
- package/dist/server/handlers/telemetry.js +1 -1
- package/dist/server/handlers/tools.cjs +6 -6
- package/dist/server/handlers/tools.d.ts.map +1 -1
- package/dist/server/handlers/tools.js +1 -1
- package/dist/server/handlers/utils.cjs +6 -2
- package/dist/server/handlers/utils.d.ts +6 -0
- package/dist/server/handlers/utils.d.ts.map +1 -1
- package/dist/server/handlers/utils.js +1 -1
- package/dist/server/handlers/vector.cjs +7 -7
- package/dist/server/handlers/vector.js +1 -1
- package/dist/server/handlers/voice.cjs +5 -5
- package/dist/server/handlers/voice.d.ts +6 -4
- package/dist/server/handlers/voice.d.ts.map +1 -1
- package/dist/server/handlers/voice.js +1 -1
- package/dist/server/handlers/workflows.cjs +28 -16
- package/dist/server/handlers/workflows.d.ts +30 -12
- package/dist/server/handlers/workflows.d.ts.map +1 -1
- package/dist/server/handlers/workflows.js +1 -1
- package/dist/server/handlers.cjs +29 -34
- package/dist/server/handlers.d.ts +0 -1
- package/dist/server/handlers.d.ts.map +1 -1
- package/dist/server/handlers.js +13 -14
- package/dist/server/utils.d.ts +3 -1
- package/dist/server/utils.d.ts.map +1 -1
- package/dist/token-53CFGXUO.cjs +64 -0
- package/dist/token-53CFGXUO.cjs.map +1 -0
- package/dist/token-WAEKDUVY.js +62 -0
- package/dist/token-WAEKDUVY.js.map +1 -0
- package/dist/token-util-LY37VCIN.js +7 -0
- package/dist/token-util-LY37VCIN.js.map +1 -0
- package/dist/token-util-S4A355II.cjs +9 -0
- package/dist/token-util-S4A355II.cjs.map +1 -0
- package/package.json +9 -17
- package/dist/chunk-3THIIWWW.cjs.map +0 -1
- package/dist/chunk-4QSNRCOT.cjs.map +0 -1
- package/dist/chunk-5N6646N2.cjs +0 -17638
- package/dist/chunk-5N6646N2.cjs.map +0 -1
- package/dist/chunk-5QUKZCEF.js.map +0 -1
- package/dist/chunk-7QEJ5QG5.js.map +0 -1
- package/dist/chunk-A3ZHTDWB.js.map +0 -1
- package/dist/chunk-B43YAQJR.js +0 -144
- package/dist/chunk-B43YAQJR.js.map +0 -1
- package/dist/chunk-E64XEGXM.cjs.map +0 -1
- package/dist/chunk-GGCXLQ4J.js +0 -17619
- package/dist/chunk-GGCXLQ4J.js.map +0 -1
- package/dist/chunk-GUI3CROV.cjs.map +0 -1
- package/dist/chunk-JGD42NME.cjs +0 -150
- package/dist/chunk-JGD42NME.cjs.map +0 -1
- package/dist/chunk-KLCYAQBL.cjs.map +0 -1
- package/dist/chunk-L265APUD.cjs.map +0 -1
- package/dist/chunk-LUPY3MQY.js.map +0 -1
- package/dist/chunk-ODGI2PKN.cjs +0 -143
- package/dist/chunk-ODGI2PKN.cjs.map +0 -1
- package/dist/chunk-OW4FX5TS.js.map +0 -1
- package/dist/chunk-OZGPYA7A.js.map +0 -1
- package/dist/chunk-QBWF6U7Z.js.map +0 -1
- package/dist/chunk-R7NOGUZG.js +0 -65
- package/dist/chunk-R7NOGUZG.js.map +0 -1
- package/dist/chunk-UVKXRPMV.cjs.map +0 -1
- package/dist/chunk-V7VWD2Y2.js +0 -126
- package/dist/chunk-V7VWD2Y2.js.map +0 -1
- package/dist/chunk-YFLNLDQV.cjs.map +0 -1
- package/dist/server/handlers/network.cjs +0 -24
- package/dist/server/handlers/network.cjs.map +0 -1
- package/dist/server/handlers/network.d.ts +0 -50
- package/dist/server/handlers/network.d.ts.map +0 -1
- package/dist/server/handlers/network.js +0 -3
- package/dist/server/handlers/network.js.map +0 -1
- package/dist/server/handlers/vNextNetwork.cjs +0 -220
- package/dist/server/handlers/vNextNetwork.cjs.map +0 -1
- package/dist/server/handlers/vNextNetwork.d.ts +0 -179
- package/dist/server/handlers/vNextNetwork.d.ts.map +0 -1
- package/dist/server/handlers/vNextNetwork.js +0 -213
- package/dist/server/handlers/vNextNetwork.js.map +0 -1
|
@@ -1,9 +1,18 @@
|
|
|
1
|
-
import type { AITracesPaginatedArg } from '@mastra/core';
|
|
1
|
+
import type { AITracesPaginatedArg, StoragePagination } from '@mastra/core';
|
|
2
2
|
import type { Context } from '../types.js';
|
|
3
3
|
interface ObservabilityContext extends Context {
|
|
4
4
|
traceId?: string;
|
|
5
5
|
body?: AITracesPaginatedArg;
|
|
6
6
|
}
|
|
7
|
+
interface ScoreTracesContext extends Context {
|
|
8
|
+
body?: {
|
|
9
|
+
scorerName: string;
|
|
10
|
+
targets: Array<{
|
|
11
|
+
traceId: string;
|
|
12
|
+
spanId?: string;
|
|
13
|
+
}>;
|
|
14
|
+
};
|
|
15
|
+
}
|
|
7
16
|
/**
|
|
8
17
|
* Get a complete AI trace by trace ID
|
|
9
18
|
* Returns all spans in the trace with their parent-child relationships
|
|
@@ -19,5 +28,22 @@ export declare function getAITracesPaginatedHandler({ mastra, body }: Observabil
|
|
|
19
28
|
pagination: import("@mastra/core").PaginationInfo;
|
|
20
29
|
spans: import("@mastra/core").AISpanRecord[];
|
|
21
30
|
}>;
|
|
31
|
+
/**
|
|
32
|
+
* Score traces using a specified scorer
|
|
33
|
+
* Fire-and-forget approach - returns immediately while scoring runs in background
|
|
34
|
+
*/
|
|
35
|
+
export declare function scoreTracesHandler({ mastra, body }: ScoreTracesContext): Promise<{
|
|
36
|
+
status: string;
|
|
37
|
+
message: string;
|
|
38
|
+
traceCount: number;
|
|
39
|
+
}>;
|
|
40
|
+
export declare function getScoresBySpan({ mastra, traceId, spanId, pagination, }: Context & {
|
|
41
|
+
traceId: string;
|
|
42
|
+
spanId: string;
|
|
43
|
+
pagination: StoragePagination;
|
|
44
|
+
}): Promise<{
|
|
45
|
+
pagination: import("@mastra/core").PaginationInfo;
|
|
46
|
+
scores: import("@mastra/core/scores").ScoreRowData[];
|
|
47
|
+
}>;
|
|
22
48
|
export {};
|
|
23
49
|
//# sourceMappingURL=observability.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"observability.d.ts","sourceRoot":"","sources":["../../../src/server/handlers/observability.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"observability.d.ts","sourceRoot":"","sources":["../../../src/server/handlers/observability.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAC;AAG5E,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,UAAU,CAAC;AAGxC,UAAU,oBAAqB,SAAQ,OAAO;IAC5C,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,IAAI,CAAC,EAAE,oBAAoB,CAAC;CAC7B;AAED,UAAU,kBAAmB,SAAQ,OAAO;IAC1C,IAAI,CAAC,EAAE;QACL,UAAU,EAAE,MAAM,CAAC;QACnB,OAAO,EAAE,KAAK,CAAC;YACb,OAAO,EAAE,MAAM,CAAC;YAChB,MAAM,CAAC,EAAE,MAAM,CAAC;SACjB,CAAC,CAAC;KACJ,CAAC;CACH;AAED;;;GAGG;AACH,wBAAsB,iBAAiB,CAAC,EAAE,MAAM,EAAE,OAAO,EAAE,EAAE,oBAAoB,GAAG;IAAE,OAAO,EAAE,MAAM,CAAA;CAAE,iDAqBtG;AAED;;;GAGG;AACH,wBAAsB,2BAA2B,CAAC,EAAE,MAAM,EAAE,IAAI,EAAE,EAAE,oBAAoB;;;GAwCvF;AAED;;;GAGG;AACH,wBAAsB,kBAAkB,CAAC,EAAE,MAAM,EAAE,IAAI,EAAE,EAAE,kBAAkB;;;;GA4C5E;AAED,wBAAsB,eAAe,CAAC,EACpC,MAAM,EACN,OAAO,EACP,MAAM,EACN,UAAU,GACX,EAAE,OAAO,GAAG;IAAE,OAAO,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,MAAM,CAAC;IAAC,UAAU,EAAE,iBAAiB,CAAA;CAAE;;;GAe9E"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { getAITraceHandler, getAITracesPaginatedHandler } from '../../chunk-
|
|
1
|
+
export { getAITraceHandler, getAITracesPaginatedHandler, getScoresBySpan, scoreTracesHandler } from '../../chunk-BATEJLED.js';
|
|
2
2
|
//# sourceMappingURL=observability.js.map
|
|
3
3
|
//# sourceMappingURL=observability.js.map
|
|
@@ -1,32 +1,32 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkLNT5N7XW_cjs = require('../../chunk-LNT5N7XW.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
Object.defineProperty(exports, "getScorerHandler", {
|
|
8
8
|
enumerable: true,
|
|
9
|
-
get: function () { return
|
|
9
|
+
get: function () { return chunkLNT5N7XW_cjs.getScorerHandler; }
|
|
10
10
|
});
|
|
11
11
|
Object.defineProperty(exports, "getScorersHandler", {
|
|
12
12
|
enumerable: true,
|
|
13
|
-
get: function () { return
|
|
13
|
+
get: function () { return chunkLNT5N7XW_cjs.getScorersHandler; }
|
|
14
14
|
});
|
|
15
15
|
Object.defineProperty(exports, "getScoresByEntityIdHandler", {
|
|
16
16
|
enumerable: true,
|
|
17
|
-
get: function () { return
|
|
17
|
+
get: function () { return chunkLNT5N7XW_cjs.getScoresByEntityIdHandler; }
|
|
18
18
|
});
|
|
19
19
|
Object.defineProperty(exports, "getScoresByRunIdHandler", {
|
|
20
20
|
enumerable: true,
|
|
21
|
-
get: function () { return
|
|
21
|
+
get: function () { return chunkLNT5N7XW_cjs.getScoresByRunIdHandler; }
|
|
22
22
|
});
|
|
23
23
|
Object.defineProperty(exports, "getScoresByScorerIdHandler", {
|
|
24
24
|
enumerable: true,
|
|
25
|
-
get: function () { return
|
|
25
|
+
get: function () { return chunkLNT5N7XW_cjs.getScoresByScorerIdHandler; }
|
|
26
26
|
});
|
|
27
27
|
Object.defineProperty(exports, "saveScoreHandler", {
|
|
28
28
|
enumerable: true,
|
|
29
|
-
get: function () { return
|
|
29
|
+
get: function () { return chunkLNT5N7XW_cjs.saveScoreHandler; }
|
|
30
30
|
});
|
|
31
31
|
//# sourceMappingURL=scores.cjs.map
|
|
32
32
|
//# sourceMappingURL=scores.cjs.map
|
|
@@ -7,7 +7,9 @@ export declare function getScorersHandler({ mastra, runtimeContext }: Context &
|
|
|
7
7
|
}): Promise<{
|
|
8
8
|
[k: string]: MastraScorerEntry & {
|
|
9
9
|
agentIds: string[];
|
|
10
|
+
agentNames: string[];
|
|
10
11
|
workflowIds: string[];
|
|
12
|
+
isRegistered: boolean;
|
|
11
13
|
};
|
|
12
14
|
}>;
|
|
13
15
|
export declare function getScorerHandler({ mastra, scorerId, runtimeContext, }: Context & {
|
|
@@ -15,31 +17,231 @@ export declare function getScorerHandler({ mastra, scorerId, runtimeContext, }:
|
|
|
15
17
|
runtimeContext: RuntimeContext;
|
|
16
18
|
}): Promise<(MastraScorerEntry & {
|
|
17
19
|
agentIds: string[];
|
|
20
|
+
agentNames: string[];
|
|
18
21
|
workflowIds: string[];
|
|
22
|
+
isRegistered: boolean;
|
|
19
23
|
}) | null>;
|
|
20
24
|
export declare function getScoresByRunIdHandler({ mastra, runId, pagination, }: Context & {
|
|
21
25
|
runId: string;
|
|
22
26
|
pagination: StoragePagination;
|
|
23
|
-
}): Promise<
|
|
27
|
+
}): Promise<{
|
|
24
28
|
pagination: import("@mastra/core").PaginationInfo;
|
|
25
|
-
scores:
|
|
29
|
+
scores: ({
|
|
30
|
+
traceId?: string;
|
|
31
|
+
spanId?: string;
|
|
32
|
+
runId: string;
|
|
33
|
+
input: any;
|
|
34
|
+
output: any;
|
|
35
|
+
additionalContext?: Record<string, any>;
|
|
36
|
+
runtimeContext?: Record<string, any>;
|
|
37
|
+
tracingContext?: import("@mastra/core/ai-tracing").TracingContext;
|
|
38
|
+
extractStepResult?: any;
|
|
39
|
+
extractPrompt?: string;
|
|
40
|
+
score: number;
|
|
41
|
+
analyzeStepResult?: any;
|
|
42
|
+
analyzePrompt?: string;
|
|
43
|
+
reason?: string;
|
|
44
|
+
reasonPrompt?: string;
|
|
45
|
+
scorer: Record<string, any>;
|
|
46
|
+
metadata?: Record<string, any>;
|
|
47
|
+
source: import("@mastra/core/scores").ScoringSource;
|
|
48
|
+
entity: Record<string, any>;
|
|
49
|
+
entityType: import("@mastra/core/scores").ScoringEntityType;
|
|
50
|
+
structuredOutput?: boolean;
|
|
51
|
+
resourceId?: string;
|
|
52
|
+
threadId?: string;
|
|
53
|
+
id: string;
|
|
54
|
+
entityId: string;
|
|
55
|
+
scorerId: string;
|
|
56
|
+
createdAt: Date;
|
|
57
|
+
updatedAt: Date;
|
|
58
|
+
preprocessStepResult?: Record<string, any>;
|
|
59
|
+
preprocessPrompt?: string;
|
|
60
|
+
generateScorePrompt?: string;
|
|
61
|
+
generateReasonPrompt?: string;
|
|
62
|
+
} | {
|
|
63
|
+
traceId: string | undefined;
|
|
64
|
+
spanId: string | undefined;
|
|
65
|
+
runId: string;
|
|
66
|
+
input: any;
|
|
67
|
+
output: any;
|
|
68
|
+
additionalContext?: Record<string, any>;
|
|
69
|
+
runtimeContext?: Record<string, any>;
|
|
70
|
+
tracingContext?: import("@mastra/core/ai-tracing").TracingContext;
|
|
71
|
+
extractStepResult?: any;
|
|
72
|
+
extractPrompt?: string;
|
|
73
|
+
score: number;
|
|
74
|
+
analyzeStepResult?: any;
|
|
75
|
+
analyzePrompt?: string;
|
|
76
|
+
reason?: string;
|
|
77
|
+
reasonPrompt?: string;
|
|
78
|
+
scorer: Record<string, any>;
|
|
79
|
+
metadata?: Record<string, any>;
|
|
80
|
+
source: import("@mastra/core/scores").ScoringSource;
|
|
81
|
+
entity: Record<string, any>;
|
|
82
|
+
entityType: import("@mastra/core/scores").ScoringEntityType;
|
|
83
|
+
structuredOutput?: boolean;
|
|
84
|
+
resourceId?: string;
|
|
85
|
+
threadId?: string;
|
|
86
|
+
id: string;
|
|
87
|
+
entityId: string;
|
|
88
|
+
scorerId: string;
|
|
89
|
+
createdAt: Date;
|
|
90
|
+
updatedAt: Date;
|
|
91
|
+
preprocessStepResult?: Record<string, any>;
|
|
92
|
+
preprocessPrompt?: string;
|
|
93
|
+
generateScorePrompt?: string;
|
|
94
|
+
generateReasonPrompt?: string;
|
|
95
|
+
})[];
|
|
26
96
|
}>;
|
|
27
97
|
export declare function getScoresByScorerIdHandler({ mastra, scorerId, pagination, entityId, entityType, }: Context & {
|
|
28
98
|
scorerId: string;
|
|
29
99
|
pagination: StoragePagination;
|
|
30
100
|
entityId?: string;
|
|
31
101
|
entityType?: string;
|
|
32
|
-
}): Promise<
|
|
102
|
+
}): Promise<{
|
|
33
103
|
pagination: import("@mastra/core").PaginationInfo;
|
|
34
|
-
scores:
|
|
104
|
+
scores: ({
|
|
105
|
+
traceId?: string;
|
|
106
|
+
spanId?: string;
|
|
107
|
+
runId: string;
|
|
108
|
+
input: any;
|
|
109
|
+
output: any;
|
|
110
|
+
additionalContext?: Record<string, any>;
|
|
111
|
+
runtimeContext?: Record<string, any>;
|
|
112
|
+
tracingContext?: import("@mastra/core/ai-tracing").TracingContext;
|
|
113
|
+
extractStepResult?: any;
|
|
114
|
+
extractPrompt?: string;
|
|
115
|
+
score: number;
|
|
116
|
+
analyzeStepResult?: any;
|
|
117
|
+
analyzePrompt?: string;
|
|
118
|
+
reason?: string;
|
|
119
|
+
reasonPrompt?: string;
|
|
120
|
+
scorer: Record<string, any>;
|
|
121
|
+
metadata?: Record<string, any>;
|
|
122
|
+
source: import("@mastra/core/scores").ScoringSource;
|
|
123
|
+
entity: Record<string, any>;
|
|
124
|
+
entityType: import("@mastra/core/scores").ScoringEntityType;
|
|
125
|
+
structuredOutput?: boolean;
|
|
126
|
+
resourceId?: string;
|
|
127
|
+
threadId?: string;
|
|
128
|
+
id: string;
|
|
129
|
+
entityId: string;
|
|
130
|
+
scorerId: string;
|
|
131
|
+
createdAt: Date;
|
|
132
|
+
updatedAt: Date;
|
|
133
|
+
preprocessStepResult?: Record<string, any>;
|
|
134
|
+
preprocessPrompt?: string;
|
|
135
|
+
generateScorePrompt?: string;
|
|
136
|
+
generateReasonPrompt?: string;
|
|
137
|
+
} | {
|
|
138
|
+
traceId: string | undefined;
|
|
139
|
+
spanId: string | undefined;
|
|
140
|
+
runId: string;
|
|
141
|
+
input: any;
|
|
142
|
+
output: any;
|
|
143
|
+
additionalContext?: Record<string, any>;
|
|
144
|
+
runtimeContext?: Record<string, any>;
|
|
145
|
+
tracingContext?: import("@mastra/core/ai-tracing").TracingContext;
|
|
146
|
+
extractStepResult?: any;
|
|
147
|
+
extractPrompt?: string;
|
|
148
|
+
score: number;
|
|
149
|
+
analyzeStepResult?: any;
|
|
150
|
+
analyzePrompt?: string;
|
|
151
|
+
reason?: string;
|
|
152
|
+
reasonPrompt?: string;
|
|
153
|
+
scorer: Record<string, any>;
|
|
154
|
+
metadata?: Record<string, any>;
|
|
155
|
+
source: import("@mastra/core/scores").ScoringSource;
|
|
156
|
+
entity: Record<string, any>;
|
|
157
|
+
entityType: import("@mastra/core/scores").ScoringEntityType;
|
|
158
|
+
structuredOutput?: boolean;
|
|
159
|
+
resourceId?: string;
|
|
160
|
+
threadId?: string;
|
|
161
|
+
id: string;
|
|
162
|
+
entityId: string;
|
|
163
|
+
scorerId: string;
|
|
164
|
+
createdAt: Date;
|
|
165
|
+
updatedAt: Date;
|
|
166
|
+
preprocessStepResult?: Record<string, any>;
|
|
167
|
+
preprocessPrompt?: string;
|
|
168
|
+
generateScorePrompt?: string;
|
|
169
|
+
generateReasonPrompt?: string;
|
|
170
|
+
})[];
|
|
35
171
|
}>;
|
|
36
172
|
export declare function getScoresByEntityIdHandler({ mastra, entityId, entityType, pagination, }: Context & {
|
|
37
173
|
entityId: string;
|
|
38
174
|
entityType: string;
|
|
39
175
|
pagination: StoragePagination;
|
|
40
|
-
}): Promise<
|
|
176
|
+
}): Promise<{
|
|
41
177
|
pagination: import("@mastra/core").PaginationInfo;
|
|
42
|
-
scores:
|
|
178
|
+
scores: ({
|
|
179
|
+
traceId?: string;
|
|
180
|
+
spanId?: string;
|
|
181
|
+
runId: string;
|
|
182
|
+
input: any;
|
|
183
|
+
output: any;
|
|
184
|
+
additionalContext?: Record<string, any>;
|
|
185
|
+
runtimeContext?: Record<string, any>;
|
|
186
|
+
tracingContext?: import("@mastra/core/ai-tracing").TracingContext;
|
|
187
|
+
extractStepResult?: any;
|
|
188
|
+
extractPrompt?: string;
|
|
189
|
+
score: number;
|
|
190
|
+
analyzeStepResult?: any;
|
|
191
|
+
analyzePrompt?: string;
|
|
192
|
+
reason?: string;
|
|
193
|
+
reasonPrompt?: string;
|
|
194
|
+
scorer: Record<string, any>;
|
|
195
|
+
metadata?: Record<string, any>;
|
|
196
|
+
source: import("@mastra/core/scores").ScoringSource;
|
|
197
|
+
entity: Record<string, any>;
|
|
198
|
+
entityType: import("@mastra/core/scores").ScoringEntityType;
|
|
199
|
+
structuredOutput?: boolean;
|
|
200
|
+
resourceId?: string;
|
|
201
|
+
threadId?: string;
|
|
202
|
+
id: string;
|
|
203
|
+
entityId: string;
|
|
204
|
+
scorerId: string;
|
|
205
|
+
createdAt: Date;
|
|
206
|
+
updatedAt: Date;
|
|
207
|
+
preprocessStepResult?: Record<string, any>;
|
|
208
|
+
preprocessPrompt?: string;
|
|
209
|
+
generateScorePrompt?: string;
|
|
210
|
+
generateReasonPrompt?: string;
|
|
211
|
+
} | {
|
|
212
|
+
traceId: string | undefined;
|
|
213
|
+
spanId: string | undefined;
|
|
214
|
+
runId: string;
|
|
215
|
+
input: any;
|
|
216
|
+
output: any;
|
|
217
|
+
additionalContext?: Record<string, any>;
|
|
218
|
+
runtimeContext?: Record<string, any>;
|
|
219
|
+
tracingContext?: import("@mastra/core/ai-tracing").TracingContext;
|
|
220
|
+
extractStepResult?: any;
|
|
221
|
+
extractPrompt?: string;
|
|
222
|
+
score: number;
|
|
223
|
+
analyzeStepResult?: any;
|
|
224
|
+
analyzePrompt?: string;
|
|
225
|
+
reason?: string;
|
|
226
|
+
reasonPrompt?: string;
|
|
227
|
+
scorer: Record<string, any>;
|
|
228
|
+
metadata?: Record<string, any>;
|
|
229
|
+
source: import("@mastra/core/scores").ScoringSource;
|
|
230
|
+
entity: Record<string, any>;
|
|
231
|
+
entityType: import("@mastra/core/scores").ScoringEntityType;
|
|
232
|
+
structuredOutput?: boolean;
|
|
233
|
+
resourceId?: string;
|
|
234
|
+
threadId?: string;
|
|
235
|
+
id: string;
|
|
236
|
+
entityId: string;
|
|
237
|
+
scorerId: string;
|
|
238
|
+
createdAt: Date;
|
|
239
|
+
updatedAt: Date;
|
|
240
|
+
preprocessStepResult?: Record<string, any>;
|
|
241
|
+
preprocessPrompt?: string;
|
|
242
|
+
generateScorePrompt?: string;
|
|
243
|
+
generateReasonPrompt?: string;
|
|
244
|
+
})[];
|
|
43
245
|
}>;
|
|
44
246
|
export declare function saveScoreHandler({ mastra, score }: Context & {
|
|
45
247
|
score: ScoreRowData;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"scores.d.ts","sourceRoot":"","sources":["../../../src/server/handlers/scores.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AACnE,OAAO,KAAK,EAAE,iBAAiB,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAC3E,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AAC9D,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"scores.d.ts","sourceRoot":"","sources":["../../../src/server/handlers/scores.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AACnE,OAAO,KAAK,EAAE,iBAAiB,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAC3E,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AAC9D,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,UAAU,CAAC;AAqFxC,wBAAsB,iBAAiB,CAAC,EAAE,MAAM,EAAE,cAAc,EAAE,EAAE,OAAO,GAAG;IAAE,cAAc,EAAE,cAAc,CAAA;CAAE;;kBAvE5E,MAAM,EAAE;oBAAc,MAAM,EAAE;qBAAe,MAAM,EAAE;sBAAgB,OAAO;;GA8E/G;AAED,wBAAsB,gBAAgB,CAAC,EACrC,MAAM,EACN,QAAQ,EACR,cAAc,GACf,EAAE,OAAO,GAAG;IAAE,QAAQ,EAAE,MAAM,CAAC;IAAC,cAAc,EAAE,cAAc,CAAA;CAAE;cApF7B,MAAM,EAAE;gBAAc,MAAM,EAAE;iBAAe,MAAM,EAAE;kBAAgB,OAAO;WAiG/G;AAED,wBAAsB,uBAAuB,CAAC,EAC5C,MAAM,EACN,KAAK,EACL,UAAU,GACX,EAAE,OAAO,GAAG;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,UAAU,EAAE,iBAAiB,CAAA;CAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAa5D;AAED,wBAAsB,0BAA0B,CAAC,EAC/C,MAAM,EACN,QAAQ,EACR,UAAU,EACV,QAAQ,EACR,UAAU,GACX,EAAE,OAAO,GAAG;IAAE,QAAQ,EAAE,MAAM,CAAC;IAAC,UAAU,EAAE,iBAAiB,CAAC;IAAC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAAC,UAAU,CAAC,EAAE,MAAM,CAAA;CAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAevG;AAED,wBAAsB,0BAA0B,CAAC,EAC/C,MAAM,EACN,QAAQ,EACR,UAAU,EACV,UAAU,GACX,EAAE,OAAO,GAAG;IAAE,QAAQ,EAAE,MAAM,CAAC;IAAC,UAAU,EAAE,MAAM,CAAC;IAAC,UAAU,EAAE,iBAAiB,CAAA;CAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAyBnF;AAYD,wBAAsB,gBAAgB,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,OAAO,GAAG;IAAE,KAAK,EAAE,YAAY,CAAA;CAAE;;GAO1F"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { getScorerHandler, getScorersHandler, getScoresByEntityIdHandler, getScoresByRunIdHandler, getScoresByScorerIdHandler, saveScoreHandler } from '../../chunk-
|
|
1
|
+
export { getScorerHandler, getScorersHandler, getScoresByEntityIdHandler, getScoresByRunIdHandler, getScoresByScorerIdHandler, saveScoreHandler } from '../../chunk-5BNQIYQN.js';
|
|
2
2
|
//# sourceMappingURL=scores.js.map
|
|
3
3
|
//# sourceMappingURL=scores.js.map
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunk6ZR275MD_cjs = require('../../chunk-6ZR275MD.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
Object.defineProperty(exports, "collectParentSpanIds", {
|
|
8
8
|
enumerable: true,
|
|
9
|
-
get: function () { return
|
|
9
|
+
get: function () { return chunk6ZR275MD_cjs.collectParentSpanIds; }
|
|
10
10
|
});
|
|
11
11
|
Object.defineProperty(exports, "getTelemetryHandler", {
|
|
12
12
|
enumerable: true,
|
|
13
|
-
get: function () { return
|
|
13
|
+
get: function () { return chunk6ZR275MD_cjs.getTelemetryHandler; }
|
|
14
14
|
});
|
|
15
15
|
Object.defineProperty(exports, "storeTelemetryHandler", {
|
|
16
16
|
enumerable: true,
|
|
17
|
-
get: function () { return
|
|
17
|
+
get: function () { return chunk6ZR275MD_cjs.storeTelemetryHandler; }
|
|
18
18
|
});
|
|
19
19
|
//# sourceMappingURL=telemetry.cjs.map
|
|
20
20
|
//# sourceMappingURL=telemetry.cjs.map
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { collectParentSpanIds, getTelemetryHandler, storeTelemetryHandler } from '../../chunk-
|
|
1
|
+
export { collectParentSpanIds, getTelemetryHandler, storeTelemetryHandler } from '../../chunk-67GYDFSB.js';
|
|
2
2
|
//# sourceMappingURL=telemetry.js.map
|
|
3
3
|
//# sourceMappingURL=telemetry.js.map
|
|
@@ -1,28 +1,28 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkTRGAMKHX_cjs = require('../../chunk-TRGAMKHX.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
Object.defineProperty(exports, "executeAgentToolHandler", {
|
|
8
8
|
enumerable: true,
|
|
9
|
-
get: function () { return
|
|
9
|
+
get: function () { return chunkTRGAMKHX_cjs.executeAgentToolHandler; }
|
|
10
10
|
});
|
|
11
11
|
Object.defineProperty(exports, "executeToolHandler", {
|
|
12
12
|
enumerable: true,
|
|
13
|
-
get: function () { return
|
|
13
|
+
get: function () { return chunkTRGAMKHX_cjs.executeToolHandler; }
|
|
14
14
|
});
|
|
15
15
|
Object.defineProperty(exports, "getAgentToolHandler", {
|
|
16
16
|
enumerable: true,
|
|
17
|
-
get: function () { return
|
|
17
|
+
get: function () { return chunkTRGAMKHX_cjs.getAgentToolHandler; }
|
|
18
18
|
});
|
|
19
19
|
Object.defineProperty(exports, "getToolByIdHandler", {
|
|
20
20
|
enumerable: true,
|
|
21
|
-
get: function () { return
|
|
21
|
+
get: function () { return chunkTRGAMKHX_cjs.getToolByIdHandler; }
|
|
22
22
|
});
|
|
23
23
|
Object.defineProperty(exports, "getToolsHandler", {
|
|
24
24
|
enumerable: true,
|
|
25
|
-
get: function () { return
|
|
25
|
+
get: function () { return chunkTRGAMKHX_cjs.getToolsHandler; }
|
|
26
26
|
});
|
|
27
27
|
//# sourceMappingURL=tools.cjs.map
|
|
28
28
|
//# sourceMappingURL=tools.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tools.d.ts","sourceRoot":"","sources":["../../../src/server/handlers/tools.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AACtD,OAAO,KAAK,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAKjE,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,UAAU,CAAC;AAKxC,UAAU,YAAa,SAAQ,OAAO;IACpC,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,UAAU,GAAG,UAAU,CAAC,CAAC;IAChD,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAGD,wBAAsB,eAAe,CAAC,EAAE,KAAK,EAAE,EAAE,IAAI,CAAC,YAAY,EAAE,OAAO,CAAC,gCAuB3E;AAED,wBAAsB,kBAAkB,CAAC,EAAE,KAAK,EAAE,MAAM,EAAE,EAAE,IAAI,CAAC,YAAY,EAAE,OAAO,GAAG,QAAQ,CAAC,gBAkBjG;AAED,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,YAAY,CAAC,OAAO,CAAC,IAC/C,kDAMX,IAAI,CAAC,YAAY,EAAE,QAAQ,GAAG,QAAQ,GAAG,OAAO,CAAC,GAAG;IACrD,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,cAAc,EAAE,cAAc,CAAC;CAChC,
|
|
1
|
+
{"version":3,"file":"tools.d.ts","sourceRoot":"","sources":["../../../src/server/handlers/tools.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AACtD,OAAO,KAAK,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAKjE,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,UAAU,CAAC;AAKxC,UAAU,YAAa,SAAQ,OAAO;IACpC,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,UAAU,GAAG,UAAU,CAAC,CAAC;IAChD,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAGD,wBAAsB,eAAe,CAAC,EAAE,KAAK,EAAE,EAAE,IAAI,CAAC,YAAY,EAAE,OAAO,CAAC,gCAuB3E;AAED,wBAAsB,kBAAkB,CAAC,EAAE,KAAK,EAAE,MAAM,EAAE,EAAE,IAAI,CAAC,YAAY,EAAE,OAAO,GAAG,QAAQ,CAAC,gBAkBjG;AAED,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,YAAY,CAAC,OAAO,CAAC,IAC/C,kDAMX,IAAI,CAAC,YAAY,EAAE,QAAQ,GAAG,QAAQ,GAAG,OAAO,CAAC,GAAG;IACrD,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,cAAc,EAAE,cAAc,CAAC;CAChC,kBAqCF;AAED,wBAAsB,mBAAmB,CAAC,EACxC,MAAM,EACN,OAAO,EACP,MAAM,EACN,cAAc,GACf,EAAE,IAAI,CAAC,YAAY,EAAE,QAAQ,GAAG,QAAQ,CAAC,GAAG;IAC3C,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,cAAc,EAAE,cAAc,CAAC;CAChC,gBAyBA;AAED,wBAAsB,uBAAuB,CAAC,EAC5C,MAAM,EACN,OAAO,EACP,MAAM,EACN,IAAI,EACJ,cAAc,GACf,EAAE,IAAI,CAAC,YAAY,EAAE,QAAQ,GAAG,QAAQ,CAAC,GAAG;IAC3C,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,IAAI,EAAE,GAAG,CAAC;IACV,cAAc,EAAE,cAAc,CAAC;CAChC,gBAsCA"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { executeAgentToolHandler, executeToolHandler, getAgentToolHandler, getToolByIdHandler, getToolsHandler } from '../../chunk-
|
|
1
|
+
export { executeAgentToolHandler, executeToolHandler, getAgentToolHandler, getToolByIdHandler, getToolsHandler } from '../../chunk-AHB4JCIQ.js';
|
|
2
2
|
//# sourceMappingURL=tools.js.map
|
|
3
3
|
//# sourceMappingURL=tools.js.map
|
|
@@ -1,12 +1,16 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkG4PUALCE_cjs = require('../../chunk-G4PUALCE.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
|
+
Object.defineProperty(exports, "sanitizeBody", {
|
|
8
|
+
enumerable: true,
|
|
9
|
+
get: function () { return chunkG4PUALCE_cjs.sanitizeBody; }
|
|
10
|
+
});
|
|
7
11
|
Object.defineProperty(exports, "validateBody", {
|
|
8
12
|
enumerable: true,
|
|
9
|
-
get: function () { return
|
|
13
|
+
get: function () { return chunkG4PUALCE_cjs.validateBody; }
|
|
10
14
|
});
|
|
11
15
|
//# sourceMappingURL=utils.cjs.map
|
|
12
16
|
//# sourceMappingURL=utils.cjs.map
|
|
@@ -1,2 +1,8 @@
|
|
|
1
1
|
export declare function validateBody(body: Record<string, unknown>): void;
|
|
2
|
+
/**
|
|
3
|
+
* sanitizes the body by removing disallowed keys.
|
|
4
|
+
* @param body body to sanitize
|
|
5
|
+
* @param disallowedKeys keys to remove from the body
|
|
6
|
+
*/
|
|
7
|
+
export declare function sanitizeBody(body: Record<string, unknown>, disallowedKeys: string[]): void;
|
|
2
8
|
//# sourceMappingURL=utils.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/server/handlers/utils.ts"],"names":[],"mappings":"AAGA,wBAAgB,YAAY,CAAC,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,QAWzD"}
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/server/handlers/utils.ts"],"names":[],"mappings":"AAGA,wBAAgB,YAAY,CAAC,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,QAWzD;AAED;;;;GAIG;AACH,wBAAgB,YAAY,CAAC,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,EAAE,MAAM,EAAE,QAMnF"}
|
|
@@ -1,32 +1,32 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkEP3JQDPD_cjs = require('../../chunk-EP3JQDPD.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
Object.defineProperty(exports, "createIndex", {
|
|
8
8
|
enumerable: true,
|
|
9
|
-
get: function () { return
|
|
9
|
+
get: function () { return chunkEP3JQDPD_cjs.createIndex; }
|
|
10
10
|
});
|
|
11
11
|
Object.defineProperty(exports, "deleteIndex", {
|
|
12
12
|
enumerable: true,
|
|
13
|
-
get: function () { return
|
|
13
|
+
get: function () { return chunkEP3JQDPD_cjs.deleteIndex; }
|
|
14
14
|
});
|
|
15
15
|
Object.defineProperty(exports, "describeIndex", {
|
|
16
16
|
enumerable: true,
|
|
17
|
-
get: function () { return
|
|
17
|
+
get: function () { return chunkEP3JQDPD_cjs.describeIndex; }
|
|
18
18
|
});
|
|
19
19
|
Object.defineProperty(exports, "listIndexes", {
|
|
20
20
|
enumerable: true,
|
|
21
|
-
get: function () { return
|
|
21
|
+
get: function () { return chunkEP3JQDPD_cjs.listIndexes; }
|
|
22
22
|
});
|
|
23
23
|
Object.defineProperty(exports, "queryVectors", {
|
|
24
24
|
enumerable: true,
|
|
25
|
-
get: function () { return
|
|
25
|
+
get: function () { return chunkEP3JQDPD_cjs.queryVectors; }
|
|
26
26
|
});
|
|
27
27
|
Object.defineProperty(exports, "upsertVectors", {
|
|
28
28
|
enumerable: true,
|
|
29
|
-
get: function () { return
|
|
29
|
+
get: function () { return chunkEP3JQDPD_cjs.upsertVectors; }
|
|
30
30
|
});
|
|
31
31
|
//# sourceMappingURL=vector.cjs.map
|
|
32
32
|
//# sourceMappingURL=vector.cjs.map
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { createIndex, deleteIndex, describeIndex, listIndexes, queryVectors, upsertVectors } from '../../chunk-
|
|
1
|
+
export { createIndex, deleteIndex, describeIndex, listIndexes, queryVectors, upsertVectors } from '../../chunk-MYR4PVGN.js';
|
|
2
2
|
//# sourceMappingURL=vector.js.map
|
|
3
3
|
//# sourceMappingURL=vector.js.map
|
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunk3SNGNFUJ_cjs = require('../../chunk-3SNGNFUJ.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
Object.defineProperty(exports, "generateSpeechHandler", {
|
|
8
8
|
enumerable: true,
|
|
9
|
-
get: function () { return
|
|
9
|
+
get: function () { return chunk3SNGNFUJ_cjs.generateSpeechHandler; }
|
|
10
10
|
});
|
|
11
11
|
Object.defineProperty(exports, "getListenerHandler", {
|
|
12
12
|
enumerable: true,
|
|
13
|
-
get: function () { return
|
|
13
|
+
get: function () { return chunk3SNGNFUJ_cjs.getListenerHandler; }
|
|
14
14
|
});
|
|
15
15
|
Object.defineProperty(exports, "getSpeakersHandler", {
|
|
16
16
|
enumerable: true,
|
|
17
|
-
get: function () { return
|
|
17
|
+
get: function () { return chunk3SNGNFUJ_cjs.getSpeakersHandler; }
|
|
18
18
|
});
|
|
19
19
|
Object.defineProperty(exports, "transcribeSpeechHandler", {
|
|
20
20
|
enumerable: true,
|
|
21
|
-
get: function () { return
|
|
21
|
+
get: function () { return chunk3SNGNFUJ_cjs.transcribeSpeechHandler; }
|
|
22
22
|
});
|
|
23
23
|
//# sourceMappingURL=voice.cjs.map
|
|
24
24
|
//# sourceMappingURL=voice.cjs.map
|
|
@@ -1,18 +1,20 @@
|
|
|
1
1
|
import type { Agent } from '@mastra/core/agent';
|
|
2
|
+
import type { RuntimeContext } from '@mastra/core/runtime-context';
|
|
2
3
|
import type { Context } from '../types.js';
|
|
3
4
|
interface VoiceContext extends Context {
|
|
4
5
|
agentId?: string;
|
|
6
|
+
runtimeContext?: RuntimeContext;
|
|
5
7
|
}
|
|
6
8
|
/**
|
|
7
9
|
* Get available speakers for an agent
|
|
8
10
|
*/
|
|
9
|
-
export declare function getSpeakersHandler({ mastra, agentId }: VoiceContext): Promise<{
|
|
11
|
+
export declare function getSpeakersHandler({ mastra, agentId, runtimeContext }: VoiceContext): Promise<{
|
|
10
12
|
voiceId: string;
|
|
11
13
|
}[]>;
|
|
12
14
|
/**
|
|
13
15
|
* Generate speech from text
|
|
14
16
|
*/
|
|
15
|
-
export declare function generateSpeechHandler({ mastra, agentId, body, }: VoiceContext & {
|
|
17
|
+
export declare function generateSpeechHandler({ mastra, agentId, body, runtimeContext, }: VoiceContext & {
|
|
16
18
|
body?: {
|
|
17
19
|
text?: string;
|
|
18
20
|
speakerId?: string;
|
|
@@ -21,7 +23,7 @@ export declare function generateSpeechHandler({ mastra, agentId, body, }: VoiceC
|
|
|
21
23
|
/**
|
|
22
24
|
* Transcribe speech to text
|
|
23
25
|
*/
|
|
24
|
-
export declare function transcribeSpeechHandler({ mastra, agentId, body, }: VoiceContext & {
|
|
26
|
+
export declare function transcribeSpeechHandler({ mastra, agentId, body, runtimeContext, }: VoiceContext & {
|
|
25
27
|
body?: {
|
|
26
28
|
audioData?: Buffer;
|
|
27
29
|
options?: Parameters<NonNullable<Agent['voice']>['listen']>[1];
|
|
@@ -32,7 +34,7 @@ export declare function transcribeSpeechHandler({ mastra, agentId, body, }: Voic
|
|
|
32
34
|
/**
|
|
33
35
|
* Get available listeners for an agent
|
|
34
36
|
*/
|
|
35
|
-
export declare function getListenerHandler({ mastra, agentId }: VoiceContext): Promise<{
|
|
37
|
+
export declare function getListenerHandler({ mastra, agentId, runtimeContext }: VoiceContext): Promise<{
|
|
36
38
|
enabled: boolean;
|
|
37
39
|
}>;
|
|
38
40
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"voice.d.ts","sourceRoot":"","sources":["../../../src/server/handlers/voice.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAC;AAEhD,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,UAAU,CAAC;AAKxC,UAAU,YAAa,SAAQ,OAAO;IACpC,OAAO,CAAC,EAAE,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"voice.d.ts","sourceRoot":"","sources":["../../../src/server/handlers/voice.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAC;AAEhD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAEnE,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,UAAU,CAAC;AAKxC,UAAU,YAAa,SAAQ,OAAO;IACpC,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,cAAc,CAAC,EAAE,cAAc,CAAC;CACjC;AAED;;GAEG;AACH,wBAAsB,kBAAkB,CAAC,EAAE,MAAM,EAAE,OAAO,EAAE,cAAc,EAAE,EAAE,YAAY;;KAuBzF;AAED;;GAEG;AACH,wBAAsB,qBAAqB,CAAC,EAC1C,MAAM,EACN,OAAO,EACP,IAAI,EACJ,cAAc,GACf,EAAE,YAAY,GAAG;IAChB,IAAI,CAAC,EAAE;QACL,IAAI,CAAC,EAAE,MAAM,CAAC;QACd,SAAS,CAAC,EAAE,MAAM,CAAC;KACpB,CAAC;CACH,kCAwCA;AAED;;GAEG;AACH,wBAAsB,uBAAuB,CAAC,EAC5C,MAAM,EACN,OAAO,EACP,IAAI,EACJ,cAAc,GACf,EAAE,YAAY,GAAG;IAChB,IAAI,CAAC,EAAE;QACL,SAAS,CAAC,EAAE,MAAM,CAAC;QACnB,OAAO,CAAC,EAAE,UAAU,CAAC,WAAW,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;KAChE,CAAC;CACH;;GA+BA;AAED;;GAEG;AACH,wBAAsB,kBAAkB,CAAC,EAAE,MAAM,EAAE,OAAO,EAAE,cAAc,EAAE,EAAE,YAAY;;GAuBzF"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { generateSpeechHandler, getListenerHandler, getSpeakersHandler, transcribeSpeechHandler } from '../../chunk-
|
|
1
|
+
export { generateSpeechHandler, getListenerHandler, getSpeakersHandler, transcribeSpeechHandler } from '../../chunk-QQXMIP6C.js';
|
|
2
2
|
//# sourceMappingURL=voice.js.map
|
|
3
3
|
//# sourceMappingURL=voice.js.map
|