@mastra/core 0.13.0-alpha.2 → 0.13.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/ai-tracing.d.ts +1 -0
- package/dist/agent/index.cjs +10 -10
- package/dist/agent/index.js +2 -2
- package/dist/agent/input-processor/processors/index.cjs +6 -6
- package/dist/agent/input-processor/processors/index.js +1 -1
- package/dist/ai-tracing/base.d.ts +87 -0
- package/dist/ai-tracing/base.d.ts.map +1 -0
- package/dist/ai-tracing/default.d.ts +26 -0
- package/dist/ai-tracing/default.d.ts.map +1 -0
- package/dist/ai-tracing/index.cjs +585 -0
- package/dist/ai-tracing/index.cjs.map +1 -0
- package/dist/ai-tracing/index.d.ts +8 -0
- package/dist/ai-tracing/index.d.ts.map +1 -0
- package/dist/ai-tracing/index.js +571 -0
- package/dist/ai-tracing/index.js.map +1 -0
- package/dist/ai-tracing/no-op.d.ts +22 -0
- package/dist/ai-tracing/no-op.d.ts.map +1 -0
- package/dist/ai-tracing/registry.d.ts +27 -0
- package/dist/ai-tracing/registry.d.ts.map +1 -0
- package/dist/ai-tracing/types.d.ts +281 -0
- package/dist/ai-tracing/types.d.ts.map +1 -0
- package/dist/base.cjs +2 -2
- package/dist/base.js +1 -1
- package/dist/bundler/index.cjs +2 -2
- package/dist/bundler/index.js +1 -1
- package/dist/{chunk-YZMDLTKU.js → chunk-2ED6PVVF.js} +3 -3
- package/dist/{chunk-YZMDLTKU.js.map → chunk-2ED6PVVF.js.map} +1 -1
- package/dist/{chunk-LQGUSOL6.cjs → chunk-2EXWZ3PI.cjs} +4 -4
- package/dist/{chunk-LQGUSOL6.cjs.map → chunk-2EXWZ3PI.cjs.map} +1 -1
- package/dist/{chunk-IXLNZWTK.cjs → chunk-4JPOVSKQ.cjs} +12 -12
- package/dist/{chunk-IXLNZWTK.cjs.map → chunk-4JPOVSKQ.cjs.map} +1 -1
- package/dist/{chunk-5BGXG7RU.cjs → chunk-4L6RV2TV.cjs} +5 -5
- package/dist/{chunk-5BGXG7RU.cjs.map → chunk-4L6RV2TV.cjs.map} +1 -1
- package/dist/{chunk-ISULVM3M.js → chunk-57EVKFM5.js} +5 -5
- package/dist/{chunk-ISULVM3M.js.map → chunk-57EVKFM5.js.map} +1 -1
- package/dist/{chunk-R3SQUADS.js → chunk-6AR2Z5ZG.js} +3 -2
- package/dist/chunk-6AR2Z5ZG.js.map +1 -0
- package/dist/{chunk-MZBE4M4N.cjs → chunk-6S7RRJON.cjs} +31 -31
- package/dist/{chunk-MZBE4M4N.cjs.map → chunk-6S7RRJON.cjs.map} +1 -1
- package/dist/{chunk-3FPS3OWO.cjs → chunk-A3BSP25E.cjs} +9 -9
- package/dist/{chunk-3FPS3OWO.cjs.map → chunk-A3BSP25E.cjs.map} +1 -1
- package/dist/{chunk-GTU3WRLN.js → chunk-B7JOIJJU.js} +3 -3
- package/dist/{chunk-GTU3WRLN.js.map → chunk-B7JOIJJU.js.map} +1 -1
- package/dist/{chunk-WVIY3V3E.cjs → chunk-CP7L3XWF.cjs} +4 -4
- package/dist/{chunk-WVIY3V3E.cjs.map → chunk-CP7L3XWF.cjs.map} +1 -1
- package/dist/{chunk-WHQWL4G5.cjs → chunk-DSMC4VSS.cjs} +4 -4
- package/dist/{chunk-WHQWL4G5.cjs.map → chunk-DSMC4VSS.cjs.map} +1 -1
- package/dist/{chunk-GCHV2EI2.cjs → chunk-EKPRMZND.cjs} +4 -4
- package/dist/{chunk-GCHV2EI2.cjs.map → chunk-EKPRMZND.cjs.map} +1 -1
- package/dist/{chunk-65L3POQE.js → chunk-FTPL7ILZ.js} +3 -3
- package/dist/{chunk-65L3POQE.js.map → chunk-FTPL7ILZ.js.map} +1 -1
- package/dist/{chunk-FQ4W6KBT.js → chunk-FUERFM46.js} +3 -3
- package/dist/{chunk-FQ4W6KBT.js.map → chunk-FUERFM46.js.map} +1 -1
- package/dist/{chunk-2RI6A7KD.cjs → chunk-GRL3ZK5B.cjs} +4 -4
- package/dist/{chunk-2RI6A7KD.cjs.map → chunk-GRL3ZK5B.cjs.map} +1 -1
- package/dist/{chunk-TXGTGUX2.cjs → chunk-IDDUQR6P.cjs} +3 -2
- package/dist/chunk-IDDUQR6P.cjs.map +1 -0
- package/dist/chunk-J7PCL3MN.cjs +14 -0
- package/dist/{chunk-64G2N4FJ.cjs.map → chunk-J7PCL3MN.cjs.map} +1 -1
- package/dist/{chunk-Q3XNHNLP.cjs → chunk-JGCB7U4Y.cjs} +9 -9
- package/dist/{chunk-Q3XNHNLP.cjs.map → chunk-JGCB7U4Y.cjs.map} +1 -1
- package/dist/{chunk-EOQURKKG.cjs → chunk-MSXZK7BL.cjs} +5 -5
- package/dist/{chunk-EOQURKKG.cjs.map → chunk-MSXZK7BL.cjs.map} +1 -1
- package/dist/{chunk-4ZERI5QT.js → chunk-OFCCIPH2.js} +3 -3
- package/dist/{chunk-4ZERI5QT.js.map → chunk-OFCCIPH2.js.map} +1 -1
- package/dist/{chunk-JIYY2P56.js → chunk-OM556XHR.js} +5 -5
- package/dist/{chunk-JIYY2P56.js.map → chunk-OM556XHR.js.map} +1 -1
- package/dist/{chunk-YUVS5EDM.js → chunk-OXARRBRN.js} +3 -3
- package/dist/{chunk-YUVS5EDM.js.map → chunk-OXARRBRN.js.map} +1 -1
- package/dist/{chunk-R6WBSG4Q.js → chunk-QEGM6FNZ.js} +3 -3
- package/dist/{chunk-R6WBSG4Q.js.map → chunk-QEGM6FNZ.js.map} +1 -1
- package/dist/{chunk-HPWP7KJY.js → chunk-QVCKOYRP.js} +3 -3
- package/dist/{chunk-HPWP7KJY.js.map → chunk-QVCKOYRP.js.map} +1 -1
- package/dist/{chunk-PBAJIFCU.js → chunk-RLQIQX4O.js} +5 -5
- package/dist/{chunk-PBAJIFCU.js.map → chunk-RLQIQX4O.js.map} +1 -1
- package/dist/{chunk-YVAWHTHK.cjs → chunk-U2CK6AN5.cjs} +4 -4
- package/dist/{chunk-YVAWHTHK.cjs.map → chunk-U2CK6AN5.cjs.map} +1 -1
- package/dist/{chunk-K2243MGP.js → chunk-UAQURMQJ.js} +3 -3
- package/dist/{chunk-K2243MGP.js.map → chunk-UAQURMQJ.js.map} +1 -1
- package/dist/{chunk-6Y3RTBPF.cjs → chunk-VZUGB775.cjs} +4 -4
- package/dist/{chunk-6Y3RTBPF.cjs.map → chunk-VZUGB775.cjs.map} +1 -1
- package/dist/{chunk-LQ54NO3E.js → chunk-YBY6XXFX.js} +3 -3
- package/dist/{chunk-LQ54NO3E.js.map → chunk-YBY6XXFX.js.map} +1 -1
- package/dist/{chunk-2WZYQCRK.cjs → chunk-YT4RGZYO.cjs} +8 -8
- package/dist/{chunk-2WZYQCRK.cjs.map → chunk-YT4RGZYO.cjs.map} +1 -1
- package/dist/{chunk-E26T2PAG.js → chunk-ZRRHATKS.js} +8 -8
- package/dist/{chunk-E26T2PAG.js.map → chunk-ZRRHATKS.js.map} +1 -1
- package/dist/{chunk-WNSZ4ZMC.js → chunk-ZYQFY2H5.js} +3 -3
- package/dist/{chunk-WNSZ4ZMC.js.map → chunk-ZYQFY2H5.js.map} +1 -1
- package/dist/deployer/index.cjs +2 -2
- package/dist/deployer/index.js +1 -1
- package/dist/index.cjs +50 -50
- package/dist/index.js +14 -14
- package/dist/logger/constants.d.ts +1 -0
- package/dist/logger/constants.d.ts.map +1 -1
- package/dist/logger/index.cjs +6 -6
- package/dist/logger/index.js +1 -1
- package/dist/mastra/index.cjs +2 -2
- package/dist/mastra/index.js +1 -1
- package/dist/mcp/index.cjs +4 -4
- package/dist/mcp/index.js +2 -2
- package/dist/memory/index.cjs +4 -4
- package/dist/memory/index.js +1 -1
- package/dist/network/index.cjs +6 -6
- package/dist/network/index.js +3 -3
- package/dist/network/vNext/index.cjs +17 -17
- package/dist/network/vNext/index.js +4 -4
- package/dist/relevance/index.cjs +4 -4
- package/dist/relevance/index.js +1 -1
- package/dist/scores/index.cjs +5 -5
- package/dist/scores/index.js +2 -2
- package/dist/server/index.cjs +2 -2
- package/dist/server/index.js +1 -1
- package/dist/storage/index.cjs +15 -15
- package/dist/storage/index.js +4 -4
- package/dist/test-utils/llm-mock.cjs +2 -2
- package/dist/test-utils/llm-mock.js +1 -1
- package/dist/tts/index.cjs +2 -2
- package/dist/tts/index.js +1 -1
- package/dist/utils.cjs +15 -15
- package/dist/utils.js +1 -1
- package/dist/vector/index.cjs +2 -2
- package/dist/vector/index.js +1 -1
- package/dist/voice/index.cjs +4 -4
- package/dist/voice/index.js +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/types.d.ts +1 -0
- package/dist/workflows/types.d.ts.map +1 -1
- package/package.json +5 -5
- package/dist/chunk-64G2N4FJ.cjs +0 -14
- package/dist/chunk-R3SQUADS.js.map +0 -1
- package/dist/chunk-TXGTGUX2.cjs.map +0 -1
package/ai-tracing.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './dist/ai-tracing';
|
package/dist/agent/index.cjs
CHANGED
|
@@ -1,41 +1,41 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
var
|
|
3
|
+
var chunk6S7RRJON_cjs = require('../chunk-6S7RRJON.cjs');
|
|
4
|
+
var chunkMSXZK7BL_cjs = require('../chunk-MSXZK7BL.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
Object.defineProperty(exports, "Agent", {
|
|
9
9
|
enumerable: true,
|
|
10
|
-
get: function () { return
|
|
10
|
+
get: function () { return chunk6S7RRJON_cjs.Agent; }
|
|
11
11
|
});
|
|
12
12
|
Object.defineProperty(exports, "LanguageDetector", {
|
|
13
13
|
enumerable: true,
|
|
14
|
-
get: function () { return
|
|
14
|
+
get: function () { return chunk6S7RRJON_cjs.LanguageDetector; }
|
|
15
15
|
});
|
|
16
16
|
Object.defineProperty(exports, "ModerationInputProcessor", {
|
|
17
17
|
enumerable: true,
|
|
18
|
-
get: function () { return
|
|
18
|
+
get: function () { return chunk6S7RRJON_cjs.ModerationInputProcessor; }
|
|
19
19
|
});
|
|
20
20
|
Object.defineProperty(exports, "PIIDetector", {
|
|
21
21
|
enumerable: true,
|
|
22
|
-
get: function () { return
|
|
22
|
+
get: function () { return chunk6S7RRJON_cjs.PIIDetector; }
|
|
23
23
|
});
|
|
24
24
|
Object.defineProperty(exports, "PromptInjectionDetector", {
|
|
25
25
|
enumerable: true,
|
|
26
|
-
get: function () { return
|
|
26
|
+
get: function () { return chunk6S7RRJON_cjs.PromptInjectionDetector; }
|
|
27
27
|
});
|
|
28
28
|
Object.defineProperty(exports, "TripWire", {
|
|
29
29
|
enumerable: true,
|
|
30
|
-
get: function () { return
|
|
30
|
+
get: function () { return chunk6S7RRJON_cjs.TripWire; }
|
|
31
31
|
});
|
|
32
32
|
Object.defineProperty(exports, "UnicodeNormalizer", {
|
|
33
33
|
enumerable: true,
|
|
34
|
-
get: function () { return
|
|
34
|
+
get: function () { return chunk6S7RRJON_cjs.UnicodeNormalizer; }
|
|
35
35
|
});
|
|
36
36
|
Object.defineProperty(exports, "MessageList", {
|
|
37
37
|
enumerable: true,
|
|
38
|
-
get: function () { return
|
|
38
|
+
get: function () { return chunkMSXZK7BL_cjs.MessageList; }
|
|
39
39
|
});
|
|
40
40
|
//# sourceMappingURL=index.cjs.map
|
|
41
41
|
//# sourceMappingURL=index.cjs.map
|
package/dist/agent/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { Agent, LanguageDetector, ModerationInputProcessor, PIIDetector, PromptInjectionDetector, TripWire, UnicodeNormalizer } from '../chunk-
|
|
2
|
-
export { MessageList } from '../chunk-
|
|
1
|
+
export { Agent, LanguageDetector, ModerationInputProcessor, PIIDetector, PromptInjectionDetector, TripWire, UnicodeNormalizer } from '../chunk-ZRRHATKS.js';
|
|
2
|
+
export { MessageList } from '../chunk-OFCCIPH2.js';
|
|
3
3
|
//# sourceMappingURL=index.js.map
|
|
4
4
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,28 +1,28 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunk6S7RRJON_cjs = require('../../../chunk-6S7RRJON.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
Object.defineProperty(exports, "LanguageDetector", {
|
|
8
8
|
enumerable: true,
|
|
9
|
-
get: function () { return
|
|
9
|
+
get: function () { return chunk6S7RRJON_cjs.LanguageDetector; }
|
|
10
10
|
});
|
|
11
11
|
Object.defineProperty(exports, "ModerationInputProcessor", {
|
|
12
12
|
enumerable: true,
|
|
13
|
-
get: function () { return
|
|
13
|
+
get: function () { return chunk6S7RRJON_cjs.ModerationInputProcessor; }
|
|
14
14
|
});
|
|
15
15
|
Object.defineProperty(exports, "PIIDetector", {
|
|
16
16
|
enumerable: true,
|
|
17
|
-
get: function () { return
|
|
17
|
+
get: function () { return chunk6S7RRJON_cjs.PIIDetector; }
|
|
18
18
|
});
|
|
19
19
|
Object.defineProperty(exports, "PromptInjectionDetector", {
|
|
20
20
|
enumerable: true,
|
|
21
|
-
get: function () { return
|
|
21
|
+
get: function () { return chunk6S7RRJON_cjs.PromptInjectionDetector; }
|
|
22
22
|
});
|
|
23
23
|
Object.defineProperty(exports, "UnicodeNormalizer", {
|
|
24
24
|
enumerable: true,
|
|
25
|
-
get: function () { return
|
|
25
|
+
get: function () { return chunk6S7RRJON_cjs.UnicodeNormalizer; }
|
|
26
26
|
});
|
|
27
27
|
//# sourceMappingURL=index.cjs.map
|
|
28
28
|
//# sourceMappingURL=index.cjs.map
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { LanguageDetector, ModerationInputProcessor, PIIDetector, PromptInjectionDetector, UnicodeNormalizer } from '../../../chunk-
|
|
1
|
+
export { LanguageDetector, ModerationInputProcessor, PIIDetector, PromptInjectionDetector, UnicodeNormalizer } from '../../../chunk-ZRRHATKS.js';
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
|
3
3
|
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* MastraAITracing - Abstract base class for AI Tracing implementations
|
|
3
|
+
*/
|
|
4
|
+
import { MastraBase } from '../base.js';
|
|
5
|
+
import type { RuntimeContext } from '../runtime-context/index.js';
|
|
6
|
+
import type { AITracingConfig, AISpan, AISpanOptions, AISpanType, AITracingExporter, AISpanProcessor, AITracingEvent, AITraceContext, AISpanTypeMap, AnyAISpan } from './types.js';
|
|
7
|
+
/**
|
|
8
|
+
* Abstract base class for all AI Tracing implementations in Mastra.
|
|
9
|
+
*
|
|
10
|
+
*/
|
|
11
|
+
export declare abstract class MastraAITracing extends MastraBase {
|
|
12
|
+
protected config: AITracingConfig;
|
|
13
|
+
constructor(config: AITracingConfig);
|
|
14
|
+
protected get exporters(): AITracingExporter[];
|
|
15
|
+
protected get processors(): AISpanProcessor[];
|
|
16
|
+
/**
|
|
17
|
+
* Start a new span of a specific AISpanType
|
|
18
|
+
*/
|
|
19
|
+
startSpan<TType extends AISpanType>(type: TType, name: string, metadata: AISpanTypeMap[TType], parent?: AnyAISpan, runtimeContext?: RuntimeContext, attributes?: Record<string, any>): AISpan<TType>;
|
|
20
|
+
/**
|
|
21
|
+
* Create a new span (called after sampling)
|
|
22
|
+
*
|
|
23
|
+
* Implementations should:
|
|
24
|
+
* 1. Create a plain span with the provided metadata
|
|
25
|
+
* 2. Return the span - base class handles all tracing lifecycle automatically
|
|
26
|
+
*
|
|
27
|
+
* The base class will automatically:
|
|
28
|
+
* - Set trace relationships
|
|
29
|
+
* - Wire span lifecycle callbacks
|
|
30
|
+
* - Emit span_started event
|
|
31
|
+
*/
|
|
32
|
+
protected abstract createSpan<TType extends AISpanType>(options: AISpanOptions<TType>): AISpan<TType>;
|
|
33
|
+
/**
|
|
34
|
+
* Get current configuration
|
|
35
|
+
*/
|
|
36
|
+
getConfig(): Readonly<AITracingConfig>;
|
|
37
|
+
/**
|
|
38
|
+
* Get all exporters
|
|
39
|
+
*/
|
|
40
|
+
getExporters(): readonly AITracingExporter[];
|
|
41
|
+
/**
|
|
42
|
+
* Get all processors
|
|
43
|
+
*/
|
|
44
|
+
getProcessors(): readonly AISpanProcessor[];
|
|
45
|
+
/**
|
|
46
|
+
* Get the logger instance (for exporters and other components)
|
|
47
|
+
*/
|
|
48
|
+
getLogger(): import("../logger").IMastraLogger;
|
|
49
|
+
/**
|
|
50
|
+
* Automatically wires up AI tracing lifecycle events for any span
|
|
51
|
+
* This ensures all spans emit events regardless of implementation
|
|
52
|
+
*/
|
|
53
|
+
private wireSpanLifecycle;
|
|
54
|
+
/**
|
|
55
|
+
* Check if an AI trace should be sampled
|
|
56
|
+
*/
|
|
57
|
+
protected shouldSample(traceContext: AITraceContext): boolean;
|
|
58
|
+
/**
|
|
59
|
+
* Process a span through all processors
|
|
60
|
+
*/
|
|
61
|
+
private processSpan;
|
|
62
|
+
/**
|
|
63
|
+
* Emit a span started event
|
|
64
|
+
*/
|
|
65
|
+
protected emitSpanStarted(span: AnyAISpan): void;
|
|
66
|
+
/**
|
|
67
|
+
* Emit a span ended event (called automatically when spans end)
|
|
68
|
+
*/
|
|
69
|
+
protected emitSpanEnded(span: AnyAISpan): void;
|
|
70
|
+
/**
|
|
71
|
+
* Emit a span updated event
|
|
72
|
+
*/
|
|
73
|
+
protected emitSpanUpdated(span: AnyAISpan): void;
|
|
74
|
+
/**
|
|
75
|
+
* Export tracing event through all exporters (realtime mode)
|
|
76
|
+
*/
|
|
77
|
+
protected exportEvent(event: AITracingEvent): Promise<void>;
|
|
78
|
+
/**
|
|
79
|
+
* Initialize AI tracing (called by Mastra during component registration)
|
|
80
|
+
*/
|
|
81
|
+
init(): Promise<void>;
|
|
82
|
+
/**
|
|
83
|
+
* Shutdown AI tracing and clean up resources
|
|
84
|
+
*/
|
|
85
|
+
shutdown(): Promise<void>;
|
|
86
|
+
}
|
|
87
|
+
//# sourceMappingURL=base.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"base.d.ts","sourceRoot":"","sources":["../../src/ai-tracing/base.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAErC,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAEzD,OAAO,KAAK,EACV,eAAe,EACf,MAAM,EACN,aAAa,EACb,UAAU,EACV,iBAAiB,EACjB,eAAe,EACf,cAAc,EACd,cAAc,EACd,aAAa,EACb,SAAS,EACV,MAAM,SAAS,CAAC;AAOjB;;;GAGG;AACH,8BAAsB,eAAgB,SAAQ,UAAU;IACtD,SAAS,CAAC,MAAM,EAAE,eAAe,CAAC;gBAEtB,MAAM,EAAE,eAAe;IAYnC,SAAS,KAAK,SAAS,IAAI,iBAAiB,EAAE,CAE7C;IAED,SAAS,KAAK,UAAU,IAAI,eAAe,EAAE,CAE5C;IAMD;;OAEG;IACH,SAAS,CAAC,KAAK,SAAS,UAAU,EAChC,IAAI,EAAE,KAAK,EACX,IAAI,EAAE,MAAM,EACZ,QAAQ,EAAE,aAAa,CAAC,KAAK,CAAC,EAC9B,MAAM,CAAC,EAAE,SAAS,EAClB,cAAc,CAAC,EAAE,cAAc,EAC/B,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAC/B,MAAM,CAAC,KAAK,CAAC;IA4BhB;;;;;;;;;;;OAWG;IACH,SAAS,CAAC,QAAQ,CAAC,UAAU,CAAC,KAAK,SAAS,UAAU,EAAE,OAAO,EAAE,aAAa,CAAC,KAAK,CAAC,GAAG,MAAM,CAAC,KAAK,CAAC;IAMrG;;OAEG;IACH,SAAS,IAAI,QAAQ,CAAC,eAAe,CAAC;IAQtC;;OAEG;IACH,YAAY,IAAI,SAAS,iBAAiB,EAAE;IAI5C;;OAEG;IACH,aAAa,IAAI,SAAS,eAAe,EAAE;IAI3C;;OAEG;IACH,SAAS;IAQT;;;OAGG;IACH,OAAO,CAAC,iBAAiB;IAqBzB;;OAEG;IACH,SAAS,CAAC,YAAY,CAAC,YAAY,EAAE,cAAc,GAAG,OAAO;IAwB7D;;OAEG;IACH,OAAO,CAAC,WAAW;IAuBnB;;OAEG;IACH,SAAS,CAAC,eAAe,CAAC,IAAI,EAAE,SAAS,GAAG,IAAI;IAUhD;;OAEG;IACH,SAAS,CAAC,aAAa,CAAC,IAAI,EAAE,SAAS,GAAG,IAAI;IAU9C;;OAEG;IACH,SAAS,CAAC,eAAe,CAAC,IAAI,EAAE,SAAS,GAAG,IAAI;IAUhD;;OAEG;cACa,WAAW,CAAC,KAAK,EAAE,cAAc,GAAG,OAAO,CAAC,IAAI,CAAC;IAoBjE;;OAEG;IACG,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC;IAS3B;;OAEG;IACG,QAAQ,IAAI,OAAO,CAAC,IAAI,CAAC;CAUhC"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Default Implementation for MastraAITracing
|
|
3
|
+
*/
|
|
4
|
+
import type { IMastraLogger } from '../logger/index.js';
|
|
5
|
+
import { MastraAITracing } from './base.js';
|
|
6
|
+
import type { AISpanType, AISpan, AISpanOptions, AITracingExporter, AITracingConfig, AITracingEvent, AISpanProcessor, AnyAISpan } from './types.js';
|
|
7
|
+
export declare class SensitiveDataFilter implements AISpanProcessor {
|
|
8
|
+
name: string;
|
|
9
|
+
private sensitiveFields;
|
|
10
|
+
constructor(sensitiveFields?: string[]);
|
|
11
|
+
process(span: AnyAISpan): AnyAISpan | null;
|
|
12
|
+
shutdown(): Promise<void>;
|
|
13
|
+
}
|
|
14
|
+
export declare class DefaultConsoleExporter implements AITracingExporter {
|
|
15
|
+
name: string;
|
|
16
|
+
private logger;
|
|
17
|
+
constructor(logger?: IMastraLogger);
|
|
18
|
+
exportEvent(event: AITracingEvent): Promise<void>;
|
|
19
|
+
shutdown(): Promise<void>;
|
|
20
|
+
}
|
|
21
|
+
export declare const aiTracingDefaultConfig: AITracingConfig;
|
|
22
|
+
export declare class DefaultAITracing extends MastraAITracing {
|
|
23
|
+
constructor(config?: AITracingConfig);
|
|
24
|
+
protected createSpan<TType extends AISpanType>(options: AISpanOptions<TType>): AISpan<TType>;
|
|
25
|
+
}
|
|
26
|
+
//# sourceMappingURL=default.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"default.d.ts","sourceRoot":"","sources":["../../src/ai-tracing/default.ts"],"names":[],"mappings":"AAAA;;GAEG;AAGH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,WAAW,CAAC;AAE/C,OAAO,EAAE,eAAe,EAAE,MAAM,QAAQ,CAAC;AACzC,OAAO,KAAK,EACV,UAAU,EACV,MAAM,EACN,aAAa,EACb,iBAAiB,EACjB,eAAe,EACf,cAAc,EAEd,eAAe,EACf,SAAS,EACV,MAAM,SAAS,CAAC;AAoIjB,qBAAa,mBAAoB,YAAW,eAAe;IACzD,IAAI,SAA2B;IAC/B,OAAO,CAAC,eAAe,CAAW;gBAEtB,eAAe,CAAC,EAAE,MAAM,EAAE;IAmBtC,OAAO,CAAC,IAAI,EAAE,SAAS,GAAG,SAAS,GAAG,IAAI;IAkDpC,QAAQ,IAAI,OAAO,CAAC,IAAI,CAAC;CAGhC;AAMD,qBAAa,sBAAuB,YAAW,iBAAiB;IAC9D,IAAI,SAAqB;IACzB,OAAO,CAAC,MAAM,CAAgB;gBAElB,MAAM,CAAC,EAAE,aAAa;IAW5B,WAAW,CAAC,KAAK,EAAE,cAAc,GAAG,OAAO,CAAC,IAAI,CAAC;IA0DjD,QAAQ,IAAI,OAAO,CAAC,IAAI,CAAC;CAGhC;AAMD,eAAO,MAAM,sBAAsB,EAAE,eAKpC,CAAC;AAMF,qBAAa,gBAAiB,SAAQ,eAAe;gBACvC,MAAM,GAAE,eAAwC;IAQ5D,SAAS,CAAC,UAAU,CAAC,KAAK,SAAS,UAAU,EAAE,OAAO,EAAE,aAAa,CAAC,KAAK,CAAC,GAAG,MAAM,CAAC,KAAK,CAAC;CAI7F"}
|