@mastra/core 1.25.0-alpha.1 → 1.25.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/CHANGELOG.md +9 -0
- package/dist/agent/index.cjs +8 -8
- package/dist/agent/index.js +1 -1
- package/dist/browser/index.cjs +2 -2
- package/dist/browser/index.js +1 -1
- package/dist/channels/index.cjs +4 -4
- package/dist/channels/index.js +1 -1
- package/dist/{chunk-2KXTBV63.cjs → chunk-2CSXTC4W.cjs} +50 -50
- package/dist/{chunk-2KXTBV63.cjs.map → chunk-2CSXTC4W.cjs.map} +1 -1
- package/dist/{chunk-BMFKFNJ5.cjs → chunk-4SQWVJWB.cjs} +6 -6
- package/dist/{chunk-BMFKFNJ5.cjs.map → chunk-4SQWVJWB.cjs.map} +1 -1
- package/dist/{chunk-5VDQUHRE.cjs → chunk-5K3IY3XF.cjs} +185 -185
- package/dist/{chunk-5VDQUHRE.cjs.map → chunk-5K3IY3XF.cjs.map} +1 -1
- package/dist/{chunk-XS3FHQ34.cjs → chunk-76F6NBJL.cjs} +42 -12
- package/dist/chunk-76F6NBJL.cjs.map +1 -0
- package/dist/{chunk-XU5BBDQZ.cjs → chunk-B4ENLDYO.cjs} +17 -17
- package/dist/{chunk-XU5BBDQZ.cjs.map → chunk-B4ENLDYO.cjs.map} +1 -1
- package/dist/{chunk-IKLOB7RZ.js → chunk-BJ2XQP3C.js} +3 -3
- package/dist/{chunk-IKLOB7RZ.js.map → chunk-BJ2XQP3C.js.map} +1 -1
- package/dist/{chunk-CTMULM7C.cjs → chunk-C7HSAYNV.cjs} +84 -84
- package/dist/{chunk-CTMULM7C.cjs.map → chunk-C7HSAYNV.cjs.map} +1 -1
- package/dist/{chunk-7DIETM5S.js → chunk-E7YN2YMC.js} +4 -4
- package/dist/{chunk-7DIETM5S.js.map → chunk-E7YN2YMC.js.map} +1 -1
- package/dist/{chunk-P52ZOO73.js → chunk-EASGWCPC.js} +9 -9
- package/dist/{chunk-P52ZOO73.js.map → chunk-EASGWCPC.js.map} +1 -1
- package/dist/{chunk-B5WUFMYZ.cjs → chunk-FWMUBTU4.cjs} +9 -9
- package/dist/{chunk-B5WUFMYZ.cjs.map → chunk-FWMUBTU4.cjs.map} +1 -1
- package/dist/{chunk-ZR576TEH.js → chunk-IQHCMOKI.js} +3 -3
- package/dist/{chunk-ZR576TEH.js.map → chunk-IQHCMOKI.js.map} +1 -1
- package/dist/{chunk-3B36QOW6.cjs → chunk-J3FO6OIB.cjs} +44 -44
- package/dist/{chunk-3B36QOW6.cjs.map → chunk-J3FO6OIB.cjs.map} +1 -1
- package/dist/{chunk-EE7IQ4HH.js → chunk-JIMR47KA.js} +7 -7
- package/dist/{chunk-EE7IQ4HH.js.map → chunk-JIMR47KA.js.map} +1 -1
- package/dist/{chunk-LLA7HBBB.js → chunk-K26M4ISU.js} +4 -4
- package/dist/{chunk-LLA7HBBB.js.map → chunk-K26M4ISU.js.map} +1 -1
- package/dist/{chunk-6FXOHI4A.cjs → chunk-LF4SXNRS.cjs} +9 -9
- package/dist/{chunk-6FXOHI4A.cjs.map → chunk-LF4SXNRS.cjs.map} +1 -1
- package/dist/{chunk-KIBLHJSP.js → chunk-MDNJVHTD.js} +3 -3
- package/dist/{chunk-KIBLHJSP.js.map → chunk-MDNJVHTD.js.map} +1 -1
- package/dist/{chunk-V5BD6VNQ.js → chunk-O57MJIVP.js} +106 -76
- package/dist/chunk-O57MJIVP.js.map +1 -0
- package/dist/{chunk-234T424F.js → chunk-PQSYNNZQ.js} +42 -12
- package/dist/chunk-PQSYNNZQ.js.map +1 -0
- package/dist/{chunk-P72NEDL3.cjs → chunk-PTBJYFV2.cjs} +6 -6
- package/dist/{chunk-P72NEDL3.cjs.map → chunk-PTBJYFV2.cjs.map} +1 -1
- package/dist/{chunk-E3LEATLR.js → chunk-RKIXM4J7.js} +3 -3
- package/dist/{chunk-E3LEATLR.js.map → chunk-RKIXM4J7.js.map} +1 -1
- package/dist/{chunk-DBVD54SZ.js → chunk-T2KZMZB4.js} +6 -6
- package/dist/{chunk-DBVD54SZ.js.map → chunk-T2KZMZB4.js.map} +1 -1
- package/dist/{chunk-5VPZDGJB.cjs → chunk-TCYFYO63.cjs} +118 -88
- package/dist/chunk-TCYFYO63.cjs.map +1 -0
- package/dist/{chunk-PLIDLBX6.cjs → chunk-TF4L3AI6.cjs} +7 -7
- package/dist/{chunk-PLIDLBX6.cjs.map → chunk-TF4L3AI6.cjs.map} +1 -1
- package/dist/{chunk-IMQQUIY5.cjs → chunk-W36S5E2D.cjs} +5 -5
- package/dist/{chunk-IMQQUIY5.cjs.map → chunk-W36S5E2D.cjs.map} +1 -1
- package/dist/{chunk-657TKMVS.js → chunk-XZ6Y2MUP.js} +4 -4
- package/dist/{chunk-657TKMVS.js.map → chunk-XZ6Y2MUP.js.map} +1 -1
- package/dist/{chunk-MMWXEOQL.js → chunk-YEYOK76V.js} +3 -3
- package/dist/{chunk-MMWXEOQL.js.map → chunk-YEYOK76V.js.map} +1 -1
- package/dist/{chunk-CHQR7PW2.js → chunk-YJQQFINI.js} +3 -3
- package/dist/{chunk-CHQR7PW2.js.map → chunk-YJQQFINI.js.map} +1 -1
- package/dist/{chunk-PRPEQPDT.cjs → chunk-YMYNVSNF.cjs} +3 -3
- package/dist/{chunk-PRPEQPDT.cjs.map → chunk-YMYNVSNF.cjs.map} +1 -1
- package/dist/datasets/index.cjs +17 -17
- package/dist/datasets/index.js +2 -2
- package/dist/docs/SKILL.md +1 -1
- package/dist/docs/assets/SOURCE_MAP.json +207 -207
- package/dist/docs/references/docs-agents-adding-voice.md +4 -4
- package/dist/docs/references/docs-evals-custom-scorers.md +2 -2
- package/dist/docs/references/docs-memory-memory-processors.md +3 -3
- package/dist/docs/references/docs-memory-observational-memory.md +1 -1
- package/dist/docs/references/docs-memory-working-memory.md +1 -1
- package/dist/docs/references/docs-server-custom-adapters.md +5 -5
- package/dist/docs/references/docs-server-custom-api-routes.md +3 -3
- package/dist/docs/references/docs-server-middleware.md +0 -24
- package/dist/docs/references/docs-studio-observability.md +1 -1
- package/dist/docs/references/docs-voice-speech-to-text.md +7 -7
- package/dist/docs/references/docs-voice-text-to-speech.md +10 -10
- package/dist/docs/references/docs-workspace-filesystem.md +4 -4
- package/dist/docs/references/docs-workspace-skills.md +3 -3
- package/dist/docs/references/guides-agent-frameworks-ai-sdk.md +4 -4
- package/dist/docs/references/reference-agents-channels.md +3 -3
- package/dist/docs/references/reference-core-addGateway.md +5 -5
- package/dist/docs/references/reference-core-getGateway.md +5 -5
- package/dist/docs/references/reference-core-getGatewayById.md +5 -5
- package/dist/docs/references/reference-core-getMCPServer.md +2 -2
- package/dist/docs/references/reference-core-getMCPServerById.md +2 -2
- package/dist/docs/references/reference-core-getScorer.md +3 -3
- package/dist/docs/references/reference-core-getScorerById.md +3 -3
- package/dist/docs/references/reference-core-listGateways.md +5 -5
- package/dist/docs/references/reference-core-listMCPServers.md +2 -2
- package/dist/docs/references/reference-core-listScorers.md +3 -3
- package/dist/docs/references/reference-core-mastra-model-gateway.md +5 -5
- package/dist/docs/references/reference-evals-context-precision.md +3 -3
- package/dist/docs/references/reference-evals-mastra-scorer.md +4 -4
- package/dist/docs/references/reference-evals-run-evals.md +6 -6
- package/dist/docs/references/reference-evals-scorer-utils.md +3 -3
- package/dist/docs/references/reference-evals-trajectory-accuracy.md +3 -3
- package/dist/docs/references/reference-observability-tracing-bridges-otel.md +3 -3
- package/dist/docs/references/reference-observability-tracing-configuration.md +12 -12
- package/dist/docs/references/reference-observability-tracing-exporters-console-exporter.md +8 -8
- package/dist/docs/references/reference-observability-tracing-instances.md +7 -7
- package/dist/docs/references/reference-observability-tracing-interfaces.md +6 -6
- package/dist/docs/references/reference-observability-tracing-spans.md +6 -6
- package/dist/docs/references/reference-processors-processor-interface.md +3 -3
- package/dist/docs/references/reference-server-mastra-server.md +3 -3
- package/dist/docs/references/reference-server-register-api-route.md +4 -4
- package/dist/docs/references/reference-storage-overview.md +1 -1
- package/dist/docs/references/reference-streaming-ChunkType.md +3 -3
- package/dist/docs/references/reference-streaming-agents-MastraModelOutput.md +2 -2
- package/dist/docs/references/reference-voice-voice.connect.md +4 -4
- package/dist/docs/references/reference-voice-voice.listen.md +3 -3
- package/dist/docs/references/reference-workflows-run-methods-startAsync.md +1 -1
- package/dist/docs/references/reference-workspace-workspace-class.md +1 -1
- package/dist/evals/index.cjs +5 -5
- package/dist/evals/index.js +2 -2
- package/dist/evals/scoreTraces/index.cjs +3 -3
- package/dist/evals/scoreTraces/index.js +1 -1
- package/dist/harness/index.cjs +9 -9
- package/dist/harness/index.js +6 -6
- package/dist/index.cjs +2 -2
- package/dist/index.js +1 -1
- package/dist/llm/index.cjs +20 -20
- package/dist/llm/index.js +5 -5
- package/dist/llm/model/provider-types.generated.d.ts +45 -30
- package/dist/loop/index.cjs +14 -14
- package/dist/loop/index.js +1 -1
- package/dist/mastra/index.cjs +2 -2
- package/dist/mastra/index.js +1 -1
- package/dist/mastra-73GV2I6G.cjs +12 -0
- package/dist/{mastra-2NH67NW3.cjs.map → mastra-73GV2I6G.cjs.map} +1 -1
- package/dist/mastra-YZGXHKSJ.js +3 -0
- package/dist/{mastra-BOWNGAEP.js.map → mastra-YZGXHKSJ.js.map} +1 -1
- package/dist/memory/index.cjs +19 -19
- package/dist/memory/index.js +1 -1
- package/dist/models-dev-MPU4ZIII.js +3 -0
- package/dist/{models-dev-C66PZDFD.js.map → models-dev-MPU4ZIII.js.map} +1 -1
- package/dist/models-dev-YSGLFMMA.cjs +12 -0
- package/dist/{models-dev-23NHHG3J.cjs.map → models-dev-YSGLFMMA.cjs.map} +1 -1
- package/dist/netlify-6GG6OMR6.js +3 -0
- package/dist/{netlify-HTGPYTNP.js.map → netlify-6GG6OMR6.js.map} +1 -1
- package/dist/netlify-SLPWLB5B.cjs +12 -0
- package/dist/{netlify-VU5XD3IX.cjs.map → netlify-SLPWLB5B.cjs.map} +1 -1
- package/dist/processor-provider/index.cjs +10 -10
- package/dist/processor-provider/index.js +1 -1
- package/dist/processors/index.cjs +44 -44
- package/dist/processors/index.js +1 -1
- package/dist/provider-registry-JHLXPZPL.js +3 -0
- package/dist/{provider-registry-XPG5T4TE.js.map → provider-registry-JHLXPZPL.js.map} +1 -1
- package/dist/provider-registry-VS2NLANW.cjs +44 -0
- package/dist/{provider-registry-3HKQJTKQ.cjs.map → provider-registry-VS2NLANW.cjs.map} +1 -1
- package/dist/provider-registry.json +98 -68
- package/dist/relevance/index.cjs +3 -3
- package/dist/relevance/index.js +1 -1
- package/dist/storage/index.cjs +74 -74
- package/dist/storage/index.js +1 -1
- package/dist/stream/index.cjs +8 -8
- package/dist/stream/index.js +1 -1
- package/dist/test-utils/llm-mock.cjs +4 -4
- package/dist/test-utils/llm-mock.js +1 -1
- package/dist/tool-loop-agent/index.cjs +4 -4
- package/dist/tool-loop-agent/index.js +1 -1
- package/dist/tools/tool-builder/builder.d.ts.map +1 -1
- package/dist/utils.cjs +25 -25
- package/dist/utils.js +1 -1
- package/dist/vector/index.cjs +7 -7
- package/dist/vector/index.js +1 -1
- package/dist/workflows/evented/index.cjs +10 -10
- package/dist/workflows/evented/index.js +1 -1
- package/dist/workflows/index.cjs +24 -24
- package/dist/workflows/index.js +1 -1
- package/package.json +5 -5
- package/src/llm/model/provider-types.generated.d.ts +45 -30
- package/dist/chunk-234T424F.js.map +0 -1
- package/dist/chunk-5VPZDGJB.cjs.map +0 -1
- package/dist/chunk-V5BD6VNQ.js.map +0 -1
- package/dist/chunk-XS3FHQ34.cjs.map +0 -1
- package/dist/mastra-2NH67NW3.cjs +0 -12
- package/dist/mastra-BOWNGAEP.js +0 -3
- package/dist/models-dev-23NHHG3J.cjs +0 -12
- package/dist/models-dev-C66PZDFD.js +0 -3
- package/dist/netlify-HTGPYTNP.js +0 -3
- package/dist/netlify-VU5XD3IX.cjs +0 -12
- package/dist/provider-registry-3HKQJTKQ.cjs +0 -44
- package/dist/provider-registry-XPG5T4TE.js +0 -3
|
@@ -343,7 +343,7 @@ Mastra supports multiple voice providers for text-to-speech (TTS) and speech-to-
|
|
|
343
343
|
|
|
344
344
|
## Next steps
|
|
345
345
|
|
|
346
|
-
- [Voice API Reference](https://mastra.ai/reference/voice/mastra-voice)
|
|
347
|
-
- [Text to Speech Examples](https://github.com/mastra-ai/voice-examples/tree/main/text-to-speech)
|
|
348
|
-
- [Speech to Text Examples](https://github.com/mastra-ai/voice-examples/tree/main/speech-to-text)
|
|
349
|
-
- [Speech to Speech Examples](https://github.com/mastra-ai/voice-examples/tree/main/speech-to-speech)
|
|
346
|
+
- [Voice API Reference](https://mastra.ai/reference/voice/mastra-voice): Detailed API documentation for voice capabilities
|
|
347
|
+
- [Text to Speech Examples](https://github.com/mastra-ai/voice-examples/tree/main/text-to-speech): Interactive story generator and other TTS implementations
|
|
348
|
+
- [Speech to Text Examples](https://github.com/mastra-ai/voice-examples/tree/main/speech-to-text): Voice memo app and other STT implementations
|
|
349
|
+
- [Speech to Speech Examples](https://github.com/mastra-ai/voice-examples/tree/main/speech-to-speech): Real-time voice conversation with call analysis
|
|
@@ -515,5 +515,5 @@ console.log('Reason:', result.reason)
|
|
|
515
515
|
|
|
516
516
|
**Examples and Resources:**
|
|
517
517
|
|
|
518
|
-
- [createScorer API Reference](https://mastra.ai/reference/evals/create-scorer)
|
|
519
|
-
- [Built-in Scorers Source Code](https://github.com/mastra-ai/mastra/tree/main/packages/evals/src/scorers)
|
|
518
|
+
- [createScorer API Reference](https://mastra.ai/reference/evals/create-scorer): Complete technical documentation
|
|
519
|
+
- [Built-in Scorers Source Code](https://github.com/mastra-ai/mastra/tree/main/packages/evals/src/scorers): Real implementations for reference
|
|
@@ -307,8 +307,8 @@ Both scenarios are safe - guardrails prevent inappropriate content from being pe
|
|
|
307
307
|
|
|
308
308
|
## Related documentation
|
|
309
309
|
|
|
310
|
-
- [Processors](https://mastra.ai/docs/agents/processors)
|
|
311
|
-
- [Guardrails](https://mastra.ai/docs/agents/guardrails)
|
|
312
|
-
- [Memory Overview](https://mastra.ai/docs/memory/overview)
|
|
310
|
+
- [Processors](https://mastra.ai/docs/agents/processors): General processor concepts and custom processor creation
|
|
311
|
+
- [Guardrails](https://mastra.ai/docs/agents/guardrails): Security and validation processors
|
|
312
|
+
- [Memory Overview](https://mastra.ai/docs/memory/overview): Memory types and configuration
|
|
313
313
|
|
|
314
314
|
When creating custom processors avoid mutating the input `messages` array or its objects directly.
|
|
@@ -157,7 +157,7 @@ With retrieval mode enabled, OM:
|
|
|
157
157
|
- Registers a `recall` tool the agent can call to:
|
|
158
158
|
|
|
159
159
|
- Page through the raw messages behind any observation group range
|
|
160
|
-
- Search by semantic similarity (`mode: "search"` with a `query` string)
|
|
160
|
+
- Search by semantic similarity (`mode: "search"` with a `query` string); requires `vector: true`
|
|
161
161
|
- List all threads (`mode: "threads"`), browse other threads (`threadId`), and search across all threads (default `scope: 'resource'`)
|
|
162
162
|
- When `scope: 'thread'`: restrict browsing and search to the current thread only
|
|
163
163
|
|
|
@@ -397,4 +397,4 @@ const response = await agent.generate('What do you know about me?', {
|
|
|
397
397
|
|
|
398
398
|
- [Working memory with template](https://github.com/mastra-ai/mastra/tree/main/examples/memory-with-template)
|
|
399
399
|
- [Working memory with schema](https://github.com/mastra-ai/mastra/tree/main/examples/memory-with-schema)
|
|
400
|
-
- [Per-resource working memory](https://github.com/mastra-ai/mastra/tree/main/examples/memory-per-resource-example)
|
|
400
|
+
- [Per-resource working memory](https://github.com/mastra-ai/mastra/tree/main/examples/memory-per-resource-example): Complete example showing resource-scoped memory persistence
|
|
@@ -373,8 +373,8 @@ app.listen(4111)
|
|
|
373
373
|
|
|
374
374
|
## Related
|
|
375
375
|
|
|
376
|
-
- [Server Adapters](https://mastra.ai/docs/server/server-adapters)
|
|
377
|
-
- [Hono Adapter](https://mastra.ai/reference/server/hono-adapter)
|
|
378
|
-
- [Express Adapter](https://mastra.ai/reference/server/express-adapter)
|
|
379
|
-
- [MastraServer Reference](https://mastra.ai/reference/server/mastra-server)
|
|
380
|
-
- [createRoute() Reference](https://mastra.ai/reference/server/create-route)
|
|
376
|
+
- [Server Adapters](https://mastra.ai/docs/server/server-adapters): Overview and shared concepts
|
|
377
|
+
- [Hono Adapter](https://mastra.ai/reference/server/hono-adapter): Reference implementation
|
|
378
|
+
- [Express Adapter](https://mastra.ai/reference/server/express-adapter): Reference implementation
|
|
379
|
+
- [MastraServer Reference](https://mastra.ai/reference/server/mastra-server): Full API reference
|
|
380
|
+
- [createRoute() Reference](https://mastra.ai/reference/server/create-route): Creating type-safe custom routes
|
|
@@ -318,6 +318,6 @@ export const mastra = new Mastra({
|
|
|
318
318
|
|
|
319
319
|
## Related
|
|
320
320
|
|
|
321
|
-
- [registerApiRoute() Reference](https://mastra.ai/reference/server/register-api-route)
|
|
322
|
-
- [Server Middleware](https://mastra.ai/docs/server/middleware)
|
|
323
|
-
- [Mastra Server](https://mastra.ai/docs/server/mastra-server)
|
|
321
|
+
- [registerApiRoute() Reference](https://mastra.ai/reference/server/register-api-route): Full API reference
|
|
322
|
+
- [Server Middleware](https://mastra.ai/docs/server/middleware): Global middleware configuration
|
|
323
|
+
- [Mastra Server](https://mastra.ai/docs/server/mastra-server): Server configuration options
|
|
@@ -235,30 +235,6 @@ This is useful when you want to restrict operations to a specific thread that yo
|
|
|
235
235
|
}
|
|
236
236
|
```
|
|
237
237
|
|
|
238
|
-
### Special Mastra headers
|
|
239
|
-
|
|
240
|
-
When integrating with Mastra Cloud or custom clients the following headers can be inspected by middleware to tailor behavior:
|
|
241
|
-
|
|
242
|
-
```typescript
|
|
243
|
-
{
|
|
244
|
-
handler: async (c, next) => {
|
|
245
|
-
const isFromMastraCloud = c.req.header('x-mastra-cloud') === 'true';
|
|
246
|
-
const clientType = c.req.header('x-mastra-client-type');
|
|
247
|
-
const isStudio =
|
|
248
|
-
c.req.header('x-studio') === 'true';
|
|
249
|
-
|
|
250
|
-
if (isFromMastraCloud) {
|
|
251
|
-
// Special handling
|
|
252
|
-
}
|
|
253
|
-
await next();
|
|
254
|
-
},
|
|
255
|
-
}
|
|
256
|
-
```
|
|
257
|
-
|
|
258
|
-
- `x-mastra-cloud`: request originates from Mastra Cloud
|
|
259
|
-
- `x-mastra-client-type`: identifies the client SDK, e.g. `js` or `python`
|
|
260
|
-
- `x-studio`: request triggered from Studio
|
|
261
|
-
|
|
262
238
|
# Related
|
|
263
239
|
|
|
264
240
|
- [Request Context](https://mastra.ai/docs/server/request-context)
|
|
@@ -87,7 +87,7 @@ export const mastra = new Mastra({
|
|
|
87
87
|
serviceName: 'mastra',
|
|
88
88
|
exporters: [
|
|
89
89
|
new DefaultExporter(), // Persists traces to storage for Mastra Studio
|
|
90
|
-
new CloudExporter(), // Sends observability data to Mastra
|
|
90
|
+
new CloudExporter(), // Sends observability data to hosted Mastra Studio (if MASTRA_CLOUD_ACCESS_TOKEN is set)
|
|
91
91
|
],
|
|
92
92
|
spanOutputProcessors: [
|
|
93
93
|
new SensitiveDataFilter(), // Redacts sensitive data like passwords, tokens, keys
|
|
@@ -28,13 +28,13 @@ const voice = new OpenAIVoice()
|
|
|
28
28
|
|
|
29
29
|
Mastra supports several Speech-to-Text providers, each with their own capabilities and strengths:
|
|
30
30
|
|
|
31
|
-
- [**OpenAI**](https://mastra.ai/reference/voice/openai)
|
|
32
|
-
- [**Azure**](https://mastra.ai/reference/voice/azure)
|
|
33
|
-
- [**ElevenLabs**](https://mastra.ai/reference/voice/elevenlabs)
|
|
34
|
-
- [**Google**](https://mastra.ai/reference/voice/google)
|
|
35
|
-
- [**Cloudflare**](https://mastra.ai/reference/voice/cloudflare)
|
|
36
|
-
- [**Deepgram**](https://mastra.ai/reference/voice/deepgram)
|
|
37
|
-
- [**Sarvam**](https://mastra.ai/reference/voice/sarvam)
|
|
31
|
+
- [**OpenAI**](https://mastra.ai/reference/voice/openai): High-accuracy transcription with Whisper models
|
|
32
|
+
- [**Azure**](https://mastra.ai/reference/voice/azure): Microsoft's speech recognition with enterprise-grade reliability
|
|
33
|
+
- [**ElevenLabs**](https://mastra.ai/reference/voice/elevenlabs): Advanced speech recognition with support for multiple languages
|
|
34
|
+
- [**Google**](https://mastra.ai/reference/voice/google): Google's speech recognition with extensive language support
|
|
35
|
+
- [**Cloudflare**](https://mastra.ai/reference/voice/cloudflare): Edge-optimized speech recognition for low-latency applications
|
|
36
|
+
- [**Deepgram**](https://mastra.ai/reference/voice/deepgram): AI-powered speech recognition with high accuracy for various accents
|
|
37
|
+
- [**Sarvam**](https://mastra.ai/reference/voice/sarvam): Specialized in Indic languages and accents
|
|
38
38
|
|
|
39
39
|
Each provider is implemented as a separate package that you can install as needed:
|
|
40
40
|
|
|
@@ -33,16 +33,16 @@ const voice = new OpenAIVoice()
|
|
|
33
33
|
|
|
34
34
|
Mastra supports a wide range of Text-to-Speech providers, each with their own unique capabilities and voice options. You can choose the provider that best suits your application's needs:
|
|
35
35
|
|
|
36
|
-
- [**OpenAI**](https://mastra.ai/reference/voice/openai)
|
|
37
|
-
- [**Azure**](https://mastra.ai/reference/voice/azure)
|
|
38
|
-
- [**ElevenLabs**](https://mastra.ai/reference/voice/elevenlabs)
|
|
39
|
-
- [**PlayAI**](https://mastra.ai/reference/voice/playai)
|
|
40
|
-
- [**Google**](https://mastra.ai/reference/voice/google)
|
|
41
|
-
- [**Cloudflare**](https://mastra.ai/reference/voice/cloudflare)
|
|
42
|
-
- [**Deepgram**](https://mastra.ai/reference/voice/deepgram)
|
|
43
|
-
- [**Speechify**](https://mastra.ai/reference/voice/speechify)
|
|
44
|
-
- [**Sarvam**](https://mastra.ai/reference/voice/sarvam)
|
|
45
|
-
- [**Murf**](https://mastra.ai/reference/voice/murf)
|
|
36
|
+
- [**OpenAI**](https://mastra.ai/reference/voice/openai): High-quality voices with natural intonation and expression
|
|
37
|
+
- [**Azure**](https://mastra.ai/reference/voice/azure): Microsoft's speech service with a wide range of voices and languages
|
|
38
|
+
- [**ElevenLabs**](https://mastra.ai/reference/voice/elevenlabs): Ultra-realistic voices with emotion and fine-grained control
|
|
39
|
+
- [**PlayAI**](https://mastra.ai/reference/voice/playai): Specialized in natural-sounding voices with various styles
|
|
40
|
+
- [**Google**](https://mastra.ai/reference/voice/google): Google's speech synthesis with multilingual support
|
|
41
|
+
- [**Cloudflare**](https://mastra.ai/reference/voice/cloudflare): Edge-optimized speech synthesis for low-latency applications
|
|
42
|
+
- [**Deepgram**](https://mastra.ai/reference/voice/deepgram): AI-powered speech technology with high accuracy
|
|
43
|
+
- [**Speechify**](https://mastra.ai/reference/voice/speechify): Text-to-speech optimized for readability and accessibility
|
|
44
|
+
- [**Sarvam**](https://mastra.ai/reference/voice/sarvam): Specialized in Indic languages and accents
|
|
45
|
+
- [**Murf**](https://mastra.ai/reference/voice/murf): Studio-quality voice overs with customizable parameters
|
|
46
46
|
|
|
47
47
|
Each provider is implemented as a separate package that you can install as needed:
|
|
48
48
|
|
|
@@ -18,10 +18,10 @@ A filesystem provider handles all file operations for a workspace:
|
|
|
18
18
|
|
|
19
19
|
Available providers:
|
|
20
20
|
|
|
21
|
-
- [`LocalFilesystem`](https://mastra.ai/reference/workspace/local-filesystem)
|
|
22
|
-
- [`S3Filesystem`](https://mastra.ai/reference/workspace/s3-filesystem)
|
|
23
|
-
- [`GCSFilesystem`](https://mastra.ai/reference/workspace/gcs-filesystem)
|
|
24
|
-
- [`AgentFSFilesystem`](https://mastra.ai/reference/workspace/agentfs-filesystem)
|
|
21
|
+
- [`LocalFilesystem`](https://mastra.ai/reference/workspace/local-filesystem): Stores files in a directory on disk
|
|
22
|
+
- [`S3Filesystem`](https://mastra.ai/reference/workspace/s3-filesystem): Stores files in Amazon S3 or S3-compatible storage (R2, MinIO)
|
|
23
|
+
- [`GCSFilesystem`](https://mastra.ai/reference/workspace/gcs-filesystem): Stores files in Google Cloud Storage
|
|
24
|
+
- [`AgentFSFilesystem`](https://mastra.ai/reference/workspace/agentfs-filesystem): Stores files in a Turso/SQLite database via AgentFS
|
|
25
25
|
|
|
26
26
|
> **Tip:** `LocalFilesystem` is the simplest way to get started as it requires no external services. For cloud storage, use `S3Filesystem` or `GCSFilesystem`. For database-backed storage without external services, use `AgentFSFilesystem`.
|
|
27
27
|
|
|
@@ -181,9 +181,9 @@ const workspace = new Workspace({
|
|
|
181
181
|
|
|
182
182
|
`VersionedSkillSource` accepts three parameters:
|
|
183
183
|
|
|
184
|
-
- **`versionTree`** (`SkillVersionTree`)
|
|
185
|
-
- **`blobStore`** (`BlobStore`)
|
|
186
|
-
- **`versionCreatedAt`** (`Date`)
|
|
184
|
+
- **`versionTree`** (`SkillVersionTree`): A manifest mapping relative file paths to blob entries (`{ entries: Record<string, { blobHash, size, mimeType?, encoding? }> }`).
|
|
185
|
+
- **`blobStore`** (`BlobStore`): A content-addressable blob store instance that holds the actual file contents referenced by hash.
|
|
186
|
+
- **`versionCreatedAt`** (`Date`): The timestamp when this skill version was published. Used as the modification time for all files in the version.
|
|
187
187
|
|
|
188
188
|
When `skillSource` is provided, it's used instead of the workspace filesystem for skill discovery.
|
|
189
189
|
|
|
@@ -134,7 +134,7 @@ const { text } = await generateText({
|
|
|
134
134
|
|
|
135
135
|
## Related
|
|
136
136
|
|
|
137
|
-
- [`withMastra()`](https://mastra.ai/reference/ai-sdk/with-mastra)
|
|
138
|
-
- [Processors](https://mastra.ai/docs/agents/processors)
|
|
139
|
-
- [Memory](https://mastra.ai/docs/memory/overview)
|
|
140
|
-
- [AI SDK UI](https://mastra.ai/guides/build-your-ui/ai-sdk-ui)
|
|
137
|
+
- [`withMastra()`](https://mastra.ai/reference/ai-sdk/with-mastra): API reference for `withMastra()`
|
|
138
|
+
- [Processors](https://mastra.ai/docs/agents/processors): Learn about input and output processors
|
|
139
|
+
- [Memory](https://mastra.ai/docs/memory/overview): Overview of Mastra's memory system
|
|
140
|
+
- [AI SDK UI](https://mastra.ai/guides/build-your-ui/ai-sdk-ui): Using AI SDK UI hooks with Mastra agents, workflows, and networks
|
|
@@ -159,6 +159,6 @@ type InlineLinkEntry =
|
|
|
159
159
|
|
|
160
160
|
## Related
|
|
161
161
|
|
|
162
|
-
- [Channels guide](https://mastra.ai/docs/agents/channels)
|
|
163
|
-
- [Agent class](https://mastra.ai/reference/agents/agent)
|
|
164
|
-
- [Chat SDK adapters](https://chat-sdk.dev/adapters)
|
|
162
|
+
- [Channels guide](https://mastra.ai/docs/agents/channels): Concepts, quickstart, and platform setup
|
|
163
|
+
- [Agent class](https://mastra.ai/reference/agents/agent): Constructor parameters and methods
|
|
164
|
+
- [Chat SDK adapters](https://chat-sdk.dev/adapters): Adapter configuration and platform setup
|
|
@@ -35,8 +35,8 @@ Void. The gateway is added to the internal registry.
|
|
|
35
35
|
|
|
36
36
|
## Related
|
|
37
37
|
|
|
38
|
-
- [Mastra.getGateway()](https://mastra.ai/reference/core/getGateway)
|
|
39
|
-
- [Mastra.getGatewayById()](https://mastra.ai/reference/core/getGatewayById)
|
|
40
|
-
- [Mastra.listGateways()](https://mastra.ai/reference/core/listGateways)
|
|
41
|
-
- [MastraModelGateway](https://mastra.ai/reference/core/mastra-model-gateway)
|
|
42
|
-
- [Custom Gateways Guide](https://mastra.ai/models/gateways/custom-gateways)
|
|
38
|
+
- [Mastra.getGateway()](https://mastra.ai/reference/core/getGateway): Get gateway by registration key
|
|
39
|
+
- [Mastra.getGatewayById()](https://mastra.ai/reference/core/getGatewayById): Get gateway by ID
|
|
40
|
+
- [Mastra.listGateways()](https://mastra.ai/reference/core/listGateways): List all gateways
|
|
41
|
+
- [MastraModelGateway](https://mastra.ai/reference/core/mastra-model-gateway): Gateway base class
|
|
42
|
+
- [Custom Gateways Guide](https://mastra.ai/models/gateways/custom-gateways): Creating custom gateways
|
|
@@ -31,8 +31,8 @@ Throws an error if no gateway is found with the specified key.
|
|
|
31
31
|
|
|
32
32
|
## Related
|
|
33
33
|
|
|
34
|
-
- [Mastra.getGatewayById()](https://mastra.ai/reference/core/getGatewayById)
|
|
35
|
-
- [Mastra.listGateways()](https://mastra.ai/reference/core/listGateways)
|
|
36
|
-
- [Mastra.addGateway()](https://mastra.ai/reference/core/addGateway)
|
|
37
|
-
- [MastraModelGateway](https://mastra.ai/reference/core/mastra-model-gateway)
|
|
38
|
-
- [Custom Gateways Guide](https://mastra.ai/models/gateways/custom-gateways)
|
|
34
|
+
- [Mastra.getGatewayById()](https://mastra.ai/reference/core/getGatewayById): Get gateway by ID
|
|
35
|
+
- [Mastra.listGateways()](https://mastra.ai/reference/core/listGateways): List all gateways
|
|
36
|
+
- [Mastra.addGateway()](https://mastra.ai/reference/core/addGateway): Add a gateway
|
|
37
|
+
- [MastraModelGateway](https://mastra.ai/reference/core/mastra-model-gateway): Gateway base class
|
|
38
|
+
- [Custom Gateways Guide](https://mastra.ai/models/gateways/custom-gateways): Creating custom gateways
|
|
@@ -34,8 +34,8 @@ console.log(gateway.name) // 'My Custom Gateway'
|
|
|
34
34
|
|
|
35
35
|
## Related
|
|
36
36
|
|
|
37
|
-
- [Mastra.getGateway()](https://mastra.ai/reference/core/getGateway)
|
|
38
|
-
- [Mastra.listGateways()](https://mastra.ai/reference/core/listGateways)
|
|
39
|
-
- [Mastra.addGateway()](https://mastra.ai/reference/core/addGateway)
|
|
40
|
-
- [MastraModelGateway](https://mastra.ai/reference/core/mastra-model-gateway)
|
|
41
|
-
- [Custom Gateways Guide](https://mastra.ai/models/gateways/custom-gateways)
|
|
37
|
+
- [Mastra.getGateway()](https://mastra.ai/reference/core/getGateway): Get gateway by registration key
|
|
38
|
+
- [Mastra.listGateways()](https://mastra.ai/reference/core/listGateways): List all gateways
|
|
39
|
+
- [Mastra.addGateway()](https://mastra.ai/reference/core/addGateway): Add a gateway
|
|
40
|
+
- [MastraModelGateway](https://mastra.ai/reference/core/mastra-model-gateway): Gateway base class
|
|
41
|
+
- [Custom Gateways Guide](https://mastra.ai/models/gateways/custom-gateways): Creating custom gateways
|
|
@@ -38,8 +38,8 @@ const serverById = mastra.getMCPServerById('my-mcp-server')
|
|
|
38
38
|
|
|
39
39
|
## Related methods
|
|
40
40
|
|
|
41
|
-
- [Mastra.getMCPServerById()](https://mastra.ai/reference/core/getMCPServerById)
|
|
42
|
-
- [Mastra.listMCPServers()](https://mastra.ai/reference/core/listMCPServers)
|
|
41
|
+
- [Mastra.getMCPServerById()](https://mastra.ai/reference/core/getMCPServerById): Retrieve an MCP server by its intrinsic `id` property
|
|
42
|
+
- [Mastra.listMCPServers()](https://mastra.ai/reference/core/listMCPServers): List all registered MCP servers
|
|
43
43
|
|
|
44
44
|
## See also
|
|
45
45
|
|
|
@@ -46,8 +46,8 @@ const serverByKey = mastra.getMCPServer('customKey')
|
|
|
46
46
|
|
|
47
47
|
## Related methods
|
|
48
48
|
|
|
49
|
-
- [Mastra.getMCPServer()](https://mastra.ai/reference/core/getMCPServer)
|
|
50
|
-
- [Mastra.listMCPServers()](https://mastra.ai/reference/core/listMCPServers)
|
|
49
|
+
- [Mastra.getMCPServer()](https://mastra.ai/reference/core/getMCPServer): Retrieve an MCP server by its registry key
|
|
50
|
+
- [Mastra.listMCPServers()](https://mastra.ai/reference/core/listMCPServers): List all registered MCP servers
|
|
51
51
|
|
|
52
52
|
## See also
|
|
53
53
|
|
|
@@ -49,6 +49,6 @@ try {
|
|
|
49
49
|
|
|
50
50
|
## Related
|
|
51
51
|
|
|
52
|
-
- [listScorers()](https://mastra.ai/reference/core/listScorers)
|
|
53
|
-
- [getScorerById()](https://mastra.ai/reference/core/getScorerById)
|
|
54
|
-
- [Custom Scorers](https://mastra.ai/docs/evals/custom-scorers)
|
|
52
|
+
- [listScorers()](https://mastra.ai/reference/core/listScorers): Get all registered scorers
|
|
53
|
+
- [getScorerById()](https://mastra.ai/reference/core/getScorerById): Get a scorer by its id property
|
|
54
|
+
- [Custom Scorers](https://mastra.ai/docs/evals/custom-scorers): Learn how to create custom scorers
|
|
@@ -49,6 +49,6 @@ try {
|
|
|
49
49
|
|
|
50
50
|
## Related
|
|
51
51
|
|
|
52
|
-
- [getScorer()](https://mastra.ai/reference/core/getScorer)
|
|
53
|
-
- [listScorers()](https://mastra.ai/reference/core/listScorers)
|
|
54
|
-
- [createScorer()](https://mastra.ai/reference/evals/create-scorer)
|
|
52
|
+
- [getScorer()](https://mastra.ai/reference/core/getScorer): Get a scorer by its registration key
|
|
53
|
+
- [listScorers()](https://mastra.ai/reference/core/listScorers): Get all registered scorers
|
|
54
|
+
- [createScorer()](https://mastra.ai/reference/evals/create-scorer): Learn how to create scorers with ids
|
|
@@ -33,8 +33,8 @@ None.
|
|
|
33
33
|
|
|
34
34
|
## Related
|
|
35
35
|
|
|
36
|
-
- [Mastra.getGateway()](https://mastra.ai/reference/core/getGateway)
|
|
37
|
-
- [Mastra.getGatewayById()](https://mastra.ai/reference/core/getGatewayById)
|
|
38
|
-
- [Mastra.addGateway()](https://mastra.ai/reference/core/addGateway)
|
|
39
|
-
- [MastraModelGateway](https://mastra.ai/reference/core/mastra-model-gateway)
|
|
40
|
-
- [Custom Gateways Guide](https://mastra.ai/models/gateways/custom-gateways)
|
|
36
|
+
- [Mastra.getGateway()](https://mastra.ai/reference/core/getGateway): Get gateway by registration key
|
|
37
|
+
- [Mastra.getGatewayById()](https://mastra.ai/reference/core/getGatewayById): Get gateway by ID
|
|
38
|
+
- [Mastra.addGateway()](https://mastra.ai/reference/core/addGateway): Add a gateway
|
|
39
|
+
- [MastraModelGateway](https://mastra.ai/reference/core/mastra-model-gateway): Gateway base class
|
|
40
|
+
- [Custom Gateways Guide](https://mastra.ai/models/gateways/custom-gateways): Creating custom gateways
|
|
@@ -46,8 +46,8 @@ This method doesn't accept any parameters.
|
|
|
46
46
|
|
|
47
47
|
## Related methods
|
|
48
48
|
|
|
49
|
-
- [Mastra.getMCPServer()](https://mastra.ai/reference/core/getMCPServer)
|
|
50
|
-
- [Mastra.getMCPServerById()](https://mastra.ai/reference/core/getMCPServerById)
|
|
49
|
+
- [Mastra.getMCPServer()](https://mastra.ai/reference/core/getMCPServer): Retrieve an MCP server by its registry key
|
|
50
|
+
- [Mastra.getMCPServerById()](https://mastra.ai/reference/core/getMCPServerById): Retrieve an MCP server by its intrinsic `id` property
|
|
51
51
|
|
|
52
52
|
## See also
|
|
53
53
|
|
|
@@ -24,6 +24,6 @@ This method takes no parameters.
|
|
|
24
24
|
|
|
25
25
|
## Related
|
|
26
26
|
|
|
27
|
-
- [getScorer()](https://mastra.ai/reference/core/getScorer)
|
|
28
|
-
- [getScorerById()](https://mastra.ai/reference/core/getScorerById)
|
|
29
|
-
- [Scorers Overview](https://mastra.ai/docs/evals/overview)
|
|
27
|
+
- [getScorer()](https://mastra.ai/reference/core/getScorer): Get a specific scorer by key
|
|
28
|
+
- [getScorerById()](https://mastra.ai/reference/core/getScorerById): Get a scorer by its id property
|
|
29
|
+
- [Scorers Overview](https://mastra.ai/docs/evals/overview): Learn about creating and using scorers
|
|
@@ -148,8 +148,8 @@ Examples:
|
|
|
148
148
|
|
|
149
149
|
## Related
|
|
150
150
|
|
|
151
|
-
- [Custom Gateways Guide](https://mastra.ai/models/gateways/custom-gateways)
|
|
152
|
-
- [Mastra.addGateway()](https://mastra.ai/reference/core/addGateway)
|
|
153
|
-
- [Mastra.getGateway()](https://mastra.ai/reference/core/getGateway)
|
|
154
|
-
- [Mastra.getGatewayById()](https://mastra.ai/reference/core/getGatewayById)
|
|
155
|
-
- [Mastra.listGateways()](https://mastra.ai/reference/core/listGateways)
|
|
151
|
+
- [Custom Gateways Guide](https://mastra.ai/models/gateways/custom-gateways): Complete guide to creating custom gateways
|
|
152
|
+
- [Mastra.addGateway()](https://mastra.ai/reference/core/addGateway): Add a gateway to Mastra
|
|
153
|
+
- [Mastra.getGateway()](https://mastra.ai/reference/core/getGateway): Get gateway by registration key
|
|
154
|
+
- [Mastra.getGatewayById()](https://mastra.ai/reference/core/getGatewayById): Get gateway by ID
|
|
155
|
+
- [Mastra.listGateways()](https://mastra.ai/reference/core/listGateways): List all gateways
|
|
@@ -191,6 +191,6 @@ Choose the right scorer for your needs:
|
|
|
191
191
|
|
|
192
192
|
## Related
|
|
193
193
|
|
|
194
|
-
- [Answer Relevancy Scorer](https://mastra.ai/reference/evals/answer-relevancy)
|
|
195
|
-
- [Faithfulness Scorer](https://mastra.ai/reference/evals/faithfulness)
|
|
196
|
-
- [Custom Scorers](https://mastra.ai/docs/evals/custom-scorers)
|
|
194
|
+
- [Answer Relevancy Scorer](https://mastra.ai/reference/evals/answer-relevancy): Evaluates if answers address the question
|
|
195
|
+
- [Faithfulness Scorer](https://mastra.ai/reference/evals/faithfulness): Measures answer groundedness in context
|
|
196
|
+
- [Custom Scorers](https://mastra.ai/docs/evals/custom-scorers): Creating your own evaluation metrics
|
|
@@ -73,10 +73,10 @@ const result = await scorer.run({
|
|
|
73
73
|
|
|
74
74
|
When you call `.run()`, the MastraScorer executes the defined steps in this order:
|
|
75
75
|
|
|
76
|
-
1. **preprocess** (optional)
|
|
77
|
-
2. **analyze** (optional)
|
|
78
|
-
3. **generateScore** (required)
|
|
79
|
-
4. **generateReason** (optional)
|
|
76
|
+
1. **preprocess** (optional): Extracts or transforms data
|
|
77
|
+
2. **analyze** (optional): Processes the input/output and preprocessed data
|
|
78
|
+
3. **generateScore** (required): Computes the numerical score
|
|
79
|
+
4. **generateReason** (optional): Provides explanation for the score
|
|
80
80
|
|
|
81
81
|
Each step receives the results from previous steps, allowing you to build complex evaluation pipelines.
|
|
82
82
|
|
|
@@ -246,9 +246,9 @@ const result = await runEvals({
|
|
|
246
246
|
|
|
247
247
|
## Related
|
|
248
248
|
|
|
249
|
-
- [createScorer()](https://mastra.ai/reference/evals/create-scorer)
|
|
250
|
-
- [MastraScorer](https://mastra.ai/reference/evals/mastra-scorer)
|
|
251
|
-
- [Trajectory Accuracy](https://mastra.ai/reference/evals/trajectory-accuracy)
|
|
252
|
-
- [Scorer Utilities](https://mastra.ai/reference/evals/scorer-utils)
|
|
253
|
-
- [Custom Scorers](https://mastra.ai/docs/evals/custom-scorers)
|
|
254
|
-
- [Scorers Overview](https://mastra.ai/docs/evals/overview)
|
|
249
|
+
- [createScorer()](https://mastra.ai/reference/evals/create-scorer): Create custom scorers for experiments
|
|
250
|
+
- [MastraScorer](https://mastra.ai/reference/evals/mastra-scorer): Learn about scorer structure and methods
|
|
251
|
+
- [Trajectory Accuracy](https://mastra.ai/reference/evals/trajectory-accuracy): Built-in trajectory evaluation scorers
|
|
252
|
+
- [Scorer Utilities](https://mastra.ai/reference/evals/scorer-utils): Helper functions for extracting trajectory data
|
|
253
|
+
- [Custom Scorers](https://mastra.ai/docs/evals/custom-scorers): Guide to building evaluation logic
|
|
254
|
+
- [Scorers Overview](https://mastra.ai/docs/evals/overview): Understanding scorer concepts
|
|
@@ -333,10 +333,10 @@ const trajectory = extractTrajectoryFromTrace(traceData.spans, rootSpanId)
|
|
|
333
333
|
|
|
334
334
|
**Parameters:**
|
|
335
335
|
|
|
336
|
-
- `spans` (`SpanRecord[]`)
|
|
337
|
-
- `rootSpanId` (`string`, optional)
|
|
336
|
+
- `spans` (`SpanRecord[]`): Array of span records from a trace query.
|
|
337
|
+
- `rootSpanId` (`string`, optional): Span ID to use as the starting point. When omitted, uses spans with no parent.
|
|
338
338
|
|
|
339
|
-
**Returns:** `Trajectory
|
|
339
|
+
**Returns:** `Trajectory`: Contains `steps: TrajectoryStep[]` with recursive `children` and `totalDurationMs`.
|
|
340
340
|
|
|
341
341
|
#### Span type mapping
|
|
342
342
|
|
|
@@ -622,6 +622,6 @@ const result = await runEvals({
|
|
|
622
622
|
|
|
623
623
|
## Related
|
|
624
624
|
|
|
625
|
-
- [runEvals reference](https://mastra.ai/reference/evals/run-evals)
|
|
626
|
-
- [MastraScorer reference](https://mastra.ai/reference/evals/mastra-scorer)
|
|
627
|
-
- [Scorer utils](https://mastra.ai/reference/evals/scorer-utils)
|
|
625
|
+
- [runEvals reference](https://mastra.ai/reference/evals/run-evals): Pipeline that extracts trajectories and passes them to scorers
|
|
626
|
+
- [MastraScorer reference](https://mastra.ai/reference/evals/mastra-scorer): Base scorer interface
|
|
627
|
+
- [Scorer utils](https://mastra.ai/reference/evals/scorer-utils): Utility functions including `extractTrajectory` and `compareTrajectories`
|
|
@@ -126,6 +126,6 @@ This format ensures compatibility with all OTEL-compatible backends and collecto
|
|
|
126
126
|
|
|
127
127
|
## Related
|
|
128
128
|
|
|
129
|
-
- [OtelBridge Guide](https://mastra.ai/docs/observability/tracing/bridges/otel)
|
|
130
|
-
- [Tracing Overview](https://mastra.ai/docs/observability/tracing/overview)
|
|
131
|
-
- [OtelExporter Reference](https://mastra.ai/reference/observability/tracing/exporters/otel)
|
|
129
|
+
- [OtelBridge Guide](https://mastra.ai/docs/observability/tracing/bridges/otel): Setup guide with examples
|
|
130
|
+
- [Tracing Overview](https://mastra.ai/docs/observability/tracing/overview): General tracing concepts
|
|
131
|
+
- [OtelExporter Reference](https://mastra.ai/reference/observability/tracing/exporters/otel): OTEL exporter for sending traces
|
|
@@ -189,21 +189,21 @@ Shuts down all observability instances and clears the registry.
|
|
|
189
189
|
|
|
190
190
|
### Documentation
|
|
191
191
|
|
|
192
|
-
- [Tracing Overview](https://mastra.ai/docs/observability/tracing/overview)
|
|
193
|
-
- [Sampling Strategies](https://mastra.ai/docs/observability/tracing/overview)
|
|
194
|
-
- [Multi-Config Setup](https://mastra.ai/docs/observability/tracing/overview)
|
|
192
|
+
- [Tracing Overview](https://mastra.ai/docs/observability/tracing/overview): Concepts and usage guide
|
|
193
|
+
- [Sampling Strategies](https://mastra.ai/docs/observability/tracing/overview): Sampling configuration details
|
|
194
|
+
- [Multi-Config Setup](https://mastra.ai/docs/observability/tracing/overview): Using multiple configurations
|
|
195
195
|
|
|
196
196
|
### Reference
|
|
197
197
|
|
|
198
|
-
- [Tracing Classes](https://mastra.ai/reference/observability/tracing/instances)
|
|
199
|
-
- [Interfaces](https://mastra.ai/reference/observability/tracing/interfaces)
|
|
200
|
-
- [Spans Reference](https://mastra.ai/reference/observability/tracing/spans)
|
|
198
|
+
- [Tracing Classes](https://mastra.ai/reference/observability/tracing/instances): Core tracing classes
|
|
199
|
+
- [Interfaces](https://mastra.ai/reference/observability/tracing/interfaces): Type definitions
|
|
200
|
+
- [Spans Reference](https://mastra.ai/reference/observability/tracing/spans): Span lifecycle
|
|
201
201
|
|
|
202
202
|
### Exporters
|
|
203
203
|
|
|
204
|
-
- [DefaultExporter](https://mastra.ai/reference/observability/tracing/exporters/default-exporter)
|
|
205
|
-
- [CloudExporter](https://mastra.ai/reference/observability/tracing/exporters/cloud-exporter)
|
|
206
|
-
- [Braintrust](https://mastra.ai/reference/observability/tracing/exporters/braintrust)
|
|
207
|
-
- [Langfuse](https://mastra.ai/reference/observability/tracing/exporters/langfuse)
|
|
208
|
-
- [LangSmith](https://mastra.ai/reference/observability/tracing/exporters/langsmith)
|
|
209
|
-
- [Span filtering](https://mastra.ai/reference/observability/tracing/span-filtering)
|
|
204
|
+
- [DefaultExporter](https://mastra.ai/reference/observability/tracing/exporters/default-exporter): Storage configuration
|
|
205
|
+
- [CloudExporter](https://mastra.ai/reference/observability/tracing/exporters/cloud-exporter): Cloud setup
|
|
206
|
+
- [Braintrust](https://mastra.ai/reference/observability/tracing/exporters/braintrust): Braintrust integration
|
|
207
|
+
- [Langfuse](https://mastra.ai/reference/observability/tracing/exporters/langfuse): Langfuse integration
|
|
208
|
+
- [LangSmith](https://mastra.ai/reference/observability/tracing/exporters/langsmith): LangSmith integration
|
|
209
|
+
- [Span filtering](https://mastra.ai/reference/observability/tracing/span-filtering): Selectively exclude spans
|
|
@@ -119,17 +119,17 @@ const exporterWithLogger = new ConsoleExporter({
|
|
|
119
119
|
|
|
120
120
|
### Documentation
|
|
121
121
|
|
|
122
|
-
- [Tracing Overview](https://mastra.ai/docs/observability/tracing/overview)
|
|
123
|
-
- [Exporters](https://mastra.ai/docs/observability/tracing/overview)
|
|
122
|
+
- [Tracing Overview](https://mastra.ai/docs/observability/tracing/overview): Complete guide
|
|
123
|
+
- [Exporters](https://mastra.ai/docs/observability/tracing/overview): Exporter concepts
|
|
124
124
|
|
|
125
125
|
### Other Exporters
|
|
126
126
|
|
|
127
|
-
- [DefaultExporter](https://mastra.ai/reference/observability/tracing/exporters/default-exporter)
|
|
128
|
-
- [CloudExporter](https://mastra.ai/reference/observability/tracing/exporters/cloud-exporter)
|
|
129
|
-
- [Langfuse](https://mastra.ai/reference/observability/tracing/exporters/langfuse)
|
|
130
|
-
- [Braintrust](https://mastra.ai/reference/observability/tracing/exporters/braintrust)
|
|
127
|
+
- [DefaultExporter](https://mastra.ai/reference/observability/tracing/exporters/default-exporter): Storage persistence
|
|
128
|
+
- [CloudExporter](https://mastra.ai/reference/observability/tracing/exporters/cloud-exporter): Mastra platform
|
|
129
|
+
- [Langfuse](https://mastra.ai/reference/observability/tracing/exporters/langfuse): Langfuse integration
|
|
130
|
+
- [Braintrust](https://mastra.ai/reference/observability/tracing/exporters/braintrust): Braintrust integration
|
|
131
131
|
|
|
132
132
|
### Reference
|
|
133
133
|
|
|
134
|
-
- [Configuration](https://mastra.ai/reference/observability/tracing/configuration)
|
|
135
|
-
- [Interfaces](https://mastra.ai/reference/observability/tracing/interfaces)
|
|
134
|
+
- [Configuration](https://mastra.ai/reference/observability/tracing/configuration): Configuration options
|
|
135
|
+
- [Interfaces](https://mastra.ai/reference/observability/tracing/interfaces): Type definitions
|
|
@@ -95,13 +95,13 @@ class CustomObservabilityInstance extends BaseObservabilityInstance {
|
|
|
95
95
|
|
|
96
96
|
### Documentation
|
|
97
97
|
|
|
98
|
-
- [Tracing Overview](https://mastra.ai/docs/observability/tracing/overview)
|
|
99
|
-
- [Configuration Reference](https://mastra.ai/reference/observability/tracing/configuration)
|
|
100
|
-
- [Interfaces Reference](https://mastra.ai/reference/observability/tracing/interfaces)
|
|
101
|
-
- [Spans Reference](https://mastra.ai/reference/observability/tracing/spans)
|
|
98
|
+
- [Tracing Overview](https://mastra.ai/docs/observability/tracing/overview): Concepts and usage guide
|
|
99
|
+
- [Configuration Reference](https://mastra.ai/reference/observability/tracing/configuration): Configuration options
|
|
100
|
+
- [Interfaces Reference](https://mastra.ai/reference/observability/tracing/interfaces): Type definitions
|
|
101
|
+
- [Spans Reference](https://mastra.ai/reference/observability/tracing/spans): Span lifecycle and methods
|
|
102
102
|
|
|
103
103
|
### Exporters
|
|
104
104
|
|
|
105
|
-
- [DefaultExporter](https://mastra.ai/reference/observability/tracing/exporters/default-exporter)
|
|
106
|
-
- [CloudExporter](https://mastra.ai/reference/observability/tracing/exporters/cloud-exporter)
|
|
107
|
-
- [ConsoleExporter](https://mastra.ai/reference/observability/tracing/exporters/console-exporter)
|
|
105
|
+
- [DefaultExporter](https://mastra.ai/reference/observability/tracing/exporters/default-exporter): Storage persistence
|
|
106
|
+
- [CloudExporter](https://mastra.ai/reference/observability/tracing/exporters/cloud-exporter): Mastra platform integration
|
|
107
|
+
- [ConsoleExporter](https://mastra.ai/reference/observability/tracing/exporters/console-exporter): Debug output
|
|
@@ -735,12 +735,12 @@ enum InternalSpans {
|
|
|
735
735
|
|
|
736
736
|
### Documentation
|
|
737
737
|
|
|
738
|
-
- [Tracing Overview](https://mastra.ai/docs/observability/tracing/overview)
|
|
739
|
-
- [Creating Child Spans](https://mastra.ai/docs/observability/tracing/overview)
|
|
740
|
-
- [Adding Custom Metadata](https://mastra.ai/docs/observability/tracing/overview)
|
|
738
|
+
- [Tracing Overview](https://mastra.ai/docs/observability/tracing/overview): Complete guide to Tracing
|
|
739
|
+
- [Creating Child Spans](https://mastra.ai/docs/observability/tracing/overview): Working with span hierarchies
|
|
740
|
+
- [Adding Custom Metadata](https://mastra.ai/docs/observability/tracing/overview): Enriching traces
|
|
741
741
|
|
|
742
742
|
### Reference
|
|
743
743
|
|
|
744
|
-
- [Configuration](https://mastra.ai/reference/observability/tracing/configuration)
|
|
745
|
-
- [Tracing Classes](https://mastra.ai/reference/observability/tracing/instances)
|
|
746
|
-
- [Spans Reference](https://mastra.ai/reference/observability/tracing/spans)
|
|
744
|
+
- [Configuration](https://mastra.ai/reference/observability/tracing/configuration): Registry and configuration
|
|
745
|
+
- [Tracing Classes](https://mastra.ai/reference/observability/tracing/instances): Core implementations
|
|
746
|
+
- [Spans Reference](https://mastra.ai/reference/observability/tracing/spans): Span lifecycle methods
|