@mastra/core 1.31.0-alpha.3 → 1.31.0-alpha.5
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 +46 -0
- package/dist/agent/durable/index.cjs +22 -22
- package/dist/agent/durable/index.js +4 -4
- package/dist/agent/index.cjs +9 -9
- package/dist/agent/index.js +1 -1
- package/dist/browser/index.cjs +5 -5
- package/dist/browser/index.js +2 -2
- package/dist/channels/index.cjs +4 -4
- package/dist/channels/index.js +1 -1
- package/dist/{chunk-LEXSJDD5.cjs → chunk-3CBQ4FAZ.cjs} +215 -18
- package/dist/chunk-3CBQ4FAZ.cjs.map +1 -0
- package/dist/{chunk-EMLA7DXA.cjs → chunk-4RFGOX6E.cjs} +9 -9
- package/dist/{chunk-EMLA7DXA.cjs.map → chunk-4RFGOX6E.cjs.map} +1 -1
- package/dist/{chunk-P5XCYDW7.js → chunk-52IAV52S.js} +3 -3
- package/dist/{chunk-P5XCYDW7.js.map → chunk-52IAV52S.js.map} +1 -1
- package/dist/{chunk-OQ6ORZLY.cjs → chunk-5ANWVE3P.cjs} +216 -35
- package/dist/chunk-5ANWVE3P.cjs.map +1 -0
- package/dist/{chunk-HBCHXSQT.js → chunk-5AZE6Y7E.js} +6 -6
- package/dist/{chunk-HBCHXSQT.js.map → chunk-5AZE6Y7E.js.map} +1 -1
- package/dist/{chunk-JXWLABNY.cjs → chunk-ALZAXC3J.cjs} +19 -19
- package/dist/{chunk-JXWLABNY.cjs.map → chunk-ALZAXC3J.cjs.map} +1 -1
- package/dist/{chunk-IKXZNMTB.cjs → chunk-ATJ2RA5L.cjs} +5 -5
- package/dist/{chunk-IKXZNMTB.cjs.map → chunk-ATJ2RA5L.cjs.map} +1 -1
- package/dist/{chunk-BEDXCJ3D.js → chunk-D6WNIFWU.js} +4 -4
- package/dist/{chunk-BEDXCJ3D.js.map → chunk-D6WNIFWU.js.map} +1 -1
- package/dist/{chunk-C6KGFSLD.js → chunk-D7ORPD2O.js} +3 -3
- package/dist/{chunk-C6KGFSLD.js.map → chunk-D7ORPD2O.js.map} +1 -1
- package/dist/{chunk-WYDQEW3F.cjs → chunk-DZBT3XFM.cjs} +7 -7
- package/dist/{chunk-WYDQEW3F.cjs.map → chunk-DZBT3XFM.cjs.map} +1 -1
- package/dist/{chunk-3MJ2YZKW.js → chunk-EZANPKCM.js} +3 -3
- package/dist/{chunk-3MJ2YZKW.js.map → chunk-EZANPKCM.js.map} +1 -1
- package/dist/{chunk-5AFU6MDJ.js → chunk-F4PWGVHW.js} +212 -32
- package/dist/chunk-F4PWGVHW.js.map +1 -0
- package/dist/{chunk-N3MFQ5IC.cjs → chunk-GYK5WRWE.cjs} +3 -3
- package/dist/{chunk-N3MFQ5IC.cjs.map → chunk-GYK5WRWE.cjs.map} +1 -1
- package/dist/{chunk-FBSDOK7N.cjs → chunk-HDZV5R52.cjs} +224 -224
- package/dist/{chunk-FBSDOK7N.cjs.map → chunk-HDZV5R52.cjs.map} +1 -1
- package/dist/{chunk-ORGS37CO.js → chunk-IB3UPSY2.js} +9 -9
- package/dist/{chunk-ORGS37CO.js.map → chunk-IB3UPSY2.js.map} +1 -1
- package/dist/{chunk-ZTVCTOC4.js → chunk-II2JGWWS.js} +3 -3
- package/dist/{chunk-ZTVCTOC4.js.map → chunk-II2JGWWS.js.map} +1 -1
- package/dist/{chunk-QYT6OF4I.cjs → chunk-O4NY7VXW.cjs} +17 -17
- package/dist/{chunk-QYT6OF4I.cjs.map → chunk-O4NY7VXW.cjs.map} +1 -1
- package/dist/{chunk-BICHLSKY.cjs → chunk-PLCMSZZR.cjs} +20 -20
- package/dist/{chunk-BICHLSKY.cjs.map → chunk-PLCMSZZR.cjs.map} +1 -1
- package/dist/{chunk-U7SCBEKL.js → chunk-PW5TFXZI.js} +3 -3
- package/dist/{chunk-U7SCBEKL.js.map → chunk-PW5TFXZI.js.map} +1 -1
- package/dist/{chunk-6YTX2D43.cjs → chunk-QB6SFTJF.cjs} +57 -57
- package/dist/{chunk-6YTX2D43.cjs.map → chunk-QB6SFTJF.cjs.map} +1 -1
- package/dist/{chunk-7CDGKPLZ.cjs → chunk-U7C3WU7B.cjs} +389 -389
- package/dist/{chunk-7CDGKPLZ.cjs.map → chunk-U7C3WU7B.cjs.map} +1 -1
- package/dist/{chunk-ENFUF5ZE.js → chunk-URCXU22J.js} +8 -8
- package/dist/{chunk-ENFUF5ZE.js.map → chunk-URCXU22J.js.map} +1 -1
- package/dist/{chunk-SE2NIAOC.js → chunk-X735G7KE.js} +4 -4
- package/dist/{chunk-SE2NIAOC.js.map → chunk-X735G7KE.js.map} +1 -1
- package/dist/{chunk-6BMV3INL.js → chunk-ZKHNSFUH.js} +213 -16
- package/dist/chunk-ZKHNSFUH.js.map +1 -0
- package/dist/datasets/experiment/index.d.ts.map +1 -1
- package/dist/datasets/experiment/scorer.d.ts +25 -0
- package/dist/datasets/experiment/scorer.d.ts.map +1 -1
- package/dist/datasets/experiment/types.d.ts +18 -2
- package/dist/datasets/experiment/types.d.ts.map +1 -1
- package/dist/datasets/index.cjs +11 -11
- package/dist/datasets/index.js +1 -1
- package/dist/docs/SKILL.md +1 -1
- package/dist/docs/assets/SOURCE_MAP.json +140 -140
- package/dist/docs/references/docs-agents-adding-voice.md +14 -13
- package/dist/docs/references/docs-voice-overview.md +66 -0
- package/dist/docs/references/docs-voice-speech-to-speech.md +45 -1
- package/dist/docs/references/docs-workspace-search.md +39 -0
- package/dist/docs/references/reference-datasets-startExperiment.md +28 -2
- package/dist/docs/references/reference-workspace-workspace-class.md +1 -1
- package/dist/docs/references/reference.md +2 -0
- package/dist/evals/index.cjs +6 -6
- 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 +11 -11
- 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/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-OCULSBP5.js +3 -0
- package/dist/{mastra-ZMGSDAUN.js.map → mastra-OCULSBP5.js.map} +1 -1
- package/dist/mastra-VMPA5UVF.cjs +12 -0
- package/dist/{mastra-P7T3UKV5.cjs.map → mastra-VMPA5UVF.cjs.map} +1 -1
- package/dist/memory/index.cjs +19 -19
- package/dist/memory/index.js +1 -1
- package/dist/models-dev-CCJECLMT.cjs +12 -0
- package/dist/{models-dev-GJQCRHM3.cjs.map → models-dev-CCJECLMT.cjs.map} +1 -1
- package/dist/models-dev-F6OUM7S7.js +3 -0
- package/dist/{models-dev-DL6NWDNP.js.map → models-dev-F6OUM7S7.js.map} +1 -1
- package/dist/netlify-2YTGXPQW.js +3 -0
- package/dist/{netlify-3CKP3DSR.js.map → netlify-2YTGXPQW.js.map} +1 -1
- package/dist/netlify-4NR3G6EJ.cjs +12 -0
- package/dist/{netlify-O34AZQ5R.cjs.map → netlify-4NR3G6EJ.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 +49 -49
- package/dist/processors/index.js +1 -1
- package/dist/provider-registry-HZHKE2KN.cjs +44 -0
- package/dist/{provider-registry-DI3SQCLD.cjs.map → provider-registry-HZHKE2KN.cjs.map} +1 -1
- package/dist/provider-registry-QREDL7WJ.js +3 -0
- package/dist/{provider-registry-ZTTSZTTB.js.map → provider-registry-QREDL7WJ.js.map} +1 -1
- package/dist/relevance/index.cjs +3 -3
- package/dist/relevance/index.js +1 -1
- package/dist/runner-FOG455RH.js +3 -0
- package/dist/{runner-BIOR2SMR.js.map → runner-FOG455RH.js.map} +1 -1
- package/dist/runner-PDJYD3PQ.cjs +16 -0
- package/dist/{runner-J24LBLPO.cjs.map → runner-PDJYD3PQ.cjs.map} +1 -1
- package/dist/stream/index.cjs +11 -11
- package/dist/stream/index.js +1 -1
- package/dist/tool-loop-agent/index.cjs +4 -4
- package/dist/tool-loop-agent/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/dist/workspace/index.cjs +68 -68
- package/dist/workspace/index.js +1 -1
- package/dist/workspace/search/search-engine.d.ts +67 -4
- package/dist/workspace/search/search-engine.d.ts.map +1 -1
- package/dist/workspace/workspace.d.ts +14 -0
- package/dist/workspace/workspace.d.ts.map +1 -1
- package/package.json +5 -5
- package/dist/chunk-5AFU6MDJ.js.map +0 -1
- package/dist/chunk-6BMV3INL.js.map +0 -1
- package/dist/chunk-LEXSJDD5.cjs.map +0 -1
- package/dist/chunk-OQ6ORZLY.cjs.map +0 -1
- package/dist/mastra-P7T3UKV5.cjs +0 -12
- package/dist/mastra-ZMGSDAUN.js +0 -3
- package/dist/models-dev-DL6NWDNP.js +0 -3
- package/dist/models-dev-GJQCRHM3.cjs +0 -12
- package/dist/netlify-3CKP3DSR.js +0 -3
- package/dist/netlify-O34AZQ5R.cjs +0 -12
- package/dist/provider-registry-DI3SQCLD.cjs +0 -44
- package/dist/provider-registry-ZTTSZTTB.js +0 -3
- package/dist/runner-BIOR2SMR.js +0 -3
- package/dist/runner-J24LBLPO.cjs +0 -16
|
@@ -327,19 +327,20 @@ For the complete list of supported AI SDK providers and their capabilities:
|
|
|
327
327
|
|
|
328
328
|
Mastra supports multiple voice providers for text-to-speech (TTS) and speech-to-text (STT) capabilities:
|
|
329
329
|
|
|
330
|
-
| Provider | Package | Features
|
|
331
|
-
| --------------- | ------------------------------- |
|
|
332
|
-
| OpenAI | `@mastra/voice-openai` | TTS, STT
|
|
333
|
-
| OpenAI Realtime | `@mastra/voice-openai-realtime` | Realtime speech-to-speech
|
|
334
|
-
|
|
|
335
|
-
|
|
|
336
|
-
|
|
|
337
|
-
|
|
|
338
|
-
|
|
|
339
|
-
|
|
|
340
|
-
|
|
|
341
|
-
|
|
|
342
|
-
|
|
|
330
|
+
| Provider | Package | Features | Reference |
|
|
331
|
+
| --------------- | ------------------------------- | ----------------------------------------- | ------------------------------------------------------------------ |
|
|
332
|
+
| OpenAI | `@mastra/voice-openai` | TTS, STT | [Documentation](https://mastra.ai/reference/voice/openai) |
|
|
333
|
+
| OpenAI Realtime | `@mastra/voice-openai-realtime` | Realtime speech-to-speech | [Documentation](https://mastra.ai/reference/voice/openai-realtime) |
|
|
334
|
+
| AWS Nova Sonic | `@mastra/voice-aws-nova-sonic` | Realtime speech-to-speech via AWS Bedrock | [Documentation](https://mastra.ai/reference/voice/aws-nova-sonic) |
|
|
335
|
+
| ElevenLabs | `@mastra/voice-elevenlabs` | High-quality TTS | [Documentation](https://mastra.ai/reference/voice/elevenlabs) |
|
|
336
|
+
| PlayAI | `@mastra/voice-playai` | TTS | [Documentation](https://mastra.ai/reference/voice/playai) |
|
|
337
|
+
| Google | `@mastra/voice-google` | TTS, STT | [Documentation](https://mastra.ai/reference/voice/google) |
|
|
338
|
+
| Deepgram | `@mastra/voice-deepgram` | STT | [Documentation](https://mastra.ai/reference/voice/deepgram) |
|
|
339
|
+
| Murf | `@mastra/voice-murf` | TTS | [Documentation](https://mastra.ai/reference/voice/murf) |
|
|
340
|
+
| Speechify | `@mastra/voice-speechify` | TTS | [Documentation](https://mastra.ai/reference/voice/speechify) |
|
|
341
|
+
| Sarvam | `@mastra/voice-sarvam` | TTS, STT | [Documentation](https://mastra.ai/reference/voice/sarvam) |
|
|
342
|
+
| Azure | `@mastra/voice-azure` | TTS, STT | [Documentation](https://mastra.ai/reference/voice/mastra-voice) |
|
|
343
|
+
| Cloudflare | `@mastra/voice-cloudflare` | TTS | [Documentation](https://mastra.ai/reference/voice/mastra-voice) |
|
|
343
344
|
|
|
344
345
|
## Next steps
|
|
345
346
|
|
|
@@ -588,6 +588,49 @@ await voiceAgent.voice.send(micStream)
|
|
|
588
588
|
|
|
589
589
|
Visit the [Google Gemini Live Reference](https://mastra.ai/reference/voice/google-gemini-live) for more information on the Google Gemini Live voice provider.
|
|
590
590
|
|
|
591
|
+
**AWS Nova Sonic**:
|
|
592
|
+
|
|
593
|
+
```typescript
|
|
594
|
+
import { Agent } from '@mastra/core/agent'
|
|
595
|
+
import { playAudio, getMicrophoneStream } from '@mastra/node-audio'
|
|
596
|
+
import { NovaSonicVoice } from '@mastra/voice-aws-nova-sonic'
|
|
597
|
+
|
|
598
|
+
const voiceAgent = new Agent({
|
|
599
|
+
id: 'voice-agent',
|
|
600
|
+
name: 'Voice Agent',
|
|
601
|
+
instructions: 'You are a voice assistant that can help users with their tasks.',
|
|
602
|
+
model: 'openai/gpt-5.4',
|
|
603
|
+
voice: new NovaSonicVoice({
|
|
604
|
+
region: 'us-east-1',
|
|
605
|
+
speaker: 'matthew',
|
|
606
|
+
// Static credentials are optional. The default AWS credential
|
|
607
|
+
// provider chain is used when none are passed.
|
|
608
|
+
}),
|
|
609
|
+
})
|
|
610
|
+
|
|
611
|
+
// Connect before using speak/send
|
|
612
|
+
await voiceAgent.voice.connect()
|
|
613
|
+
|
|
614
|
+
// Listen for assistant audio (Int16Array PCM)
|
|
615
|
+
voiceAgent.voice.on('speaking', ({ audioData }) => {
|
|
616
|
+
if (audioData) playAudio(audioData)
|
|
617
|
+
})
|
|
618
|
+
|
|
619
|
+
// Listen for transcribed text
|
|
620
|
+
voiceAgent.voice.on('writing', ({ text, role }) => {
|
|
621
|
+
console.log(`${role}: ${text}`)
|
|
622
|
+
})
|
|
623
|
+
|
|
624
|
+
// Initiate the conversation
|
|
625
|
+
await voiceAgent.voice.speak('How can I help you today?')
|
|
626
|
+
|
|
627
|
+
// Send continuous audio from the microphone
|
|
628
|
+
const micStream = getMicrophoneStream()
|
|
629
|
+
await voiceAgent.voice.send(micStream)
|
|
630
|
+
```
|
|
631
|
+
|
|
632
|
+
Visit the [AWS Nova Sonic Reference](https://mastra.ai/reference/voice/aws-nova-sonic) for more information on the AWS Nova Sonic voice provider.
|
|
633
|
+
|
|
591
634
|
## Voice configuration
|
|
592
635
|
|
|
593
636
|
Each voice provider can be configured with different models and options. Below are the detailed configuration options for all supported providers:
|
|
@@ -828,6 +871,28 @@ const voice = new GeminiLiveVoice({
|
|
|
828
871
|
|
|
829
872
|
Visit the [Google Gemini Live Reference](https://mastra.ai/reference/voice/google-gemini-live) for more information on the Google Gemini Live voice provider.
|
|
830
873
|
|
|
874
|
+
**AWS Nova Sonic**:
|
|
875
|
+
|
|
876
|
+
```typescript
|
|
877
|
+
// AWS Nova Sonic Voice Configuration
|
|
878
|
+
const voice = new NovaSonicVoice({
|
|
879
|
+
region: 'us-east-1',
|
|
880
|
+
speaker: 'matthew',
|
|
881
|
+
sessionConfig: {
|
|
882
|
+
inferenceConfiguration: {
|
|
883
|
+
temperature: 0.7,
|
|
884
|
+
maxTokens: 1024,
|
|
885
|
+
},
|
|
886
|
+
turnDetectionConfiguration: {
|
|
887
|
+
endpointingSensitivity: 'MEDIUM',
|
|
888
|
+
},
|
|
889
|
+
},
|
|
890
|
+
// AWS Nova Sonic is a realtime bidirectional API without separate speech and listening models
|
|
891
|
+
})
|
|
892
|
+
```
|
|
893
|
+
|
|
894
|
+
Visit the [AWS Nova Sonic Reference](https://mastra.ai/reference/voice/aws-nova-sonic) for more information on the AWS Nova Sonic voice provider.
|
|
895
|
+
|
|
831
896
|
**AI SDK**:
|
|
832
897
|
|
|
833
898
|
```typescript
|
|
@@ -957,6 +1022,7 @@ For more information on the CompositeVoice, refer to the [CompositeVoice Referen
|
|
|
957
1022
|
- [Azure Voice](https://mastra.ai/reference/voice/azure)
|
|
958
1023
|
- [Google Voice](https://mastra.ai/reference/voice/google)
|
|
959
1024
|
- [Google Gemini Live Voice](https://mastra.ai/reference/voice/google-gemini-live)
|
|
1025
|
+
- [AWS Nova Sonic Voice](https://mastra.ai/reference/voice/aws-nova-sonic)
|
|
960
1026
|
- [Deepgram Voice](https://mastra.ai/reference/voice/deepgram)
|
|
961
1027
|
- [PlayAI Voice](https://mastra.ai/reference/voice/playai)
|
|
962
1028
|
- [Voice Examples](https://github.com/mastra-ai/voice-examples)
|
|
@@ -99,4 +99,48 @@ await agent.voice.send(micStream)
|
|
|
99
99
|
Note:
|
|
100
100
|
|
|
101
101
|
- Live API requires `GOOGLE_API_KEY`. Vertex AI requires project/location and service account credentials.
|
|
102
|
-
- Events: `speaker` (audio stream), `writing` (text), `turnComplete`, `usage`, and `error`.
|
|
102
|
+
- Events: `speaker` (audio stream), `writing` (text), `turnComplete`, `usage`, and `error`.
|
|
103
|
+
|
|
104
|
+
## AWS Nova Sonic (Realtime)
|
|
105
|
+
|
|
106
|
+
```typescript
|
|
107
|
+
import { Agent } from '@mastra/core/agent'
|
|
108
|
+
import { NovaSonicVoice } from '@mastra/voice-aws-nova-sonic'
|
|
109
|
+
import { playAudio, getMicrophoneStream } from '@mastra/node-audio'
|
|
110
|
+
|
|
111
|
+
const agent = new Agent({
|
|
112
|
+
id: 'agent',
|
|
113
|
+
name: 'Nova Sonic Agent',
|
|
114
|
+
instructions: 'You are a helpful assistant with real-time voice capabilities.',
|
|
115
|
+
// Model used for text generation; voice provider handles realtime audio
|
|
116
|
+
model: 'openai/gpt-5.4',
|
|
117
|
+
voice: new NovaSonicVoice({
|
|
118
|
+
region: 'us-east-1',
|
|
119
|
+
speaker: 'matthew',
|
|
120
|
+
// Static credentials are optional. The default AWS credential provider
|
|
121
|
+
// chain is used when none are passed.
|
|
122
|
+
}),
|
|
123
|
+
})
|
|
124
|
+
|
|
125
|
+
await agent.voice.connect()
|
|
126
|
+
|
|
127
|
+
// Assistant audio is emitted as 16-bit PCM on the `speaking` event
|
|
128
|
+
agent.voice.on('speaking', ({ audioData }) => {
|
|
129
|
+
if (audioData) playAudio(audioData)
|
|
130
|
+
})
|
|
131
|
+
|
|
132
|
+
agent.voice.on('writing', ({ role, text }) => {
|
|
133
|
+
console.log(`${role}: ${text}`)
|
|
134
|
+
})
|
|
135
|
+
|
|
136
|
+
await agent.voice.speak('How can I help you today?')
|
|
137
|
+
|
|
138
|
+
const micStream = getMicrophoneStream()
|
|
139
|
+
await agent.voice.send(micStream)
|
|
140
|
+
```
|
|
141
|
+
|
|
142
|
+
Note:
|
|
143
|
+
|
|
144
|
+
- Available regions: `us-east-1`, `us-west-2`, and `ap-northeast-1`.
|
|
145
|
+
- Authenticates through the standard AWS credential provider chain. Pass `credentials` to override.
|
|
146
|
+
- Events: `speaking` (Int16Array audio), `writing` (text with `generationStage`), `toolCall`, `interrupt`, `turnComplete`, `usage`, `session`, and `error`.
|
|
@@ -83,6 +83,45 @@ const workspace = new Workspace({
|
|
|
83
83
|
})
|
|
84
84
|
```
|
|
85
85
|
|
|
86
|
+
### Batch embedding
|
|
87
|
+
|
|
88
|
+
The embedder above takes one text at a time. Indexing a workspace with hundreds of files calls the provider hundreds of times, which is slow and expensive.
|
|
89
|
+
|
|
90
|
+
When the provider supports batching (for example, OpenAI's `embedMany`), pass an embedder that takes an array of texts and accepts many embeddings back in one call. To opt in, set a `batch: true` property on the function. Mastra checks for that property at runtime and switches to the batched path.
|
|
91
|
+
|
|
92
|
+
The following example replaces the single-text embedder with a batched one. The embedder function takes an array, returns an array of embeddings in the same order, and carries two extra properties:
|
|
93
|
+
|
|
94
|
+
- `batch: true`: marks the function as batch-capable. Without this property, Mastra calls it one text at a time.
|
|
95
|
+
- `maxBatchSize`: the largest array the provider accepts in one call. Mastra splits larger requests into chunks of this size and sends them in parallel. Set this to your provider's documented limit (for example, 2048 for OpenAI, 96 for Cohere, 128 for Voyage). Omit it to send every pending text in one request.
|
|
96
|
+
|
|
97
|
+
```typescript
|
|
98
|
+
import { Workspace, LocalFilesystem } from '@mastra/core/workspace'
|
|
99
|
+
import { PineconeVector } from '@mastra/pinecone'
|
|
100
|
+
import { embedMany } from 'ai'
|
|
101
|
+
import { openai } from '@ai-sdk/openai'
|
|
102
|
+
|
|
103
|
+
const model = openai.embedding('text-embedding-3-small')
|
|
104
|
+
|
|
105
|
+
const workspace = new Workspace({
|
|
106
|
+
filesystem: new LocalFilesystem({ basePath: './workspace' }),
|
|
107
|
+
vectorStore: new PineconeVector({
|
|
108
|
+
apiKey: process.env.PINECONE_API_KEY,
|
|
109
|
+
index: 'workspace-index',
|
|
110
|
+
}),
|
|
111
|
+
embedder: Object.assign(
|
|
112
|
+
async (texts: string[]) => {
|
|
113
|
+
const { embeddings } = await embedMany({ model, values: texts })
|
|
114
|
+
return embeddings
|
|
115
|
+
},
|
|
116
|
+
{ batch: true as const, maxBatchSize: 2048 },
|
|
117
|
+
),
|
|
118
|
+
})
|
|
119
|
+
```
|
|
120
|
+
|
|
121
|
+
`Object.assign` adds the `batch` and `maxBatchSize` properties to the embedder function. Mastra reads them as metadata and never passes them to the provider.
|
|
122
|
+
|
|
123
|
+
Single-text embedders still work. The function signature `(text: string) => Promise<number[]>` is unchanged, so existing code keeps running without modification.
|
|
124
|
+
|
|
86
125
|
## Hybrid search
|
|
87
126
|
|
|
88
127
|
Configure both BM25 and vector search to enable hybrid mode, which combines keyword matching with semantic understanding.
|
|
@@ -15,7 +15,7 @@ const mastra = new Mastra({
|
|
|
15
15
|
|
|
16
16
|
const dataset = await mastra.datasets.get({ id: 'dataset-id' })
|
|
17
17
|
|
|
18
|
-
// Run against a registered agent with
|
|
18
|
+
// Run against a registered agent with a flat scorer list
|
|
19
19
|
const summary = await dataset.startExperiment({
|
|
20
20
|
targetType: 'agent',
|
|
21
21
|
targetId: 'my-agent',
|
|
@@ -23,8 +23,34 @@ const summary = await dataset.startExperiment({
|
|
|
23
23
|
maxConcurrency: 10,
|
|
24
24
|
})
|
|
25
25
|
|
|
26
|
+
// Or pass the same categorised shape accepted by runEvals
|
|
27
|
+
const summary2 = await dataset.startExperiment({
|
|
28
|
+
targetType: 'agent',
|
|
29
|
+
targetId: 'my-agent',
|
|
30
|
+
scorers: {
|
|
31
|
+
agent: [accuracyScorer],
|
|
32
|
+
trajectory: [toolOrderScorer],
|
|
33
|
+
},
|
|
34
|
+
})
|
|
35
|
+
|
|
36
|
+
// For workflow targets, score individual steps with their own scorers
|
|
37
|
+
const summary3 = await dataset.startExperiment({
|
|
38
|
+
targetType: 'workflow',
|
|
39
|
+
targetId: 'my-workflow',
|
|
40
|
+
scorers: {
|
|
41
|
+
workflow: [overallScorer],
|
|
42
|
+
steps: {
|
|
43
|
+
'fetch-data': [fetchScorer],
|
|
44
|
+
transform: [transformScorer],
|
|
45
|
+
},
|
|
46
|
+
trajectory: [executionPathScorer],
|
|
47
|
+
},
|
|
48
|
+
})
|
|
49
|
+
|
|
26
50
|
console.log(`${summary.succeededCount}/${summary.totalItems} succeeded`)
|
|
27
51
|
console.log(`Status: ${summary.status}`)
|
|
52
|
+
console.log(`${summary2.succeededCount}/${summary2.totalItems} succeeded`)
|
|
53
|
+
console.log(`Status: ${summary2.status}`)
|
|
28
54
|
```
|
|
29
55
|
|
|
30
56
|
## Parameters
|
|
@@ -33,7 +59,7 @@ console.log(`Status: ${summary.status}`)
|
|
|
33
59
|
|
|
34
60
|
**targetId** (`string`): ID of the registered target. Use with \`targetType\`.
|
|
35
61
|
|
|
36
|
-
**scorers** (`(MastraScorer | string)[]`): Scorers to evaluate each result.
|
|
62
|
+
**scorers** (`(MastraScorer | string)[] | AgentScorerConfig | WorkflowScorerConfig`): Scorers to evaluate each result. Accepts a flat array of \`MastraScorer\` instances or registered scorer IDs, or the same categorised config shape used by \`runEvals\` (\`AgentScorerConfig\` / \`WorkflowScorerConfig\`). Trajectory scorers (\`type: "trajectory"\`) automatically receive a pre-extracted \`Trajectory\` as their output regardless of which form is used. For workflow targets, per-step scorers can be passed via \`scorers: { steps: { stepId: \[...] } }\` and run against each step's output; their results carry the originating \`stepId\` and keep \`targetScope: "span"\` (matching \`runEvals\`).
|
|
37
63
|
|
|
38
64
|
**name** (`string`): Display name for the experiment.
|
|
39
65
|
|
|
@@ -37,7 +37,7 @@ const workspace = new Workspace({
|
|
|
37
37
|
|
|
38
38
|
**vectorStore** (`MastraVector`): Vector store for semantic search
|
|
39
39
|
|
|
40
|
-
**embedder** (`(text: string) => Promise
|
|
40
|
+
**embedder** (`Embedder`): Function that turns text into vectors. Required when \`vectorStore\` is set. Accepts either a single-text function \`(text: string) => Promise\<number\[]>\` or a batch-capable function \`(texts: string\[]) => Promise\<number\[]\[]>\` that has a \`batch: true\` property and an optional \`maxBatchSize\`. See \[Batch embedding]\(/docs/workspace/search#batch-embedding).
|
|
41
41
|
|
|
42
42
|
**autoIndexPaths** (`string[]`): Paths or glob patterns to auto-index on init(). Supports glob patterns like '\*\*/\*.md' for selective indexing.
|
|
43
43
|
|
|
@@ -191,6 +191,7 @@ The Reference section provides documentation of Mastra's API, including paramete
|
|
|
191
191
|
- [Hono Adapter](https://mastra.ai/reference/server/hono-adapter)
|
|
192
192
|
- [Koa Adapter](https://mastra.ai/reference/server/koa-adapter)
|
|
193
193
|
- [MastraServer](https://mastra.ai/reference/server/mastra-server)
|
|
194
|
+
- [NestJS Adapter](https://mastra.ai/reference/server/nestjs-adapter)
|
|
194
195
|
- [registerApiRoute()](https://mastra.ai/reference/server/register-api-route)
|
|
195
196
|
- [Server Routes](https://mastra.ai/reference/server/routes)
|
|
196
197
|
- [Overview](https://mastra.ai/reference/storage/overview)
|
|
@@ -243,6 +244,7 @@ The Reference section provides documentation of Mastra's API, including paramete
|
|
|
243
244
|
- [Qdrant Vector Store](https://mastra.ai/reference/vectors/qdrant)
|
|
244
245
|
- [Turbopuffer Vector Store](https://mastra.ai/reference/vectors/turbopuffer)
|
|
245
246
|
- [Upstash Vector Store](https://mastra.ai/reference/vectors/upstash)
|
|
247
|
+
- [AWS Nova Sonic](https://mastra.ai/reference/voice/aws-nova-sonic)
|
|
246
248
|
- [Azure](https://mastra.ai/reference/voice/azure)
|
|
247
249
|
- [Cloudflare](https://mastra.ai/reference/voice/cloudflare)
|
|
248
250
|
- [Composite Voice](https://mastra.ai/reference/voice/composite-voice)
|
package/dist/evals/index.cjs
CHANGED
|
@@ -1,26 +1,26 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
var
|
|
3
|
+
var chunkATJ2RA5L_cjs = require('../chunk-ATJ2RA5L.cjs');
|
|
4
|
+
var chunkO4NY7VXW_cjs = require('../chunk-O4NY7VXW.cjs');
|
|
5
5
|
var chunkAAGXQKWU_cjs = require('../chunk-AAGXQKWU.cjs');
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
Object.defineProperty(exports, "runEvals", {
|
|
10
10
|
enumerable: true,
|
|
11
|
-
get: function () { return
|
|
11
|
+
get: function () { return chunkATJ2RA5L_cjs.runEvals; }
|
|
12
12
|
});
|
|
13
13
|
Object.defineProperty(exports, "MastraScorer", {
|
|
14
14
|
enumerable: true,
|
|
15
|
-
get: function () { return
|
|
15
|
+
get: function () { return chunkO4NY7VXW_cjs.MastraScorer; }
|
|
16
16
|
});
|
|
17
17
|
Object.defineProperty(exports, "createScorer", {
|
|
18
18
|
enumerable: true,
|
|
19
|
-
get: function () { return
|
|
19
|
+
get: function () { return chunkO4NY7VXW_cjs.createScorer; }
|
|
20
20
|
});
|
|
21
21
|
Object.defineProperty(exports, "filterRun", {
|
|
22
22
|
enumerable: true,
|
|
23
|
-
get: function () { return
|
|
23
|
+
get: function () { return chunkO4NY7VXW_cjs.filterRun; }
|
|
24
24
|
});
|
|
25
25
|
Object.defineProperty(exports, "extractTrajectory", {
|
|
26
26
|
enumerable: true,
|
package/dist/evals/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { runEvals } from '../chunk-
|
|
2
|
-
export { MastraScorer, createScorer, filterRun } from '../chunk-
|
|
1
|
+
export { runEvals } from '../chunk-EZANPKCM.js';
|
|
2
|
+
export { MastraScorer, createScorer, filterRun } from '../chunk-X735G7KE.js';
|
|
3
3
|
export { extractTrajectory, extractTrajectoryFromTrace, extractWorkflowTrajectory, listScoresResponseSchema, saveScorePayloadSchema, scoreResultSchema, scoreRowDataSchema, scoringEntityTypeSchema, scoringExtractStepResultSchema, scoringHookInputSchema, scoringInputSchema, scoringInputWithExtractStepResultAndAnalyzeStepResultSchema, scoringInputWithExtractStepResultAndScoreAndReasonSchema, scoringInputWithExtractStepResultSchema, scoringPromptsSchema, scoringSourceSchema, scoringValueSchema } from '../chunk-UI2UGBFU.js';
|
|
4
4
|
//# sourceMappingURL=index.js.map
|
|
5
5
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkQB6SFTJF_cjs = require('../../chunk-QB6SFTJF.cjs');
|
|
4
4
|
var chunkAAGXQKWU_cjs = require('../../chunk-AAGXQKWU.cjs');
|
|
5
5
|
var chunkYGD6CZV4_cjs = require('../../chunk-YGD6CZV4.cjs');
|
|
6
6
|
var chunk4U7ZLI36_cjs = require('../../chunk-4U7ZLI36.cjs');
|
|
@@ -234,7 +234,7 @@ function transformTraceToScorerInputAndOutput(trace) {
|
|
|
234
234
|
}
|
|
235
235
|
|
|
236
236
|
// src/evals/scoreTraces/scoreTracesWorkflow.ts
|
|
237
|
-
var getTraceStep =
|
|
237
|
+
var getTraceStep = chunkQB6SFTJF_cjs.createStep({
|
|
238
238
|
id: "__process-trace-scoring",
|
|
239
239
|
inputSchema: v4.z.object({
|
|
240
240
|
targets: v4.z.array(
|
|
@@ -429,7 +429,7 @@ async function attachScoreToSpan({
|
|
|
429
429
|
} catch {
|
|
430
430
|
}
|
|
431
431
|
}
|
|
432
|
-
var scoreTracesWorkflow =
|
|
432
|
+
var scoreTracesWorkflow = chunkQB6SFTJF_cjs.createWorkflow({
|
|
433
433
|
id: "__batch-scoring-traces",
|
|
434
434
|
inputSchema: v4.z.object({
|
|
435
435
|
targets: v4.z.array(
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { createStep, createWorkflow } from '../../chunk-
|
|
1
|
+
import { createStep, createWorkflow } from '../../chunk-52IAV52S.js';
|
|
2
2
|
import { saveScorePayloadSchema } from '../../chunk-UI2UGBFU.js';
|
|
3
3
|
import { getEntityTypeForSpan } from '../../chunk-G2SVLNSC.js';
|
|
4
4
|
import { MastraError } from '../../chunk-FJEVLHJT.js';
|
package/dist/harness/index.cjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var
|
|
3
|
+
var chunkALZAXC3J_cjs = require('../chunk-ALZAXC3J.cjs');
|
|
4
|
+
var chunkO4NY7VXW_cjs = require('../chunk-O4NY7VXW.cjs');
|
|
5
|
+
var chunk5ANWVE3P_cjs = require('../chunk-5ANWVE3P.cjs');
|
|
6
6
|
var chunkYNE3ZCU5_cjs = require('../chunk-YNE3ZCU5.cjs');
|
|
7
7
|
var chunkM4KUR53T_cjs = require('../chunk-M4KUR53T.cjs');
|
|
8
8
|
var chunkXB4FLS7A_cjs = require('../chunk-XB4FLS7A.cjs');
|
|
@@ -610,7 +610,7 @@ ${FORKED_SUBAGENT_NESTING_NOTICE}`;
|
|
|
610
610
|
isError: true
|
|
611
611
|
};
|
|
612
612
|
}
|
|
613
|
-
subagentToRun = new
|
|
613
|
+
subagentToRun = new chunkO4NY7VXW_cjs.Agent({
|
|
614
614
|
id: `subagent-${definition.id}`,
|
|
615
615
|
name: `${definition.name} Subagent`,
|
|
616
616
|
instructions: definition.instructions,
|
|
@@ -621,7 +621,7 @@ ${FORKED_SUBAGENT_NESTING_NOTICE}`;
|
|
|
621
621
|
const allowedWs = definition.allowedWorkspaceTools ? new Set(definition.allowedWorkspaceTools) : void 0;
|
|
622
622
|
const allWorkspaceToolNames = workspace && allowedWs ? new Set(
|
|
623
623
|
Object.keys(
|
|
624
|
-
await
|
|
624
|
+
await chunk5ANWVE3P_cjs.createWorkspaceTools(workspace, {
|
|
625
625
|
requestContext: context?.requestContext ?? {},
|
|
626
626
|
workspace
|
|
627
627
|
})
|
|
@@ -855,7 +855,7 @@ var Harness = class {
|
|
|
855
855
|
throw new Error("Harness requires at least one agent mode");
|
|
856
856
|
}
|
|
857
857
|
this.currentModeId = defaultMode.id;
|
|
858
|
-
if (config.workspace instanceof
|
|
858
|
+
if (config.workspace instanceof chunk5ANWVE3P_cjs.Workspace) {
|
|
859
859
|
this.workspace = config.workspace;
|
|
860
860
|
} else if (typeof config.workspace === "function") {
|
|
861
861
|
this.workspaceFn = config.workspace;
|
|
@@ -890,7 +890,7 @@ var Harness = class {
|
|
|
890
890
|
*/
|
|
891
891
|
async init() {
|
|
892
892
|
if (this.config.storage) {
|
|
893
|
-
this.#internalMastra = new
|
|
893
|
+
this.#internalMastra = new chunkALZAXC3J_cjs.Mastra({
|
|
894
894
|
logger: false,
|
|
895
895
|
storage: this.config.storage,
|
|
896
896
|
...this.config.observability ? { observability: this.config.observability } : {}
|
|
@@ -900,7 +900,7 @@ var Harness = class {
|
|
|
900
900
|
if (this.config.workspace && !this.workspaceInitialized && !this.workspaceFn) {
|
|
901
901
|
try {
|
|
902
902
|
if (!this.workspace) {
|
|
903
|
-
this.workspace = new
|
|
903
|
+
this.workspace = new chunk5ANWVE3P_cjs.Workspace(this.config.workspace);
|
|
904
904
|
}
|
|
905
905
|
this.emit({ type: "workspace_status_changed", status: "initializing" });
|
|
906
906
|
await this.workspace.init();
|
|
@@ -1150,7 +1150,7 @@ var Harness = class {
|
|
|
1150
1150
|
}
|
|
1151
1151
|
}
|
|
1152
1152
|
try {
|
|
1153
|
-
const { PROVIDER_REGISTRY } = await import('../provider-registry-
|
|
1153
|
+
const { PROVIDER_REGISTRY } = await import('../provider-registry-HZHKE2KN.cjs');
|
|
1154
1154
|
const registry = PROVIDER_REGISTRY;
|
|
1155
1155
|
const providerConfig = registry[provider];
|
|
1156
1156
|
const envVars = providerConfig?.apiKeyEnvVar;
|
|
@@ -1170,7 +1170,7 @@ var Harness = class {
|
|
|
1170
1170
|
*/
|
|
1171
1171
|
async listAvailableModels() {
|
|
1172
1172
|
try {
|
|
1173
|
-
const { PROVIDER_REGISTRY } = await import('../provider-registry-
|
|
1173
|
+
const { PROVIDER_REGISTRY } = await import('../provider-registry-HZHKE2KN.cjs');
|
|
1174
1174
|
if (!PROVIDER_REGISTRY) return [];
|
|
1175
1175
|
const registry = PROVIDER_REGISTRY;
|
|
1176
1176
|
const providers = Object.keys(registry);
|
|
@@ -1229,7 +1229,7 @@ var Harness = class {
|
|
|
1229
1229
|
}
|
|
1230
1230
|
async getProviderApiKeyEnvVar(provider) {
|
|
1231
1231
|
try {
|
|
1232
|
-
const { PROVIDER_REGISTRY } = await import('../provider-registry-
|
|
1232
|
+
const { PROVIDER_REGISTRY } = await import('../provider-registry-HZHKE2KN.cjs');
|
|
1233
1233
|
const registry = PROVIDER_REGISTRY;
|
|
1234
1234
|
const envVars = registry[provider]?.apiKeyEnvVar;
|
|
1235
1235
|
return Array.isArray(envVars) ? envVars[0] : envVars;
|
package/dist/harness/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Mastra } from '../chunk-
|
|
2
|
-
import { Agent } from '../chunk-
|
|
3
|
-
import { Workspace, createWorkspaceTools } from '../chunk-
|
|
1
|
+
import { Mastra } from '../chunk-IB3UPSY2.js';
|
|
2
|
+
import { Agent } from '../chunk-X735G7KE.js';
|
|
3
|
+
import { Workspace, createWorkspaceTools } from '../chunk-F4PWGVHW.js';
|
|
4
4
|
import { safeStringify } from '../chunk-ARNDQ2SQ.js';
|
|
5
5
|
import { createTool } from '../chunk-PXOIM2JE.js';
|
|
6
6
|
import { toStandardSchema } from '../chunk-6SRTDZ7S.js';
|
|
@@ -1148,7 +1148,7 @@ var Harness = class {
|
|
|
1148
1148
|
}
|
|
1149
1149
|
}
|
|
1150
1150
|
try {
|
|
1151
|
-
const { PROVIDER_REGISTRY } = await import('../provider-registry-
|
|
1151
|
+
const { PROVIDER_REGISTRY } = await import('../provider-registry-QREDL7WJ.js');
|
|
1152
1152
|
const registry = PROVIDER_REGISTRY;
|
|
1153
1153
|
const providerConfig = registry[provider];
|
|
1154
1154
|
const envVars = providerConfig?.apiKeyEnvVar;
|
|
@@ -1168,7 +1168,7 @@ var Harness = class {
|
|
|
1168
1168
|
*/
|
|
1169
1169
|
async listAvailableModels() {
|
|
1170
1170
|
try {
|
|
1171
|
-
const { PROVIDER_REGISTRY } = await import('../provider-registry-
|
|
1171
|
+
const { PROVIDER_REGISTRY } = await import('../provider-registry-QREDL7WJ.js');
|
|
1172
1172
|
if (!PROVIDER_REGISTRY) return [];
|
|
1173
1173
|
const registry = PROVIDER_REGISTRY;
|
|
1174
1174
|
const providers = Object.keys(registry);
|
|
@@ -1227,7 +1227,7 @@ var Harness = class {
|
|
|
1227
1227
|
}
|
|
1228
1228
|
async getProviderApiKeyEnvVar(provider) {
|
|
1229
1229
|
try {
|
|
1230
|
-
const { PROVIDER_REGISTRY } = await import('../provider-registry-
|
|
1230
|
+
const { PROVIDER_REGISTRY } = await import('../provider-registry-QREDL7WJ.js');
|
|
1231
1231
|
const registry = PROVIDER_REGISTRY;
|
|
1232
1232
|
const envVars = registry[provider]?.apiKeyEnvVar;
|
|
1233
1233
|
return Array.isArray(envVars) ? envVars[0] : envVars;
|
package/dist/index.cjs
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkALZAXC3J_cjs = require('./chunk-ALZAXC3J.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
Object.defineProperty(exports, "Mastra", {
|
|
8
8
|
enumerable: true,
|
|
9
|
-
get: function () { return
|
|
9
|
+
get: function () { return chunkALZAXC3J_cjs.Mastra; }
|
|
10
10
|
});
|
|
11
11
|
//# sourceMappingURL=index.cjs.map
|
|
12
12
|
//# sourceMappingURL=index.cjs.map
|
package/dist/index.js
CHANGED
package/dist/llm/index.cjs
CHANGED
|
@@ -1,72 +1,72 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var
|
|
6
|
-
var
|
|
7
|
-
var
|
|
3
|
+
var chunkU7C3WU7B_cjs = require('../chunk-U7C3WU7B.cjs');
|
|
4
|
+
var chunkPLCMSZZR_cjs = require('../chunk-PLCMSZZR.cjs');
|
|
5
|
+
var chunkHDZV5R52_cjs = require('../chunk-HDZV5R52.cjs');
|
|
6
|
+
var chunk4RFGOX6E_cjs = require('../chunk-4RFGOX6E.cjs');
|
|
7
|
+
var chunkGYK5WRWE_cjs = require('../chunk-GYK5WRWE.cjs');
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
Object.defineProperty(exports, "AzureOpenAIGateway", {
|
|
12
12
|
enumerable: true,
|
|
13
|
-
get: function () { return
|
|
13
|
+
get: function () { return chunkU7C3WU7B_cjs.AzureOpenAIGateway; }
|
|
14
14
|
});
|
|
15
15
|
Object.defineProperty(exports, "EMBEDDING_MODELS", {
|
|
16
16
|
enumerable: true,
|
|
17
|
-
get: function () { return
|
|
17
|
+
get: function () { return chunkU7C3WU7B_cjs.EMBEDDING_MODELS; }
|
|
18
18
|
});
|
|
19
19
|
Object.defineProperty(exports, "ModelRouterEmbeddingModel", {
|
|
20
20
|
enumerable: true,
|
|
21
|
-
get: function () { return
|
|
21
|
+
get: function () { return chunkU7C3WU7B_cjs.ModelRouterEmbeddingModel; }
|
|
22
22
|
});
|
|
23
23
|
Object.defineProperty(exports, "ModelRouterLanguageModel", {
|
|
24
24
|
enumerable: true,
|
|
25
|
-
get: function () { return
|
|
25
|
+
get: function () { return chunkU7C3WU7B_cjs.ModelRouterLanguageModel; }
|
|
26
26
|
});
|
|
27
27
|
Object.defineProperty(exports, "defaultGateways", {
|
|
28
28
|
enumerable: true,
|
|
29
|
-
get: function () { return
|
|
29
|
+
get: function () { return chunkU7C3WU7B_cjs.defaultGateways; }
|
|
30
30
|
});
|
|
31
31
|
Object.defineProperty(exports, "resolveModelConfig", {
|
|
32
32
|
enumerable: true,
|
|
33
|
-
get: function () { return
|
|
33
|
+
get: function () { return chunkU7C3WU7B_cjs.resolveModelConfig; }
|
|
34
34
|
});
|
|
35
35
|
Object.defineProperty(exports, "GatewayRegistry", {
|
|
36
36
|
enumerable: true,
|
|
37
|
-
get: function () { return
|
|
37
|
+
get: function () { return chunkPLCMSZZR_cjs.GatewayRegistry; }
|
|
38
38
|
});
|
|
39
39
|
Object.defineProperty(exports, "MastraGateway", {
|
|
40
40
|
enumerable: true,
|
|
41
|
-
get: function () { return
|
|
41
|
+
get: function () { return chunkPLCMSZZR_cjs.MastraGateway; }
|
|
42
42
|
});
|
|
43
43
|
Object.defineProperty(exports, "PROVIDER_REGISTRY", {
|
|
44
44
|
enumerable: true,
|
|
45
|
-
get: function () { return
|
|
45
|
+
get: function () { return chunkPLCMSZZR_cjs.PROVIDER_REGISTRY; }
|
|
46
46
|
});
|
|
47
47
|
Object.defineProperty(exports, "getProviderConfig", {
|
|
48
48
|
enumerable: true,
|
|
49
|
-
get: function () { return
|
|
49
|
+
get: function () { return chunkPLCMSZZR_cjs.getProviderConfig; }
|
|
50
50
|
});
|
|
51
51
|
Object.defineProperty(exports, "parseModelString", {
|
|
52
52
|
enumerable: true,
|
|
53
|
-
get: function () { return
|
|
53
|
+
get: function () { return chunkPLCMSZZR_cjs.parseModelString; }
|
|
54
54
|
});
|
|
55
55
|
Object.defineProperty(exports, "ModelsDevGateway", {
|
|
56
56
|
enumerable: true,
|
|
57
|
-
get: function () { return
|
|
57
|
+
get: function () { return chunkHDZV5R52_cjs.ModelsDevGateway; }
|
|
58
58
|
});
|
|
59
59
|
Object.defineProperty(exports, "NetlifyGateway", {
|
|
60
60
|
enumerable: true,
|
|
61
|
-
get: function () { return
|
|
61
|
+
get: function () { return chunk4RFGOX6E_cjs.NetlifyGateway; }
|
|
62
62
|
});
|
|
63
63
|
Object.defineProperty(exports, "GATEWAY_AUTH_HEADER", {
|
|
64
64
|
enumerable: true,
|
|
65
|
-
get: function () { return
|
|
65
|
+
get: function () { return chunkGYK5WRWE_cjs.GATEWAY_AUTH_HEADER; }
|
|
66
66
|
});
|
|
67
67
|
Object.defineProperty(exports, "MastraModelGateway", {
|
|
68
68
|
enumerable: true,
|
|
69
|
-
get: function () { return
|
|
69
|
+
get: function () { return chunkGYK5WRWE_cjs.MastraModelGateway; }
|
|
70
70
|
});
|
|
71
71
|
//# sourceMappingURL=index.cjs.map
|
|
72
72
|
//# sourceMappingURL=index.cjs.map
|
package/dist/llm/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export { AzureOpenAIGateway, EMBEDDING_MODELS, ModelRouterEmbeddingModel, ModelRouterLanguageModel, defaultGateways, resolveModelConfig } from '../chunk-
|
|
2
|
-
export { GatewayRegistry, MastraGateway, PROVIDER_REGISTRY, getProviderConfig, parseModelString } from '../chunk-
|
|
3
|
-
export { ModelsDevGateway } from '../chunk-
|
|
4
|
-
export { NetlifyGateway } from '../chunk-
|
|
5
|
-
export { GATEWAY_AUTH_HEADER, MastraModelGateway } from '../chunk-
|
|
1
|
+
export { AzureOpenAIGateway, EMBEDDING_MODELS, ModelRouterEmbeddingModel, ModelRouterLanguageModel, defaultGateways, resolveModelConfig } from '../chunk-5AZE6Y7E.js';
|
|
2
|
+
export { GatewayRegistry, MastraGateway, PROVIDER_REGISTRY, getProviderConfig, parseModelString } from '../chunk-URCXU22J.js';
|
|
3
|
+
export { ModelsDevGateway } from '../chunk-PW5TFXZI.js';
|
|
4
|
+
export { NetlifyGateway } from '../chunk-D7ORPD2O.js';
|
|
5
|
+
export { GATEWAY_AUTH_HEADER, MastraModelGateway } from '../chunk-II2JGWWS.js';
|
|
6
6
|
//# sourceMappingURL=index.js.map
|
|
7
7
|
//# sourceMappingURL=index.js.map
|