@mastra/mcp-docs-server 1.3.5 → 1.3.6-alpha.3
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/.docs/docs/agents/human-in-the-loop.md +5 -3
- package/.docs/docs/agents/processors.md +9 -3
- package/.docs/docs/agents/tools.md +24 -0
- package/.docs/docs/channels.md +4 -0
- package/.docs/docs/evals/experiments.md +3 -0
- package/.docs/docs/mastra-platform/connect/channels.md +153 -0
- package/.docs/docs/mastra-platform/connect/overview.md +102 -0
- package/.docs/docs/mastra-platform/connect/providers.md +149 -0
- package/.docs/docs/mastra-platform/connect/tools.md +129 -0
- package/.docs/docs/mastra-platform/overview.md +2 -0
- package/.docs/docs/memory/memory-processors.md +2 -5
- package/.docs/docs/memory/semantic-recall.md +2 -2
- package/.docs/docs/memory/working-memory.md +16 -0
- package/.docs/docs/observability/feedback.md +20 -0
- package/.docs/docs/observability/tracing/overview.md +30 -0
- package/.docs/docs/subagents.md +10 -8
- package/.docs/docs/workflows/control-flow.md +1 -1
- package/.docs/integrations/agentic-ui/ai-sdk-ui.md +60 -0
- package/.docs/integrations/observability/langfuse.md +2 -0
- package/.docs/models/gateways/merge-gateway.md +2 -1
- package/.docs/models/gateways/netlify.md +2 -1
- package/.docs/models/gateways/openrouter.md +2 -1
- package/.docs/models/gateways/vercel.md +3 -4
- package/.docs/models/index.md +1 -1
- package/.docs/models/providers/alibaba.md +1 -1
- package/.docs/models/providers/anthropic.md +4 -3
- package/.docs/models/providers/berget.md +1 -1
- package/.docs/models/providers/coralbricks.md +1 -2
- package/.docs/models/providers/cortecs.md +3 -1
- package/.docs/models/providers/edenai.md +5 -3
- package/.docs/models/providers/kilo.md +12 -11
- package/.docs/models/providers/llmgateway-providers.md +6 -1
- package/.docs/models/providers/llmgateway.md +4 -1
- package/.docs/models/providers/mistral.md +9 -16
- package/.docs/models/providers/nano-gpt.md +3 -3
- package/.docs/models/providers/ollama-cloud.md +2 -1
- package/.docs/models/providers/opencode-go.md +5 -4
- package/.docs/models/providers/opencode.md +2 -1
- package/.docs/models/providers/requesty.md +2 -2
- package/.docs/reference/agents/durable-agent.md +2 -0
- package/.docs/reference/agents/generate.md +3 -1
- package/.docs/reference/agents/network.md +2 -0
- package/.docs/reference/ai-sdk/chat-route.md +4 -0
- package/.docs/reference/ai-sdk/handle-chat-stream.md +3 -1
- package/.docs/reference/ai-sdk/to-ai-sdk-stream.md +3 -1
- package/.docs/reference/channels/slack-provider.md +1 -1
- package/.docs/reference/classifier/classifier.md +35 -35
- package/.docs/reference/cli/mastra.md +20 -3
- package/.docs/reference/client-js/memory.md +12 -0
- package/.docs/reference/configuration.md +2 -2
- package/.docs/reference/connect/channels.md +91 -0
- package/.docs/reference/connect/credential.md +63 -0
- package/.docs/reference/connect/providers.md +1065 -0
- package/.docs/reference/connect/tools.md +157 -0
- package/.docs/reference/core/getClassifier.md +1 -1
- package/.docs/reference/core/mastra-model-gateway.md +10 -2
- package/.docs/reference/datasets/addItem.md +2 -2
- package/.docs/reference/datasets/datasets-manager.md +1 -0
- package/.docs/reference/datasets/delete.md +1 -1
- package/.docs/reference/datasets/getExperiment.md +5 -1
- package/.docs/reference/datasets/startExperimentAsync.md +1 -0
- package/.docs/reference/editor/processor-provider.md +2 -2
- package/.docs/reference/evals/create-classifier-scorer.md +5 -5
- package/.docs/reference/index.md +4 -0
- package/.docs/reference/logging/pino-logger.md +1 -1
- package/.docs/reference/memory/deleteMessages.md +1 -1
- package/.docs/reference/memory/memory-class.md +2 -2
- package/.docs/reference/migrations/upgrade-to-v1/memory.md +1 -1
- package/.docs/reference/observability/tracing/exporters/posthog.md +9 -2
- package/.docs/reference/observability/tracing/interfaces.md +7 -0
- package/.docs/reference/observability/tracing/trace-query.md +46 -20
- package/.docs/reference/processors/classifier-processor.md +6 -6
- package/.docs/reference/processors/message-history-processor.md +3 -2
- package/.docs/reference/processors/model-selection-processor.md +11 -11
- package/.docs/reference/processors/response-cache.md +1 -1
- package/.docs/reference/processors/semantic-recall-processor.md +2 -3
- package/.docs/reference/processors/working-memory-processor.md +3 -2
- package/.docs/reference/pubsub/unix-socket-pubsub.md +6 -2
- package/.docs/reference/rag/metadata-filters.md +1 -1
- package/.docs/reference/rag/vector-databases.md +1 -1
- package/.docs/reference/streaming/agents/stream.md +3 -1
- package/.docs/reference/streaming/workflows/resumeStream.md +2 -0
- package/.docs/reference/streaming/workflows/stream.md +2 -0
- package/.docs/reference/tools/ask-user-tool.md +5 -1
- package/.docs/reference/workflows/run-methods/restart.md +2 -0
- package/.docs/reference/workflows/run-methods/resume.md +2 -0
- package/.docs/reference/workflows/run-methods/start.md +2 -0
- package/.docs/reference/workflows/run-methods/timeTravel.md +2 -0
- package/.docs/reference/workflows/step.md +1 -1
- package/package.json +5 -5
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
# Kilo Gateway
|
|
6
6
|
|
|
7
|
-
Access
|
|
7
|
+
Access 396 Kilo Gateway models through Mastra's model router. Authentication is handled automatically using the `KILO_API_KEY` environment variable.
|
|
8
8
|
|
|
9
9
|
Learn more in the [Kilo Gateway documentation](https://kilo.ai).
|
|
10
10
|
|
|
@@ -39,15 +39,15 @@ for await (const chunk of stream) {
|
|
|
39
39
|
| Model | Context | Tools | Reasoning | Image | Audio | Video | Input $/1M | Output $/1M |
|
|
40
40
|
| --------------------------------------------------------------- | ------- | ----- | --------- | ----- | ----- | ----- | ---------- | ----------- |
|
|
41
41
|
| `kilo/~anthropic/claude-fable-latest` | 1.0M | | | | | | $10 | $50 |
|
|
42
|
-
| `kilo/~anthropic/claude-haiku-latest` |
|
|
42
|
+
| `kilo/~anthropic/claude-haiku-latest` | 1.0M | | | | | | $0.10 | $0.50 |
|
|
43
43
|
| `kilo/~anthropic/claude-opus-latest` | 1.0M | | | | | | $4 | $20 |
|
|
44
44
|
| `kilo/~anthropic/claude-sonnet-latest` | 1.0M | | | | | | $2 | $10 |
|
|
45
|
-
| `kilo/~deepseek/deepseek-flash-latest` | 1.0M | | | | | | $0.
|
|
46
|
-
| `kilo/~deepseek/deepseek-pro-latest` | 1.0M | | | | | | $0.
|
|
45
|
+
| `kilo/~deepseek/deepseek-flash-latest` | 1.0M | | | | | | $0.02 | $0.80 |
|
|
46
|
+
| `kilo/~deepseek/deepseek-pro-latest` | 1.0M | | | | | | $0.29 | $4 |
|
|
47
47
|
| `kilo/~deepseek/deepseek-v4-flash-latest` | 1.0M | | | | | | $0.02 | $1 |
|
|
48
48
|
| `kilo/~google/gemini-flash-latest` | 1.0M | | | | | | $0.75 | $4 |
|
|
49
49
|
| `kilo/~google/gemini-pro-latest` | 1.0M | | | | | | $2 | $12 |
|
|
50
|
-
| `kilo/~moonshotai/kimi-latest` | 1.0M | | | | | | $0.
|
|
50
|
+
| `kilo/~moonshotai/kimi-latest` | 1.0M | | | | | | $0.49 | $13 |
|
|
51
51
|
| `kilo/~openai/gpt-astra-latest` | 1.1M | | | | | | $10 | $50 |
|
|
52
52
|
| `kilo/~openai/gpt-luna-latest` | 1.1M | | | | | | $0.10 | $0.50 |
|
|
53
53
|
| `kilo/~openai/gpt-mini-latest` | 400K | | | | | | $0.75 | $5 |
|
|
@@ -55,7 +55,7 @@ for await (const chunk of stream) {
|
|
|
55
55
|
| `kilo/~openai/gpt-terra-latest` | 1.1M | | | | | | $2 | $12 |
|
|
56
56
|
| `kilo/~x-ai/grok-latest` | 500K | | | | | | $2 | $6 |
|
|
57
57
|
| `kilo/~z-ai/glm-flash-latest` | 1.0M | | | | | | $0.04 | $0.50 |
|
|
58
|
-
| `kilo/~z-ai/glm-latest` | 1.0M | | | | | | $0.
|
|
58
|
+
| `kilo/~z-ai/glm-latest` | 1.0M | | | | | | $0.05 | $6 |
|
|
59
59
|
| `kilo/aion-labs/aion-2.0` | 131K | | | | | | $0.80 | $2 |
|
|
60
60
|
| `kilo/aion-labs/aion-3.0` | 131K | | | | | | $3 | $6 |
|
|
61
61
|
| `kilo/aion-labs/aion-3.0-mini` | 131K | | | | | | $0.70 | $1 |
|
|
@@ -71,6 +71,7 @@ for await (const chunk of stream) {
|
|
|
71
71
|
| `kilo/anthropic/claude-fable-5` | 1.0M | | | | | | $10 | $50 |
|
|
72
72
|
| `kilo/anthropic/claude-fable-5.1` | 1.0M | | | | | | $10 | $50 |
|
|
73
73
|
| `kilo/anthropic/claude-haiku-4.5` | 200K | | | | | | $1 | $5 |
|
|
74
|
+
| `kilo/anthropic/claude-haiku-5.5` | 1.0M | | | | | | $0.10 | $0.50 |
|
|
74
75
|
| `kilo/anthropic/claude-opus-4.1` | 200K | | | | | | $15 | $75 |
|
|
75
76
|
| `kilo/anthropic/claude-opus-4.5` | 200K | | | | | | $5 | $25 |
|
|
76
77
|
| `kilo/anthropic/claude-opus-4.6` | 1.0M | | | | | | $5 | $25 |
|
|
@@ -105,7 +106,7 @@ for await (const chunk of stream) {
|
|
|
105
106
|
| `kilo/deepseek/deepseek-r1` | 64K | | | | | | $0.70 | $3 |
|
|
106
107
|
| `kilo/deepseek/deepseek-r1-0528` | 164K | | | | | | $0.70 | $3 |
|
|
107
108
|
| `kilo/deepseek/deepseek-v3.1-terminus` | 164K | | | | | | $0.27 | $1 |
|
|
108
|
-
| `kilo/deepseek/deepseek-v3.2` |
|
|
109
|
+
| `kilo/deepseek/deepseek-v3.2` | 164K | | | | | | $0.26 | $0.42 |
|
|
109
110
|
| `kilo/deepseek/deepseek-v3.2-exp` | 164K | | | | | | $0.27 | $0.41 |
|
|
110
111
|
| `kilo/deepseek/deepseek-v4-flash` | 1.0M | | | | | | $0.14 | $0.28 |
|
|
111
112
|
| `kilo/deepseek/deepseek-v4-flash-0731` | 1.0M | | | | | | $0.44 | $1 |
|
|
@@ -212,7 +213,7 @@ for await (const chunk of stream) {
|
|
|
212
213
|
| `kilo/moonshotai/kimi-k2-0905` | 262K | | | | | | $0.60 | $3 |
|
|
213
214
|
| `kilo/moonshotai/kimi-k2-thinking` | 262K | | | | | | $0.60 | $3 |
|
|
214
215
|
| `kilo/moonshotai/kimi-k2.5` | 262K | | | | | | $0.60 | $3 |
|
|
215
|
-
| `kilo/moonshotai/kimi-k2.6` | 262K | | | | | | $0.
|
|
216
|
+
| `kilo/moonshotai/kimi-k2.6` | 262K | | | | | | $0.47 | $2 |
|
|
216
217
|
| `kilo/moonshotai/kimi-k2.7-code` | 262K | | | | | | $0.67 | $3 |
|
|
217
218
|
| `kilo/moonshotai/kimi-k3` | 1.0M | | | | | | $3 | $15 |
|
|
218
219
|
| `kilo/morph/morph-v3-fast` | 82K | | | | | | $0.80 | $1 |
|
|
@@ -324,7 +325,7 @@ for await (const chunk of stream) {
|
|
|
324
325
|
| `kilo/qwen/qwen3-235b-a22b-2507` | 262K | | | | | | $0.15 | $0.60 |
|
|
325
326
|
| `kilo/qwen/qwen3-235b-a22b-thinking-2507` | 131K | | | | | | $0.23 | $2 |
|
|
326
327
|
| `kilo/qwen/qwen3-30b-a3b` | 41K | | | | | | $0.13 | $0.52 |
|
|
327
|
-
| `kilo/qwen/qwen3-30b-a3b-instruct-2507` |
|
|
328
|
+
| `kilo/qwen/qwen3-30b-a3b-instruct-2507` | 262K | | | | | | $0.13 | $0.52 |
|
|
328
329
|
| `kilo/qwen/qwen3-30b-a3b-thinking-2507` | 82K | | | | | | $0.20 | $2 |
|
|
329
330
|
| `kilo/qwen/qwen3-32b` | 41K | | | | | | $0.08 | $0.28 |
|
|
330
331
|
| `kilo/qwen/qwen3-8b` | 131K | | | | | | $0.12 | $0.46 |
|
|
@@ -389,9 +390,9 @@ for await (const chunk of stream) {
|
|
|
389
390
|
| `kilo/tencent/hy-mt2-1.8b` | 8K | | | | | | $0.04 | $0.18 |
|
|
390
391
|
| `kilo/tencent/hy-mt2-30b-a3b` | 8K | | | | | | $0.07 | $0.29 |
|
|
391
392
|
| `kilo/tencent/hy-mt2-7b` | 8K | | | | | | $0.07 | $0.29 |
|
|
392
|
-
| `kilo/tencent/hy3` | 262K | | | | | | $0.
|
|
393
|
+
| `kilo/tencent/hy3` | 262K | | | | | | $0.08 | $0.33 |
|
|
393
394
|
| `kilo/tencent/hy3-preview` | 262K | | | | | | $0.18 | $0.60 |
|
|
394
|
-
| `kilo/tencent/hy4-preview` | 1.0M | | | | | | $0.
|
|
395
|
+
| `kilo/tencent/hy4-preview` | 1.0M | | | | | | $0.75 | $2 |
|
|
395
396
|
| `kilo/thedrummer/cydonia-24b-v4.1` | 131K | | | | | | $0.30 | $0.50 |
|
|
396
397
|
| `kilo/thedrummer/skyfall-36b-v2` | 33K | | | | | | $0.55 | $0.80 |
|
|
397
398
|
| `kilo/thedrummer/unslopnemo-12b` | 1.0M | | | | | | $0.40 | $0.40 |
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
# LLM Gateway
|
|
6
6
|
|
|
7
|
-
Access
|
|
7
|
+
Access 447 LLM Gateway models through Mastra's model router. Authentication is handled automatically using the `LLMGATEWAY_API_KEY` environment variable.
|
|
8
8
|
|
|
9
9
|
Learn more in the [LLM Gateway documentation](https://llmgateway.io/docs).
|
|
10
10
|
|
|
@@ -74,6 +74,7 @@ for await (const chunk of stream) {
|
|
|
74
74
|
| `llmgateway-providers/anthropic/claude-fable-5-1` | 1.0M | | | | | | $10 | $50 |
|
|
75
75
|
| `llmgateway-providers/anthropic/claude-haiku-4-5` | 200K | | | | | | $1 | $5 |
|
|
76
76
|
| `llmgateway-providers/anthropic/claude-haiku-4-5-20251001` | 200K | | | | | | $1 | $5 |
|
|
77
|
+
| `llmgateway-providers/anthropic/claude-haiku-5-5` | 1.0M | | | | | | $0.10 | $0.50 |
|
|
77
78
|
| `llmgateway-providers/anthropic/claude-opus-4-5-20251101` | 200K | | | | | | $5 | $25 |
|
|
78
79
|
| `llmgateway-providers/anthropic/claude-opus-4-6` | 1.0M | | | | | | $5 | $25 |
|
|
79
80
|
| `llmgateway-providers/anthropic/claude-opus-4-7` | 1.0M | | | | | | $5 | $25 |
|
|
@@ -90,6 +91,7 @@ for await (const chunk of stream) {
|
|
|
90
91
|
| `llmgateway-providers/aws-bedrock/claude-fable-5-1` | 1.0M | | | | | | $10 | $50 |
|
|
91
92
|
| `llmgateway-providers/aws-bedrock/claude-haiku-4-5` | 200K | | | | | | $1 | $5 |
|
|
92
93
|
| `llmgateway-providers/aws-bedrock/claude-haiku-4-5-20251001` | 200K | | | | | | $1 | $5 |
|
|
94
|
+
| `llmgateway-providers/aws-bedrock/claude-haiku-5-5` | 1.0M | | | | | | $0.10 | $0.50 |
|
|
93
95
|
| `llmgateway-providers/aws-bedrock/claude-opus-4-1-20250805` | 200K | | | | | | $15 | $75 |
|
|
94
96
|
| `llmgateway-providers/aws-bedrock/claude-opus-4-5-20251101` | 200K | | | | | | $5 | $25 |
|
|
95
97
|
| `llmgateway-providers/aws-bedrock/claude-opus-4-6` | 1.0M | | | | | | $5 | $25 |
|
|
@@ -220,6 +222,7 @@ for await (const chunk of stream) {
|
|
|
220
222
|
| `llmgateway-providers/embercloud/kimi-k2.5` | 262K | | | | | | $0.41 | $2 |
|
|
221
223
|
| `llmgateway-providers/embercloud/qwen3-coder-next` | 262K | | | | | | $0.11 | $0.68 |
|
|
222
224
|
| `llmgateway-providers/entrim/deepseek-v4.1-flash` | 1.0M | | | | | | $0.20 | $0.60 |
|
|
225
|
+
| `llmgateway-providers/entrim/glm-5.3-flash` | 1.0M | | | | | | $0.10 | $0.35 |
|
|
223
226
|
| `llmgateway-providers/fireworks/deepseek-v4-flash` | 1.0M | | | | | | $0.22 | $0.66 |
|
|
224
227
|
| `llmgateway-providers/fireworks/deepseek-v4-pro` | 1.0M | | | | | | $1 | $4 |
|
|
225
228
|
| `llmgateway-providers/fireworks/deepseek-v4.1-flash` | 1.0M | | | | | | $0.22 | $0.66 |
|
|
@@ -311,6 +314,7 @@ for await (const chunk of stream) {
|
|
|
311
314
|
| `llmgateway-providers/novita/kimi-k2.7-code` | 262K | | | | | | $0.95 | $4 |
|
|
312
315
|
| `llmgateway-providers/novita/kimi-k3` | 1.0M | | | | | | $3 | $15 |
|
|
313
316
|
| `llmgateway-providers/novita/ling-3.0-flash` | 262K | | | | | | $0.06 | $0.18 |
|
|
317
|
+
| `llmgateway-providers/novita/ling-3.1-flash` | 262K | | | | | | — | — |
|
|
314
318
|
| `llmgateway-providers/novita/llama-3-70b-instruct` | 8K | | | | | | $0.51 | $0.74 |
|
|
315
319
|
| `llmgateway-providers/novita/llama-3.2-3b-instruct` | 33K | | | | | | $0.03 | $0.05 |
|
|
316
320
|
| `llmgateway-providers/novita/llama-3.3-70b-instruct` | 131K | | | | | | $0.14 | $0.40 |
|
|
@@ -397,6 +401,7 @@ for await (const chunk of stream) {
|
|
|
397
401
|
| `llmgateway-providers/scx-ai-gp/glm-5.2` | 1.0M | | | | | | $0.88 | $3 |
|
|
398
402
|
| `llmgateway-providers/scx-ai-gp/glm-5.2-fast` | 1.0M | | | | | | $2 | $7 |
|
|
399
403
|
| `llmgateway-providers/scx-ai-gp/glm-5.3` | 1.0M | | | | | | $1 | $4 |
|
|
404
|
+
| `llmgateway-providers/scx-ai-gp/glm-5.3-fast` | 1.0M | | | | | | $3 | $9 |
|
|
400
405
|
| `llmgateway-providers/scx-ai-gp/glm-5.3-flash` | 1.0M | | | | | | $0.09 | $0.25 |
|
|
401
406
|
| `llmgateway-providers/scx-ai-gp/kimi-k2.7-code` | 262K | | | | | | $0.95 | $4 |
|
|
402
407
|
| `llmgateway-providers/scx-ai-gp/kimi-k3` | 1.0M | | | | | | $4 | $18 |
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
# DevPass (LLM Gateway)
|
|
6
6
|
|
|
7
|
-
Access
|
|
7
|
+
Access 218 DevPass (LLM Gateway) models through Mastra's model router. Authentication is handled automatically using the `LLMGATEWAY_API_KEY` environment variable.
|
|
8
8
|
|
|
9
9
|
Learn more in the [DevPass (LLM Gateway) documentation](https://llmgateway.io/docs).
|
|
10
10
|
|
|
@@ -44,6 +44,7 @@ for await (const chunk of stream) {
|
|
|
44
44
|
| `llmgateway/claude-fable-5-1` | 1.0M | | | | | | $10 | $50 |
|
|
45
45
|
| `llmgateway/claude-haiku-4-5` | 200K | | | | | | $1 | $5 |
|
|
46
46
|
| `llmgateway/claude-haiku-4-5-20251001` | 200K | | | | | | $1 | $5 |
|
|
47
|
+
| `llmgateway/claude-haiku-5-5` | 1.0M | | | | | | $0.10 | $0.50 |
|
|
47
48
|
| `llmgateway/claude-opus-4-1-20250805` | 200K | | | | | | $15 | $75 |
|
|
48
49
|
| `llmgateway/claude-opus-4-5-20251101` | 200K | | | | | | $5 | $25 |
|
|
49
50
|
| `llmgateway/claude-opus-4-6` | 1.0M | | | | | | $5 | $25 |
|
|
@@ -98,6 +99,7 @@ for await (const chunk of stream) {
|
|
|
98
99
|
| `llmgateway/glm-5.2` | 1.0M | | | | | | $0.80 | $3 |
|
|
99
100
|
| `llmgateway/glm-5.2-fast` | 1.0M | | | | | | $2 | $7 |
|
|
100
101
|
| `llmgateway/glm-5.3` | 1.0M | | | | | | $0.90 | $3 |
|
|
102
|
+
| `llmgateway/glm-5.3-fast` | 1.0M | | | | | | $3 | $9 |
|
|
101
103
|
| `llmgateway/glm-5.3-flash` | 1.0M | | | | | | $0.09 | $0.25 |
|
|
102
104
|
| `llmgateway/glm-5v-turbo` | 200K | | | | | | $1 | $4 |
|
|
103
105
|
| `llmgateway/gpt-3.5-turbo` | 16K | | | | | | $0.50 | $2 |
|
|
@@ -163,6 +165,7 @@ for await (const chunk of stream) {
|
|
|
163
165
|
| `llmgateway/kimi-k3-fast` | 1.0M | | | | | | $5 | $23 |
|
|
164
166
|
| `llmgateway/ling-3.0-flash` | 262K | | | | | | $0.06 | $0.18 |
|
|
165
167
|
| `llmgateway/ling-3.0-flash-vl` | 131K | | | | | | $0.06 | $0.18 |
|
|
168
|
+
| `llmgateway/ling-3.1-flash` | 262K | | | | | | — | — |
|
|
166
169
|
| `llmgateway/llama-3-70b-instruct` | 8K | | | | | | $0.51 | $0.74 |
|
|
167
170
|
| `llmgateway/llama-3.1-70b-instruct` | 128K | | | | | | $0.72 | $0.72 |
|
|
168
171
|
| `llmgateway/llama-3.2-11b-instruct` | 128K | | | | | | $0.07 | $0.33 |
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
# Mistral
|
|
6
6
|
|
|
7
|
-
Access
|
|
7
|
+
Access 42 Mistral models through Mastra's model router. Authentication is handled automatically using the `MISTRAL_API_KEY` environment variable.
|
|
8
8
|
|
|
9
9
|
Learn more in the [Mistral documentation](https://docs.mistral.ai/getting-started/models/).
|
|
10
10
|
|
|
@@ -19,7 +19,7 @@ const agent = new Agent({
|
|
|
19
19
|
id: "my-agent",
|
|
20
20
|
name: "My Agent",
|
|
21
21
|
instructions: "You are a helpful assistant",
|
|
22
|
-
model: "mistral/codestral-
|
|
22
|
+
model: "mistral/codestral-2508"
|
|
23
23
|
});
|
|
24
24
|
|
|
25
25
|
// Generate a response
|
|
@@ -36,32 +36,25 @@ for await (const chunk of stream) {
|
|
|
36
36
|
|
|
37
37
|
| Model | Context | Tools | Reasoning | Image | Audio | Video | Input $/1M | Output $/1M |
|
|
38
38
|
| --------------------------------- | ------- | ----- | --------- | ----- | ----- | ----- | ---------- | ----------- |
|
|
39
|
+
| `mistral/codestral-2508` | 256K | | | | | | $0.30 | $0.90 |
|
|
39
40
|
| `mistral/codestral-latest` | 256K | | | | | | $0.30 | $0.90 |
|
|
40
|
-
| `mistral/
|
|
41
|
+
| `mistral/ministral-14b-2512` | 262K | | | | | | $0.20 | $0.20 |
|
|
42
|
+
| `mistral/ministral-3b-2512` | 131K | | | | | | $0.10 | $0.10 |
|
|
41
43
|
| `mistral/ministral-3b-latest` | 131K | | | | | | $0.04 | $0.04 |
|
|
44
|
+
| `mistral/ministral-8b-2512` | 262K | | | | | | $0.15 | $0.15 |
|
|
42
45
|
| `mistral/ministral-8b-latest` | 262K | | | | | | $0.10 | $0.10 |
|
|
43
46
|
| `mistral/mistral-embed` | 8K | | | | | | $0.10 | — |
|
|
44
|
-
| `mistral/mistral-large-2411` | 131K | | | | | | $2 | $6 |
|
|
45
47
|
| `mistral/mistral-large-2512` | 262K | | | | | | $0.50 | $2 |
|
|
46
48
|
| `mistral/mistral-large-4` | 524K | | | | | | $0.68 | $2 |
|
|
47
49
|
| `mistral/mistral-large-latest` | 262K | | | | | | $0.50 | $2 |
|
|
48
|
-
| `mistral/mistral-medium-2505` | 131K | | | | | | $0.40 | $2 |
|
|
49
|
-
| `mistral/mistral-medium-2508` | 262K | | | | | | $0.40 | $2 |
|
|
50
50
|
| `mistral/mistral-medium-2604` | 262K | | | | | | $2 | $8 |
|
|
51
51
|
| `mistral/mistral-medium-latest` | 262K | | | | | | $2 | $8 |
|
|
52
|
-
| `mistral/mistral-nemo` | 128K | | | | | | $0.15 | $0.15 |
|
|
53
|
-
| `mistral/mistral-small-2506` | 128K | | | | | | $0.10 | $0.30 |
|
|
54
52
|
| `mistral/mistral-small-2603` | 262K | | | | | | $0.15 | $0.60 |
|
|
55
53
|
| `mistral/mistral-small-latest` | 262K | | | | | | $0.15 | $0.60 |
|
|
56
|
-
| `mistral/open-mistral-7b` | 8K | | | | | | $0.25 | $0.25 |
|
|
57
|
-
| `mistral/open-mixtral-8x22b` | 64K | | | | | | $2 | $6 |
|
|
58
|
-
| `mistral/open-mixtral-8x7b` | 32K | | | | | | $0.70 | $0.70 |
|
|
59
|
-
| `mistral/pixtral-12b` | 128K | | | | | | $0.15 | $0.15 |
|
|
60
|
-
| `mistral/pixtral-large-latest` | 128K | | | | | | $2 | $6 |
|
|
61
54
|
| `mistral/voxtral-mini-latest` | — | | | | | | — | — |
|
|
62
55
|
| `mistral/voxtral-mini-tts-latest` | — | | | | | | — | — |
|
|
56
|
+
| `mistral/voxtral-small-2507` | 33K | | | | | | $0.10 | $0.40 |
|
|
63
57
|
| `mistral/voxtral-small-latest` | 33K | | | | | | $0.10 | $0.30 |
|
|
64
|
-
| `mistral/zai-glm-5-2` | 1.0M | | | | | | $1 | $4 |
|
|
65
58
|
| `mistral/zai-glm-5-3` | 1.0M | | | | | | $1 | $4 |
|
|
66
59
|
|
|
67
60
|
Model availability, capabilities, context windows, and pricing are sourced from [models.dev](https://models.dev) and may change.
|
|
@@ -76,7 +69,7 @@ const agent = new Agent({
|
|
|
76
69
|
name: "custom-agent",
|
|
77
70
|
model: {
|
|
78
71
|
url: "https://api.mistral.ai/v1",
|
|
79
|
-
id: "mistral/codestral-
|
|
72
|
+
id: "mistral/codestral-2508",
|
|
80
73
|
apiKey: process.env.MISTRAL_API_KEY,
|
|
81
74
|
headers: {
|
|
82
75
|
"X-Custom-Header": "value"
|
|
@@ -95,7 +88,7 @@ const agent = new Agent({
|
|
|
95
88
|
const useAdvanced = requestContext.task === "complex";
|
|
96
89
|
return useAdvanced
|
|
97
90
|
? "mistral/zai-glm-5-3"
|
|
98
|
-
: "mistral/codestral-
|
|
91
|
+
: "mistral/codestral-2508";
|
|
99
92
|
}
|
|
100
93
|
});
|
|
101
94
|
```
|
|
@@ -59,6 +59,7 @@ for await (const chunk of stream) {
|
|
|
59
59
|
| `nano-gpt/anthropic/claude-fable-latest` | 1.0M | | | | | | $10 | $50 |
|
|
60
60
|
| `nano-gpt/anthropic/claude-haiku-4.5` | 200K | | | | | | $1 | $5 |
|
|
61
61
|
| `nano-gpt/anthropic/claude-haiku-4.5:thinking` | 200K | | | | | | $1 | $5 |
|
|
62
|
+
| `nano-gpt/anthropic/claude-haiku-5.5` | 1.0M | | | | | | $0.10 | $0.50 |
|
|
62
63
|
| `nano-gpt/anthropic/claude-haiku-latest` | 200K | | | | | | $1 | $5 |
|
|
63
64
|
| `nano-gpt/anthropic/claude-opus-4.1` | 200K | | | | | | $15 | $75 |
|
|
64
65
|
| `nano-gpt/anthropic/claude-opus-4.1:thinking` | 200K | | | | | | $15 | $75 |
|
|
@@ -132,6 +133,8 @@ for await (const chunk of stream) {
|
|
|
132
133
|
| `nano-gpt/deepseek/deepseek-v3.2` | 163K | | | | | | $0.28 | $0.42 |
|
|
133
134
|
| `nano-gpt/deepseek/deepseek-v3.2:thinking` | 163K | | | | | | $0.28 | $0.42 |
|
|
134
135
|
| `nano-gpt/deepseek/deepseek-v4-flash` | 1.0M | | | | | | $0.14 | $0.28 |
|
|
136
|
+
| `nano-gpt/deepseek/deepseek-v4-flash-0423` | 1.0M | | | | | | $0.14 | $0.28 |
|
|
137
|
+
| `nano-gpt/deepseek/deepseek-v4-flash-0423:thinking` | 1.0M | | | | | | $0.14 | $0.28 |
|
|
135
138
|
| `nano-gpt/deepseek/deepseek-v4-flash-0731` | 1.0M | | | | | | $0.05 | $0.16 |
|
|
136
139
|
| `nano-gpt/deepseek/deepseek-v4-flash-0731:thinking` | 1.0M | | | | | | $0.05 | $0.16 |
|
|
137
140
|
| `nano-gpt/deepseek/deepseek-v4-flash-latest` | 1.0M | | | | | | $0.05 | $0.16 |
|
|
@@ -147,8 +150,6 @@ for await (const chunk of stream) {
|
|
|
147
150
|
| `nano-gpt/doubao-1.5-pro-256k` | 256K | | | | | | $0.80 | $1 |
|
|
148
151
|
| `nano-gpt/doubao-1.5-pro-32k` | 32K | | | | | | $0.13 | $0.33 |
|
|
149
152
|
| `nano-gpt/doubao-1.5-vision-pro-32k` | 32K | | | | | | $0.46 | $1 |
|
|
150
|
-
| `nano-gpt/doubao-seed-1-6-250615` | 256K | | | | | | $0.20 | $0.51 |
|
|
151
|
-
| `nano-gpt/doubao-seed-1-6-flash-250615` | 256K | | | | | | $0.04 | $0.37 |
|
|
152
153
|
| `nano-gpt/doubao-seed-2-0-code-preview-260215` | 256K | | | | | | $0.78 | $4 |
|
|
153
154
|
| `nano-gpt/doubao-seed-2-0-lite-260215` | 256K | | | | | | $0.15 | $0.87 |
|
|
154
155
|
| `nano-gpt/doubao-seed-2-0-mini-260215` | 256K | | | | | | $0.05 | $0.48 |
|
|
@@ -158,7 +159,6 @@ for await (const chunk of stream) {
|
|
|
158
159
|
| `nano-gpt/ernie-5.0-thinking-preview` | 128K | | | | | | $1 | $4 |
|
|
159
160
|
| `nano-gpt/ernie-5.1` | 119K | | | | | | $0.75 | $3 |
|
|
160
161
|
| `nano-gpt/ernie-5.1:thinking` | 119K | | | | | | $0.75 | $3 |
|
|
161
|
-
| `nano-gpt/ernie-x1.1-preview` | 64K | | | | | | $0.15 | $0.60 |
|
|
162
162
|
| `nano-gpt/EVA-UNIT-01/EVA-LLaMA-3.33-70B-v0.0` | 33K | | | | | | $2 | $2 |
|
|
163
163
|
| `nano-gpt/EVA-UNIT-01/EVA-LLaMA-3.33-70B-v0.1` | 33K | | | | | | $2 | $2 |
|
|
164
164
|
| `nano-gpt/EVA-UNIT-01/EVA-Qwen2.5-32B-v0.2` | 16K | | | | | | $0.80 | $0.80 |
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
# Ollama Cloud
|
|
6
6
|
|
|
7
|
-
Access
|
|
7
|
+
Access 25 Ollama Cloud models through Mastra's model router. Authentication is handled automatically using the `OLLAMA_API_KEY` environment variable.
|
|
8
8
|
|
|
9
9
|
Learn more in the [Ollama Cloud documentation](https://docs.ollama.com/cloud).
|
|
10
10
|
|
|
@@ -58,6 +58,7 @@ for await (const chunk of stream) {
|
|
|
58
58
|
| `ollama-cloud/minimax-m2.7` | 197K | | | | | | $0.30 | $1 |
|
|
59
59
|
| `ollama-cloud/minimax-m3` | 512K | | | | | | $0.60 | $2 |
|
|
60
60
|
| `ollama-cloud/mistral-large-3:675b` | 262K | | | | | | $0.50 | $2 |
|
|
61
|
+
| `ollama-cloud/mistral-large-4` | 1.0M | | | | | | $1 | $4 |
|
|
61
62
|
| `ollama-cloud/nemotron-3-nano:30b` | 1.0M | | | | | | $0.06 | $0.24 |
|
|
62
63
|
| `ollama-cloud/nemotron-3-super` | 262K | | | | | | $0.01 | $0.60 |
|
|
63
64
|
| `ollama-cloud/nemotron-3-ultra` | 262K | | | | | | $0.10 | $3 |
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
# OpenCode Go
|
|
6
6
|
|
|
7
|
-
Access
|
|
7
|
+
Access 35 OpenCode Go models through Mastra's model router. Authentication is handled automatically using the `OPENCODE_API_KEY` environment variable.
|
|
8
8
|
|
|
9
9
|
Learn more in the [OpenCode Go documentation](https://opencode.ai/docs/go).
|
|
10
10
|
|
|
@@ -19,7 +19,7 @@ const agent = new Agent({
|
|
|
19
19
|
id: "my-agent",
|
|
20
20
|
name: "My Agent",
|
|
21
21
|
instructions: "You are a helpful assistant",
|
|
22
|
-
model: "opencode-go/
|
|
22
|
+
model: "opencode-go/claude-haiku-5-5"
|
|
23
23
|
});
|
|
24
24
|
|
|
25
25
|
// Generate a response
|
|
@@ -38,6 +38,7 @@ for await (const chunk of stream) {
|
|
|
38
38
|
|
|
39
39
|
| Model | Context | Tools | Reasoning | Image | Audio | Video | Input $/1M | Output $/1M |
|
|
40
40
|
| ------------------------------------------ | ------- | ----- | --------- | ----- | ----- | ----- | ---------- | ----------- |
|
|
41
|
+
| `opencode-go/claude-haiku-5-5` | 1.0M | | | | | | $0.10 | $0.50 |
|
|
41
42
|
| `opencode-go/deepseek-v4-flash` | 1.0M | | | | | | $0.15 | $0.60 |
|
|
42
43
|
| `opencode-go/deepseek-v4-flash-vision-exp` | 1.0M | | | | | | $0.15 | $0.60 |
|
|
43
44
|
| `opencode-go/deepseek-v4-pro` | 1.0M | | | | | | $0.66 | $2 |
|
|
@@ -80,7 +81,7 @@ const agent = new Agent({
|
|
|
80
81
|
name: "custom-agent",
|
|
81
82
|
model: {
|
|
82
83
|
url: "https://opencode.ai/zen/go/v1",
|
|
83
|
-
id: "opencode-go/
|
|
84
|
+
id: "opencode-go/claude-haiku-5-5",
|
|
84
85
|
apiKey: process.env.OPENCODE_API_KEY,
|
|
85
86
|
headers: {
|
|
86
87
|
"X-Custom-Header": "value"
|
|
@@ -99,7 +100,7 @@ const agent = new Agent({
|
|
|
99
100
|
const useAdvanced = requestContext.task === "complex";
|
|
100
101
|
return useAdvanced
|
|
101
102
|
? "opencode-go/space-bunny-free"
|
|
102
|
-
: "opencode-go/
|
|
103
|
+
: "opencode-go/claude-haiku-5-5";
|
|
103
104
|
}
|
|
104
105
|
});
|
|
105
106
|
```
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
# OpenCode Zen
|
|
6
6
|
|
|
7
|
-
Access
|
|
7
|
+
Access 119 OpenCode Zen models through Mastra's model router. Authentication is handled automatically using the `OPENCODE_API_KEY` environment variable.
|
|
8
8
|
|
|
9
9
|
Learn more in the [OpenCode Zen documentation](https://opencode.ai/docs/zen).
|
|
10
10
|
|
|
@@ -42,6 +42,7 @@ for await (const chunk of stream) {
|
|
|
42
42
|
| `opencode/claude-fable-5` | 1.0M | | | | | | $10 | $50 |
|
|
43
43
|
| `opencode/claude-fable-5-1` | 1.0M | | | | | | $10 | $50 |
|
|
44
44
|
| `opencode/claude-haiku-4-5` | 200K | | | | | | $1 | $5 |
|
|
45
|
+
| `opencode/claude-haiku-5-5` | 1.0M | | | | | | $0.10 | $0.50 |
|
|
45
46
|
| `opencode/claude-opus-4-5` | 200K | | | | | | $5 | $25 |
|
|
46
47
|
| `opencode/claude-opus-4-6` | 1.0M | | | | | | $5 | $25 |
|
|
47
48
|
| `opencode/claude-opus-4-7` | 1.0M | | | | | | $5 | $25 |
|
|
@@ -167,8 +167,8 @@ for await (const chunk of stream) {
|
|
|
167
167
|
| `requesty/minimax-m2.7-highspeed` | 200K | | | | | | $0.60 | $2 |
|
|
168
168
|
| `requesty/minimax-m3` | 1.0M | | | | | | $0.30 | $1 |
|
|
169
169
|
| `requesty/minimax-m3@eu` | 1.0M | | | | | | $0.40 | $2 |
|
|
170
|
-
| `requesty/mistral-large-4` |
|
|
171
|
-
| `requesty/mistral-large-4@eu` |
|
|
170
|
+
| `requesty/mistral-large-4` | 524K | | | | | | $0.68 | $2 |
|
|
171
|
+
| `requesty/mistral-large-4@eu` | 524K | | | | | | $0.68 | $2 |
|
|
172
172
|
| `requesty/mistral-medium-3-5` | 262K | | | | | | $2 | $8 |
|
|
173
173
|
| `requesty/mistral-medium-3-5@eu` | 262K | | | | | | $2 | $8 |
|
|
174
174
|
| `requesty/mistral-medium-latest` | 131K | | | | | | $0.44 | $2 |
|
|
@@ -181,6 +181,8 @@ Returns: [`Promise<DurableAgentStreamResult>`](#durableagentstreamresult)
|
|
|
181
181
|
|
|
182
182
|
Reconnects to an existing run. Use this after a network disconnection. For the supported general reconnect flow, omit `offset` to replay all available cached events before receiving live events.
|
|
183
183
|
|
|
184
|
+
For runs configured with `structuredOutput`, an observer in another process reconstructs `output.object` from the persisted schema and replayed text.
|
|
185
|
+
|
|
184
186
|
```typescript
|
|
185
187
|
const { output } = await durableAgent.observe(runId, {
|
|
186
188
|
onChunk: chunk => console.log(chunk),
|
|
@@ -64,7 +64,7 @@ const result = await agent.generate('message for agent')
|
|
|
64
64
|
|
|
65
65
|
**options.delegation.onDelegationComplete** (`(context: DelegationCompleteContext) => { feedback?: string } | void | Promise<{ feedback?: string } | void>`): Called after a subagent delegation completes. The context includes a bail() method to stop further execution, and you can return { feedback } to guide the supervisor's next action. Feedback is saved to supervisor memory as an assistant message.
|
|
66
66
|
|
|
67
|
-
**options.delegation.messageFilter** (`(context: MessageFilterContext) =>
|
|
67
|
+
**options.delegation.messageFilter** (`(context: MessageFilterContext) => ModelMessage[] | Promise<ModelMessage[]>`): Callback function called before delegating to a subagent. Use this to filter the messages that are passed to the subagent.
|
|
68
68
|
|
|
69
69
|
**options.scorers** (`MastraScorers | Record<string, { scorer: MastraScorer['name']; sampling?: ScoringSamplingConfig }>`): Evaluation scorers to run on the execution results.
|
|
70
70
|
|
|
@@ -220,6 +220,8 @@ const result = await agent.generate('message for agent')
|
|
|
220
220
|
|
|
221
221
|
**options.tracingOptions.parentSpanId** (`string`): Parent span ID to use for this execution (1-16 hexadecimal characters). If provided, the root span will be created as a child of this span.
|
|
222
222
|
|
|
223
|
+
**options.tracingOptions.nestUnderParent** (`boolean`): Set to true together with parentSpanId to attach this run as a child of that span inside the existing trace, for example an LLM judge under the run it scores. Exporters then keep the trace's own name, input, output, and tags. Leave unset when parentSpanId comes from your own tracing system. Ignored without a valid traceId and parentSpanId.
|
|
224
|
+
|
|
223
225
|
**options.tracingOptions.tags** (`string[]`): Tags to apply to this trace. String labels for categorizing and filtering traces.
|
|
224
226
|
|
|
225
227
|
**options.versions** (`VersionOverrides`): Per-invocation version overrides for sub-agent delegation. Merged on top of Mastra instance-level versions and propagated automatically through sub-agent calls via requestContext. Requires the editor package. See Editor versioning.
|
|
@@ -76,6 +76,8 @@ await agent.network(`
|
|
|
76
76
|
|
|
77
77
|
**options.tracingOptions.parentSpanId** (`string`): Parent span ID to use for this execution (1-16 hexadecimal characters). If provided, the root span will be created as a child of this span.
|
|
78
78
|
|
|
79
|
+
**options.tracingOptions.nestUnderParent** (`boolean`): Set to true together with parentSpanId to attach this run as a child of that span inside the existing trace, for example an LLM judge under the run it scores. Exporters then keep the trace's own name, input, output, and tags. Leave unset when parentSpanId comes from your own tracing system. Ignored without a valid traceId and parentSpanId.
|
|
80
|
+
|
|
79
81
|
**options.tracingOptions.tags** (`string[]`): Tags to apply to this trace. String labels for categorizing and filtering traces.
|
|
80
82
|
|
|
81
83
|
**options.telemetry** (`TelemetrySettings`): Settings for OTLP telemetry collection during streaming (not Tracing).
|
|
@@ -71,6 +71,10 @@ export const mastra = new Mastra({
|
|
|
71
71
|
|
|
72
72
|
**sendSources** (`boolean`): Whether to include source citations in the stream. (Default: `false`)
|
|
73
73
|
|
|
74
|
+
**includeSubAgentMetadata** (`boolean`): Whether to stream sub-agent progress as data-tool-agent and data-tool-agent-step parts when the agent delegates to sub-agents. These parts can include sub-agent reasoning and tool calls and results. Set to false if your clients should not receive them. (Default: `true`)
|
|
75
|
+
|
|
76
|
+
**messageMetadata** (`(options: { part: UIMessageStreamPart; traceId?: string }) => Record<string, unknown> | undefined`): A function that receives the current stream part and returns metadata to attach to start and finish chunks. Also receives the run's traceId (undefined when tracing is disabled), so you can return it as metadata, for example ({ part, traceId }) => (part.type === 'start' ? { traceId } : undefined). See the AI SDK message metadata docs for details.
|
|
77
|
+
|
|
74
78
|
**heartbeatMs** (`number`): Interval in milliseconds for SSE heartbeats that keep connections active through infrastructure with idle timeouts.
|
|
75
79
|
|
|
76
80
|
## Additional configuration
|
|
@@ -94,6 +94,8 @@ return withSseHeartbeat(createUIMessageStreamResponse({ stream }), 15000)
|
|
|
94
94
|
|
|
95
95
|
**sendSources** (`boolean`): Whether to include source citations in the stream. (Default: `false`)
|
|
96
96
|
|
|
97
|
+
**includeSubAgentMetadata** (`boolean`): Whether to stream sub-agent progress as data-tool-agent and data-tool-agent-step parts when the agent delegates to sub-agents. These parts can include sub-agent reasoning and tool calls and results. Set to false if your clients should not receive them. (Default: `true`)
|
|
98
|
+
|
|
97
99
|
**onError** (`(error: unknown) => string`): Called when the stream encounters an error. Return the string that will be sent to the client as the error message. Use this to sanitize errors before they reach the client — for example, to prevent internal infrastructure details from leaking to end users.
|
|
98
100
|
|
|
99
|
-
**messageMetadata** (`(options: { part: UIMessageStreamPart }) => Record<string, unknown> | undefined`): A function that receives the current stream part and returns metadata to attach to start and finish chunks. See the AI SDK message metadata docs for details.
|
|
101
|
+
**messageMetadata** (`(options: { part: UIMessageStreamPart; traceId?: string }) => Record<string, unknown> | undefined`): A function that receives the current stream part and returns metadata to attach to start and finish chunks. Also receives the run's traceId (undefined when tracing is disabled), so you can return it as metadata, for example ({ part, traceId }) => (part.type === 'start' ? { traceId } : undefined). See the AI SDK message metadata docs for details.
|
|
@@ -80,9 +80,11 @@ The second parameter is an options object:
|
|
|
80
80
|
|
|
81
81
|
**sendSources** (`boolean`): (Agent only) Whether to include source citations in the output. (Default: `false`)
|
|
82
82
|
|
|
83
|
+
**includeSubAgentMetadata** (`boolean`): (Agent only) Whether to stream sub-agent progress as data-tool-agent and data-tool-agent-step parts when the agent delegates to sub-agents. handleChatStream() and chatRoute() enable this by default. (Default: `false`)
|
|
84
|
+
|
|
83
85
|
**includeTextStreamParts** (`boolean`): (Workflow only) Whether to include text stream parts in the output. (Default: `true`)
|
|
84
86
|
|
|
85
|
-
**messageMetadata** (`(options: { part: UIMessageStreamPart }) => Record<string, unknown> | undefined`): (Agent only) A function that receives the current stream part and returns metadata to attach to start and finish chunks.
|
|
87
|
+
**messageMetadata** (`(options: { part: UIMessageStreamPart; traceId?: string }) => Record<string, unknown> | undefined`): (Agent only) A function that receives the current stream part and returns metadata to attach to start and finish chunks. Also receives the run's traceId (undefined when tracing is disabled), so you can return it as metadata, for example ({ part, traceId }) => (part.type === 'start' ? { traceId } : undefined).
|
|
86
88
|
|
|
87
89
|
**onError** (`(error: unknown) => string`): (Agent only) A function to handle errors during stream conversion. Receives the error and should return a string representation.
|
|
88
90
|
|
|
@@ -185,7 +185,7 @@ Returns: `Promise<void>`
|
|
|
185
185
|
|
|
186
186
|
## Default manifest
|
|
187
187
|
|
|
188
|
-
When `connect()` builds a Slack app, the generated manifest requests a default set of bot scopes and event subscriptions. Override
|
|
188
|
+
When `connect()` builds a Slack app, the generated manifest requests a default set of bot scopes and event subscriptions. Configuring slash commands also adds the `commands` scope. Override the defaults with the `manifest` option on `connect()`.
|
|
189
189
|
|
|
190
190
|
| Default bot scopes | Default bot events |
|
|
191
191
|
| ------------------- | ------------------ |
|