@mastra/mcp-docs-server 1.2.14-alpha.4 → 1.2.15-alpha.1
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/models/gateways/netlify.md +6 -6
- package/.docs/models/gateways/openrouter.md +8 -7
- package/.docs/models/gateways/vercel.md +7 -7
- package/.docs/models/index.md +97 -96
- package/.docs/models/providers/alibaba-cn.md +25 -23
- package/.docs/models/providers/alibaba-token-plan-cn.md +24 -24
- package/.docs/models/providers/alibaba-token-plan.md +25 -23
- package/.docs/models/providers/alibaba.md +25 -23
- package/.docs/models/providers/ambient.md +26 -24
- package/.docs/models/providers/anthropic.md +2 -2
- package/.docs/models/providers/baseten.md +25 -23
- package/.docs/models/providers/chutes.md +25 -23
- package/.docs/models/providers/cortecs.md +133 -85
- package/.docs/models/providers/crof.md +25 -23
- package/.docs/models/providers/crossmodel.md +25 -23
- package/.docs/models/providers/deepinfra.md +24 -22
- package/.docs/models/providers/digitalocean.md +25 -23
- package/.docs/models/providers/empiriolabs.md +25 -23
- package/.docs/models/providers/fireworks-ai.md +24 -24
- package/.docs/models/providers/greenpt.md +25 -23
- package/.docs/models/providers/groq.md +25 -23
- package/.docs/models/providers/huggingface.md +25 -23
- package/.docs/models/providers/hyper.md +31 -29
- package/.docs/models/providers/impossibl.md +25 -23
- package/.docs/models/providers/infomaniak.md +24 -24
- package/.docs/models/providers/kilo.md +26 -24
- package/.docs/models/providers/llmgateway.md +26 -24
- package/.docs/models/providers/mistral.md +25 -23
- package/.docs/models/providers/modal.md +25 -23
- package/.docs/models/providers/modelis.md +25 -23
- package/.docs/models/providers/nano-gpt.md +26 -24
- package/.docs/models/providers/neuralwatt.md +25 -23
- package/.docs/models/providers/ofox.md +25 -23
- package/.docs/models/providers/ollama-cloud.md +25 -23
- package/.docs/models/providers/opencode-go.md +25 -23
- package/.docs/models/providers/opencode.md +25 -23
- package/.docs/models/providers/pioneer.md +52 -24
- package/.docs/models/providers/requesty.md +25 -23
- package/.docs/models/providers/routing-run.md +25 -23
- package/.docs/models/providers/scx.md +25 -23
- package/.docs/models/providers/tensorx.md +25 -23
- package/.docs/models/providers/togetherai.md +24 -22
- package/.docs/models/providers/umans-ai-coding-plan.md +24 -24
- package/.docs/models/providers/umans-ai.md +25 -23
- package/.docs/models/providers/wandb.md +25 -23
- package/.docs/models/providers/xai.md +28 -26
- package/.docs/models/providers/zai-coding-plan.md +25 -23
- package/.docs/models/providers/zhipuai-coding-plan.md +25 -23
- package/.docs/reference/file-based-agents/schedules.md +232 -0
- package/.docs/reference/index.md +1 -0
- package/CHANGELOG.md +14 -0
- package/package.json +5 -5
|
@@ -11,22 +11,22 @@ OLLAMA_API_KEY=your-api-key
|
|
|
11
11
|
```
|
|
12
12
|
|
|
13
13
|
```typescript
|
|
14
|
-
import { Agent } from
|
|
14
|
+
import { Agent } from "@mastra/core/agent";
|
|
15
15
|
|
|
16
16
|
const agent = new Agent({
|
|
17
|
-
id:
|
|
18
|
-
name:
|
|
19
|
-
instructions:
|
|
20
|
-
model:
|
|
21
|
-
})
|
|
17
|
+
id: "my-agent",
|
|
18
|
+
name: "My Agent",
|
|
19
|
+
instructions: "You are a helpful assistant",
|
|
20
|
+
model: "ollama-cloud/deepseek-v4-flash"
|
|
21
|
+
});
|
|
22
22
|
|
|
23
23
|
// Generate a response
|
|
24
|
-
const response = await agent.generate(
|
|
24
|
+
const response = await agent.generate("Hello!");
|
|
25
25
|
|
|
26
26
|
// Stream a response
|
|
27
|
-
const stream = await agent.stream(
|
|
27
|
+
const stream = await agent.stream("Tell me a story");
|
|
28
28
|
for await (const chunk of stream) {
|
|
29
|
-
console.log(chunk)
|
|
29
|
+
console.log(chunk);
|
|
30
30
|
}
|
|
31
31
|
```
|
|
32
32
|
|
|
@@ -63,28 +63,30 @@ for await (const chunk of stream) {
|
|
|
63
63
|
|
|
64
64
|
```typescript
|
|
65
65
|
const agent = new Agent({
|
|
66
|
-
id:
|
|
67
|
-
name:
|
|
66
|
+
id: "custom-agent",
|
|
67
|
+
name: "custom-agent",
|
|
68
68
|
model: {
|
|
69
|
-
url:
|
|
70
|
-
id:
|
|
69
|
+
url: "https://ollama.com/v1",
|
|
70
|
+
id: "ollama-cloud/deepseek-v4-flash",
|
|
71
71
|
apiKey: process.env.OLLAMA_API_KEY,
|
|
72
72
|
headers: {
|
|
73
|
-
|
|
74
|
-
}
|
|
75
|
-
}
|
|
76
|
-
})
|
|
73
|
+
"X-Custom-Header": "value"
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
});
|
|
77
77
|
```
|
|
78
78
|
|
|
79
79
|
### Dynamic model selection
|
|
80
80
|
|
|
81
81
|
```typescript
|
|
82
82
|
const agent = new Agent({
|
|
83
|
-
id:
|
|
84
|
-
name:
|
|
83
|
+
id: "dynamic-agent",
|
|
84
|
+
name: "Dynamic Agent",
|
|
85
85
|
model: ({ requestContext }) => {
|
|
86
|
-
const useAdvanced = requestContext.task ===
|
|
87
|
-
return useAdvanced
|
|
88
|
-
|
|
89
|
-
|
|
86
|
+
const useAdvanced = requestContext.task === "complex";
|
|
87
|
+
return useAdvanced
|
|
88
|
+
? "ollama-cloud/qwen3.5:397b"
|
|
89
|
+
: "ollama-cloud/deepseek-v4-flash";
|
|
90
|
+
}
|
|
91
|
+
});
|
|
90
92
|
```
|
|
@@ -11,22 +11,22 @@ OPENCODE_API_KEY=your-api-key
|
|
|
11
11
|
```
|
|
12
12
|
|
|
13
13
|
```typescript
|
|
14
|
-
import { Agent } from
|
|
14
|
+
import { Agent } from "@mastra/core/agent";
|
|
15
15
|
|
|
16
16
|
const agent = new Agent({
|
|
17
|
-
id:
|
|
18
|
-
name:
|
|
19
|
-
instructions:
|
|
20
|
-
model:
|
|
21
|
-
})
|
|
17
|
+
id: "my-agent",
|
|
18
|
+
name: "My Agent",
|
|
19
|
+
instructions: "You are a helpful assistant",
|
|
20
|
+
model: "opencode-go/deepseek-v4-flash"
|
|
21
|
+
});
|
|
22
22
|
|
|
23
23
|
// Generate a response
|
|
24
|
-
const response = await agent.generate(
|
|
24
|
+
const response = await agent.generate("Hello!");
|
|
25
25
|
|
|
26
26
|
// Stream a response
|
|
27
|
-
const stream = await agent.stream(
|
|
27
|
+
const stream = await agent.stream("Tell me a story");
|
|
28
28
|
for await (const chunk of stream) {
|
|
29
|
-
console.log(chunk)
|
|
29
|
+
console.log(chunk);
|
|
30
30
|
}
|
|
31
31
|
```
|
|
32
32
|
|
|
@@ -61,28 +61,30 @@ for await (const chunk of stream) {
|
|
|
61
61
|
|
|
62
62
|
```typescript
|
|
63
63
|
const agent = new Agent({
|
|
64
|
-
id:
|
|
65
|
-
name:
|
|
64
|
+
id: "custom-agent",
|
|
65
|
+
name: "custom-agent",
|
|
66
66
|
model: {
|
|
67
|
-
url:
|
|
68
|
-
id:
|
|
67
|
+
url: "https://opencode.ai/zen/go/v1",
|
|
68
|
+
id: "opencode-go/deepseek-v4-flash",
|
|
69
69
|
apiKey: process.env.OPENCODE_API_KEY,
|
|
70
70
|
headers: {
|
|
71
|
-
|
|
72
|
-
}
|
|
73
|
-
}
|
|
74
|
-
})
|
|
71
|
+
"X-Custom-Header": "value"
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
});
|
|
75
75
|
```
|
|
76
76
|
|
|
77
77
|
### Dynamic model selection
|
|
78
78
|
|
|
79
79
|
```typescript
|
|
80
80
|
const agent = new Agent({
|
|
81
|
-
id:
|
|
82
|
-
name:
|
|
81
|
+
id: "dynamic-agent",
|
|
82
|
+
name: "Dynamic Agent",
|
|
83
83
|
model: ({ requestContext }) => {
|
|
84
|
-
const useAdvanced = requestContext.task ===
|
|
85
|
-
return useAdvanced
|
|
86
|
-
|
|
87
|
-
|
|
84
|
+
const useAdvanced = requestContext.task === "complex";
|
|
85
|
+
return useAdvanced
|
|
86
|
+
? "opencode-go/qwen3.8-max"
|
|
87
|
+
: "opencode-go/deepseek-v4-flash";
|
|
88
|
+
}
|
|
89
|
+
});
|
|
88
90
|
```
|
|
@@ -11,22 +11,22 @@ OPENCODE_API_KEY=your-api-key
|
|
|
11
11
|
```
|
|
12
12
|
|
|
13
13
|
```typescript
|
|
14
|
-
import { Agent } from
|
|
14
|
+
import { Agent } from "@mastra/core/agent";
|
|
15
15
|
|
|
16
16
|
const agent = new Agent({
|
|
17
|
-
id:
|
|
18
|
-
name:
|
|
19
|
-
instructions:
|
|
20
|
-
model:
|
|
21
|
-
})
|
|
17
|
+
id: "my-agent",
|
|
18
|
+
name: "My Agent",
|
|
19
|
+
instructions: "You are a helpful assistant",
|
|
20
|
+
model: "opencode/big-pickle"
|
|
21
|
+
});
|
|
22
22
|
|
|
23
23
|
// Generate a response
|
|
24
|
-
const response = await agent.generate(
|
|
24
|
+
const response = await agent.generate("Hello!");
|
|
25
25
|
|
|
26
26
|
// Stream a response
|
|
27
|
-
const stream = await agent.stream(
|
|
27
|
+
const stream = await agent.stream("Tell me a story");
|
|
28
28
|
for await (const chunk of stream) {
|
|
29
|
-
console.log(chunk)
|
|
29
|
+
console.log(chunk);
|
|
30
30
|
}
|
|
31
31
|
```
|
|
32
32
|
|
|
@@ -104,28 +104,30 @@ for await (const chunk of stream) {
|
|
|
104
104
|
|
|
105
105
|
```typescript
|
|
106
106
|
const agent = new Agent({
|
|
107
|
-
id:
|
|
108
|
-
name:
|
|
107
|
+
id: "custom-agent",
|
|
108
|
+
name: "custom-agent",
|
|
109
109
|
model: {
|
|
110
|
-
url:
|
|
111
|
-
id:
|
|
110
|
+
url: "https://opencode.ai/zen/v1",
|
|
111
|
+
id: "opencode/big-pickle",
|
|
112
112
|
apiKey: process.env.OPENCODE_API_KEY,
|
|
113
113
|
headers: {
|
|
114
|
-
|
|
115
|
-
}
|
|
116
|
-
}
|
|
117
|
-
})
|
|
114
|
+
"X-Custom-Header": "value"
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
});
|
|
118
118
|
```
|
|
119
119
|
|
|
120
120
|
### Dynamic model selection
|
|
121
121
|
|
|
122
122
|
```typescript
|
|
123
123
|
const agent = new Agent({
|
|
124
|
-
id:
|
|
125
|
-
name:
|
|
124
|
+
id: "dynamic-agent",
|
|
125
|
+
name: "Dynamic Agent",
|
|
126
126
|
model: ({ requestContext }) => {
|
|
127
|
-
const useAdvanced = requestContext.task ===
|
|
128
|
-
return useAdvanced
|
|
129
|
-
|
|
130
|
-
|
|
127
|
+
const useAdvanced = requestContext.task === "complex";
|
|
128
|
+
return useAdvanced
|
|
129
|
+
? "opencode/trinity-large-preview-free"
|
|
130
|
+
: "opencode/big-pickle";
|
|
131
|
+
}
|
|
132
|
+
});
|
|
131
133
|
```
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
# Pioneer
|
|
4
4
|
|
|
5
|
-
Access
|
|
5
|
+
Access 102 Pioneer models through Mastra's model router. Authentication is handled automatically using the `PIONEER_API_KEY` environment variable.
|
|
6
6
|
|
|
7
7
|
Learn more in the [Pioneer documentation](https://agent.pioneer.ai/llms.txt).
|
|
8
8
|
|
|
@@ -11,22 +11,22 @@ PIONEER_API_KEY=your-api-key
|
|
|
11
11
|
```
|
|
12
12
|
|
|
13
13
|
```typescript
|
|
14
|
-
import { Agent } from
|
|
14
|
+
import { Agent } from "@mastra/core/agent";
|
|
15
15
|
|
|
16
16
|
const agent = new Agent({
|
|
17
|
-
id:
|
|
18
|
-
name:
|
|
19
|
-
instructions:
|
|
20
|
-
model:
|
|
21
|
-
})
|
|
17
|
+
id: "my-agent",
|
|
18
|
+
name: "My Agent",
|
|
19
|
+
instructions: "You are a helpful assistant",
|
|
20
|
+
model: "pioneer/HuggingFaceTB/SmolLM3-3B-Base"
|
|
21
|
+
});
|
|
22
22
|
|
|
23
23
|
// Generate a response
|
|
24
|
-
const response = await agent.generate(
|
|
24
|
+
const response = await agent.generate("Hello!");
|
|
25
25
|
|
|
26
26
|
// Stream a response
|
|
27
|
-
const stream = await agent.stream(
|
|
27
|
+
const stream = await agent.stream("Tell me a story");
|
|
28
28
|
for await (const chunk of stream) {
|
|
29
|
-
console.log(chunk)
|
|
29
|
+
console.log(chunk);
|
|
30
30
|
}
|
|
31
31
|
```
|
|
32
32
|
|
|
@@ -36,16 +36,23 @@ for await (const chunk of stream) {
|
|
|
36
36
|
|
|
37
37
|
| Model | Context | Tools | Reasoning | Image | Audio | Video | Input $/1M | Output $/1M |
|
|
38
38
|
| ------------------------------------------------------- | ------- | ----- | --------- | ----- | ----- | ----- | ---------- | ----------- |
|
|
39
|
+
| `pioneer/claude-3-7-sonnet-latest` | 1.0M | | | | | | $3 | $15 |
|
|
40
|
+
| `pioneer/claude-fable-5` | 1.0M | | | | | | $11 | $55 |
|
|
39
41
|
| `pioneer/claude-haiku-4-5` | 200K | | | | | | $1 | $5 |
|
|
40
42
|
| `pioneer/claude-opus-4-1` | 200K | | | | | | $15 | $75 |
|
|
41
43
|
| `pioneer/claude-opus-4-5` | 200K | | | | | | $5 | $25 |
|
|
42
44
|
| `pioneer/claude-opus-4-6` | 1.0M | | | | | | $5 | $25 |
|
|
43
45
|
| `pioneer/claude-opus-4-7` | 1.0M | | | | | | $5 | $25 |
|
|
44
46
|
| `pioneer/claude-opus-4-8` | 1.0M | | | | | | $5 | $25 |
|
|
47
|
+
| `pioneer/claude-opus-5` | 1.0M | | | | | | $5 | $25 |
|
|
45
48
|
| `pioneer/claude-sonnet-4-5` | 1.0M | | | | | | $3 | $15 |
|
|
46
49
|
| `pioneer/claude-sonnet-4-6` | 1.0M | | | | | | $3 | $15 |
|
|
50
|
+
| `pioneer/claude-sonnet-5` | 1.0M | | | | | | $2 | $10 |
|
|
51
|
+
| `pioneer/deepseek-ai/DeepSeek-V3` | 164K | | | | | | $0.27 | $1 |
|
|
52
|
+
| `pioneer/deepseek-ai/DeepSeek-V3.1` | 164K | | | | | | $0.56 | $2 |
|
|
47
53
|
| `pioneer/deepseek-ai/DeepSeek-V4-Flash` | 1.0M | | | | | | $0.10 | $0.20 |
|
|
48
54
|
| `pioneer/deepseek-ai/DeepSeek-V4-Pro` | 1.0M | | | | | | $0.43 | $0.87 |
|
|
55
|
+
| `pioneer/devstral-2` | 256K | | | | | | $0.40 | $2 |
|
|
49
56
|
| `pioneer/fastino/gliguard-LLMGuardrails-300M` | 8K | | | | | | $0.15 | $0.15 |
|
|
50
57
|
| `pioneer/fastino/gliner2-base-v1` | 8K | | | | | | $0.15 | $0.15 |
|
|
51
58
|
| `pioneer/fastino/gliner2-large-v1` | 8K | | | | | | $0.15 | $0.15 |
|
|
@@ -53,8 +60,11 @@ for await (const chunk of stream) {
|
|
|
53
60
|
| `pioneer/fastino/gliner2-multi-v1` | 8K | | | | | | $0.15 | $0.15 |
|
|
54
61
|
| `pioneer/fastino/gliner2-privacy-filter-PII-multi` | 8K | | | | | | $0.15 | $0.15 |
|
|
55
62
|
| `pioneer/gemini-3-flash` | 1.0M | | | | | | $0.50 | $3 |
|
|
63
|
+
| `pioneer/gemini-3.1-flash-lite` | 1.0M | | | | | | $0.25 | $2 |
|
|
56
64
|
| `pioneer/gemini-3.1-pro` | 1.0M | | | | | | $2 | $12 |
|
|
57
65
|
| `pioneer/gemini-3.5-flash` | 1.0M | | | | | | $2 | $9 |
|
|
66
|
+
| `pioneer/gemini-3.5-flash-lite` | 1.0M | | | | | | $0.30 | $3 |
|
|
67
|
+
| `pioneer/gemini-3.6-flash` | 1.0M | | | | | | $2 | $8 |
|
|
58
68
|
| `pioneer/google/diffusiongemma-26B-A4B-it` | 262K | | | | | | $0.50 | $0.50 |
|
|
59
69
|
| `pioneer/google/gemma-3-4b-pt` | 33K | | | | | | $0.15 | $0.15 |
|
|
60
70
|
| `pioneer/google/gemma-4-12B-it` | 33K | | | | | | $0.25 | $0.25 |
|
|
@@ -74,27 +84,43 @@ for await (const chunk of stream) {
|
|
|
74
84
|
| `pioneer/gpt-5.4-mini` | 400K | | | | | | $0.75 | $5 |
|
|
75
85
|
| `pioneer/gpt-5.4-nano` | 1.0M | | | | | | $0.20 | $1 |
|
|
76
86
|
| `pioneer/gpt-5.5` | 1.1M | | | | | | $5 | $30 |
|
|
87
|
+
| `pioneer/gpt-5.6-luna` | 1.1M | | | | | | $1 | $6 |
|
|
88
|
+
| `pioneer/gpt-5.6-sol` | 1.1M | | | | | | $5 | $30 |
|
|
89
|
+
| `pioneer/gpt-5.6-terra` | 1.1M | | | | | | $3 | $15 |
|
|
90
|
+
| `pioneer/grok-4.5` | 500K | | | | | | $2 | $6 |
|
|
77
91
|
| `pioneer/HuggingFaceTB/SmolLM3-3B-Base` | 33K | | | | | | $0.15 | $0.15 |
|
|
78
92
|
| `pioneer/LiquidAI/LFM2-24B-A2B` | 33K | | | | | | $0.03 | $0.12 |
|
|
79
93
|
| `pioneer/meta-llama/Llama-3.1-8B-Instruct` | 131K | | | | | | $0.20 | $0.20 |
|
|
94
|
+
| `pioneer/meta-llama/Llama-3.2-1B` | 131K | | | | | | $0.10 | $0.10 |
|
|
80
95
|
| `pioneer/meta-llama/Llama-3.2-1B-Instruct` | 131K | | | | | | $0.10 | $0.20 |
|
|
96
|
+
| `pioneer/meta-llama/Llama-3.2-3B` | 131K | | | | | | $0.10 | $0.10 |
|
|
81
97
|
| `pioneer/meta-llama/Llama-3.2-3B-Instruct` | 131K | | | | | | $0.10 | $0.34 |
|
|
82
98
|
| `pioneer/meta-llama/Llama-3.3-70B-Instruct` | 131K | | | | | | $0.90 | $0.90 |
|
|
99
|
+
| `pioneer/meta/muse-spark-1.1` | 1.0M | | | | | | $1 | $4 |
|
|
83
100
|
| `pioneer/MiniMaxAI/MiniMax-M2.7` | 205K | | | | | | $0.28 | $1 |
|
|
84
101
|
| `pioneer/MiniMaxAI/MiniMax-M3` | 1.0M | | | | | | $0.30 | $1 |
|
|
102
|
+
| `pioneer/mistral-large-3` | 256K | | | | | | $0.50 | $2 |
|
|
85
103
|
| `pioneer/mistral-medium-3.5` | 262K | | | | | | $2 | $8 |
|
|
104
|
+
| `pioneer/mistralai/Codestral-22B-v0.1` | 128K | | | | | | $0.30 | $0.90 |
|
|
105
|
+
| `pioneer/mistralai/Magistral-Small-2506` | 128K | | | | | | $0.50 | $2 |
|
|
106
|
+
| `pioneer/mistralai/Ministral-8B-Instruct-2410` | 128K | | | | | | $0.15 | $0.15 |
|
|
86
107
|
| `pioneer/mistralai/Mistral-7B-Instruct-v0.3` | 33K | | | | | | $0.20 | $0.20 |
|
|
87
108
|
| `pioneer/mistralai/Mistral-Nemo-Instruct-2407` | 131K | | | | | | $0.02 | $0.03 |
|
|
88
109
|
| `pioneer/mistralai/Mistral-Small-4-119B-2603` | 262K | | | | | | $0.15 | $0.60 |
|
|
110
|
+
| `pioneer/mistralai/Pixtral-12B-2409` | 128K | | | | | | $0.15 | $0.15 |
|
|
89
111
|
| `pioneer/moonshotai/Kimi-K2.6` | 262K | | | | | | $0.95 | $4 |
|
|
90
112
|
| `pioneer/moonshotai/Kimi-K2.7-Code` | 262K | | | | | | $0.95 | $4 |
|
|
113
|
+
| `pioneer/moonshotai/Kimi-K3` | 1.0M | | | | | | $3 | $15 |
|
|
91
114
|
| `pioneer/nvidia/NVIDIA-Nemotron-3-Nano-30B-A3B-BF16` | 262K | | | | | | $0.05 | $0.20 |
|
|
92
115
|
| `pioneer/nvidia/NVIDIA-Nemotron-3-Super-120B-A12B-FP8` | 1.0M | | | | | | $0.09 | $0.45 |
|
|
93
116
|
| `pioneer/nvidia/NVIDIA-Nemotron-3-Ultra-550B-A55B-BF16` | 1.0M | | | | | | $0.50 | $3 |
|
|
94
117
|
| `pioneer/openai/gpt-oss-120b` | 131K | | | | | | $0.15 | $0.60 |
|
|
95
118
|
| `pioneer/openai/gpt-oss-20b` | 131K | | | | | | $0.07 | $0.30 |
|
|
96
119
|
| `pioneer/pioneer/auto` | 1.0M | | | | | | — | — |
|
|
120
|
+
| `pioneer/poolside/laguna-s-2.1` | 1.0M | | | | | | $0.10 | $0.20 |
|
|
121
|
+
| `pioneer/Qwen/Qwen2.5-Coder-0.5B` | 33K | | | | | | $0.10 | $0.10 |
|
|
97
122
|
| `pioneer/Qwen/Qwen3-1.7B-Base` | 33K | | | | | | $0.10 | $0.10 |
|
|
123
|
+
| `pioneer/Qwen/Qwen3-235B-A22B-Instruct-2507` | 262K | | | | | | $1 | $1 |
|
|
98
124
|
| `pioneer/Qwen/Qwen3-32B` | 131K | | | | | | $0.90 | $0.90 |
|
|
99
125
|
| `pioneer/Qwen/Qwen3-4B-Base` | 33K | | | | | | $0.15 | $0.15 |
|
|
100
126
|
| `pioneer/Qwen/Qwen3-4B-Instruct-2507` | 262K | | | | | | $0.20 | $0.20 |
|
|
@@ -119,28 +145,30 @@ for await (const chunk of stream) {
|
|
|
119
145
|
|
|
120
146
|
```typescript
|
|
121
147
|
const agent = new Agent({
|
|
122
|
-
id:
|
|
123
|
-
name:
|
|
148
|
+
id: "custom-agent",
|
|
149
|
+
name: "custom-agent",
|
|
124
150
|
model: {
|
|
125
|
-
url:
|
|
126
|
-
id:
|
|
151
|
+
url: "https://api.pioneer.ai/v1",
|
|
152
|
+
id: "pioneer/HuggingFaceTB/SmolLM3-3B-Base",
|
|
127
153
|
apiKey: process.env.PIONEER_API_KEY,
|
|
128
154
|
headers: {
|
|
129
|
-
|
|
130
|
-
}
|
|
131
|
-
}
|
|
132
|
-
})
|
|
155
|
+
"X-Custom-Header": "value"
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
});
|
|
133
159
|
```
|
|
134
160
|
|
|
135
161
|
### Dynamic model selection
|
|
136
162
|
|
|
137
163
|
```typescript
|
|
138
164
|
const agent = new Agent({
|
|
139
|
-
id:
|
|
140
|
-
name:
|
|
165
|
+
id: "dynamic-agent",
|
|
166
|
+
name: "Dynamic Agent",
|
|
141
167
|
model: ({ requestContext }) => {
|
|
142
|
-
const useAdvanced = requestContext.task ===
|
|
143
|
-
return useAdvanced
|
|
144
|
-
|
|
145
|
-
|
|
168
|
+
const useAdvanced = requestContext.task === "complex";
|
|
169
|
+
return useAdvanced
|
|
170
|
+
? "pioneer/zai-org/GLM-5.2"
|
|
171
|
+
: "pioneer/HuggingFaceTB/SmolLM3-3B-Base";
|
|
172
|
+
}
|
|
173
|
+
});
|
|
146
174
|
```
|
|
@@ -11,22 +11,22 @@ REQUESTY_API_KEY=your-api-key
|
|
|
11
11
|
```
|
|
12
12
|
|
|
13
13
|
```typescript
|
|
14
|
-
import { Agent } from
|
|
14
|
+
import { Agent } from "@mastra/core/agent";
|
|
15
15
|
|
|
16
16
|
const agent = new Agent({
|
|
17
|
-
id:
|
|
18
|
-
name:
|
|
19
|
-
instructions:
|
|
20
|
-
model:
|
|
21
|
-
})
|
|
17
|
+
id: "my-agent",
|
|
18
|
+
name: "My Agent",
|
|
19
|
+
instructions: "You are a helpful assistant",
|
|
20
|
+
model: "requesty/claude-fable-5"
|
|
21
|
+
});
|
|
22
22
|
|
|
23
23
|
// Generate a response
|
|
24
|
-
const response = await agent.generate(
|
|
24
|
+
const response = await agent.generate("Hello!");
|
|
25
25
|
|
|
26
26
|
// Stream a response
|
|
27
|
-
const stream = await agent.stream(
|
|
27
|
+
const stream = await agent.stream("Tell me a story");
|
|
28
28
|
for await (const chunk of stream) {
|
|
29
|
-
console.log(chunk)
|
|
29
|
+
console.log(chunk);
|
|
30
30
|
}
|
|
31
31
|
```
|
|
32
32
|
|
|
@@ -90,28 +90,30 @@ for await (const chunk of stream) {
|
|
|
90
90
|
|
|
91
91
|
```typescript
|
|
92
92
|
const agent = new Agent({
|
|
93
|
-
id:
|
|
94
|
-
name:
|
|
93
|
+
id: "custom-agent",
|
|
94
|
+
name: "custom-agent",
|
|
95
95
|
model: {
|
|
96
|
-
url:
|
|
97
|
-
id:
|
|
96
|
+
url: "https://router.requesty.ai/v1",
|
|
97
|
+
id: "requesty/claude-fable-5",
|
|
98
98
|
apiKey: process.env.REQUESTY_API_KEY,
|
|
99
99
|
headers: {
|
|
100
|
-
|
|
101
|
-
}
|
|
102
|
-
}
|
|
103
|
-
})
|
|
100
|
+
"X-Custom-Header": "value"
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
});
|
|
104
104
|
```
|
|
105
105
|
|
|
106
106
|
### Dynamic model selection
|
|
107
107
|
|
|
108
108
|
```typescript
|
|
109
109
|
const agent = new Agent({
|
|
110
|
-
id:
|
|
111
|
-
name:
|
|
110
|
+
id: "dynamic-agent",
|
|
111
|
+
name: "Dynamic Agent",
|
|
112
112
|
model: ({ requestContext }) => {
|
|
113
|
-
const useAdvanced = requestContext.task ===
|
|
114
|
-
return useAdvanced
|
|
115
|
-
|
|
116
|
-
|
|
113
|
+
const useAdvanced = requestContext.task === "complex";
|
|
114
|
+
return useAdvanced
|
|
115
|
+
? "requesty/o4-mini@eu"
|
|
116
|
+
: "requesty/claude-fable-5";
|
|
117
|
+
}
|
|
118
|
+
});
|
|
117
119
|
```
|
|
@@ -11,22 +11,22 @@ ROUTING_RUN_API_KEY=your-api-key
|
|
|
11
11
|
```
|
|
12
12
|
|
|
13
13
|
```typescript
|
|
14
|
-
import { Agent } from
|
|
14
|
+
import { Agent } from "@mastra/core/agent";
|
|
15
15
|
|
|
16
16
|
const agent = new Agent({
|
|
17
|
-
id:
|
|
18
|
-
name:
|
|
19
|
-
instructions:
|
|
20
|
-
model:
|
|
21
|
-
})
|
|
17
|
+
id: "my-agent",
|
|
18
|
+
name: "My Agent",
|
|
19
|
+
instructions: "You are a helpful assistant",
|
|
20
|
+
model: "routing-run/claude-opus-4-8"
|
|
21
|
+
});
|
|
22
22
|
|
|
23
23
|
// Generate a response
|
|
24
|
-
const response = await agent.generate(
|
|
24
|
+
const response = await agent.generate("Hello!");
|
|
25
25
|
|
|
26
26
|
// Stream a response
|
|
27
|
-
const stream = await agent.stream(
|
|
27
|
+
const stream = await agent.stream("Tell me a story");
|
|
28
28
|
for await (const chunk of stream) {
|
|
29
|
-
console.log(chunk)
|
|
29
|
+
console.log(chunk);
|
|
30
30
|
}
|
|
31
31
|
```
|
|
32
32
|
|
|
@@ -58,28 +58,30 @@ for await (const chunk of stream) {
|
|
|
58
58
|
|
|
59
59
|
```typescript
|
|
60
60
|
const agent = new Agent({
|
|
61
|
-
id:
|
|
62
|
-
name:
|
|
61
|
+
id: "custom-agent",
|
|
62
|
+
name: "custom-agent",
|
|
63
63
|
model: {
|
|
64
|
-
url:
|
|
65
|
-
id:
|
|
64
|
+
url: "https://api.routing.run/v1",
|
|
65
|
+
id: "routing-run/claude-opus-4-8",
|
|
66
66
|
apiKey: process.env.ROUTING_RUN_API_KEY,
|
|
67
67
|
headers: {
|
|
68
|
-
|
|
69
|
-
}
|
|
70
|
-
}
|
|
71
|
-
})
|
|
68
|
+
"X-Custom-Header": "value"
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
});
|
|
72
72
|
```
|
|
73
73
|
|
|
74
74
|
### Dynamic model selection
|
|
75
75
|
|
|
76
76
|
```typescript
|
|
77
77
|
const agent = new Agent({
|
|
78
|
-
id:
|
|
79
|
-
name:
|
|
78
|
+
id: "dynamic-agent",
|
|
79
|
+
name: "Dynamic Agent",
|
|
80
80
|
model: ({ requestContext }) => {
|
|
81
|
-
const useAdvanced = requestContext.task ===
|
|
82
|
-
return useAdvanced
|
|
83
|
-
|
|
84
|
-
|
|
81
|
+
const useAdvanced = requestContext.task === "complex";
|
|
82
|
+
return useAdvanced
|
|
83
|
+
? "routing-run/qwen3.5-9b"
|
|
84
|
+
: "routing-run/claude-opus-4-8";
|
|
85
|
+
}
|
|
86
|
+
});
|
|
85
87
|
```
|
|
@@ -11,22 +11,22 @@ SCX_API_KEY=your-api-key
|
|
|
11
11
|
```
|
|
12
12
|
|
|
13
13
|
```typescript
|
|
14
|
-
import { Agent } from
|
|
14
|
+
import { Agent } from "@mastra/core/agent";
|
|
15
15
|
|
|
16
16
|
const agent = new Agent({
|
|
17
|
-
id:
|
|
18
|
-
name:
|
|
19
|
-
instructions:
|
|
20
|
-
model:
|
|
21
|
-
})
|
|
17
|
+
id: "my-agent",
|
|
18
|
+
name: "My Agent",
|
|
19
|
+
instructions: "You are a helpful assistant",
|
|
20
|
+
model: "scx/MiniMax-M2.7"
|
|
21
|
+
});
|
|
22
22
|
|
|
23
23
|
// Generate a response
|
|
24
|
-
const response = await agent.generate(
|
|
24
|
+
const response = await agent.generate("Hello!");
|
|
25
25
|
|
|
26
26
|
// Stream a response
|
|
27
|
-
const stream = await agent.stream(
|
|
27
|
+
const stream = await agent.stream("Tell me a story");
|
|
28
28
|
for await (const chunk of stream) {
|
|
29
|
-
console.log(chunk)
|
|
29
|
+
console.log(chunk);
|
|
30
30
|
}
|
|
31
31
|
```
|
|
32
32
|
|
|
@@ -45,28 +45,30 @@ for await (const chunk of stream) {
|
|
|
45
45
|
|
|
46
46
|
```typescript
|
|
47
47
|
const agent = new Agent({
|
|
48
|
-
id:
|
|
49
|
-
name:
|
|
48
|
+
id: "custom-agent",
|
|
49
|
+
name: "custom-agent",
|
|
50
50
|
model: {
|
|
51
|
-
url:
|
|
52
|
-
id:
|
|
51
|
+
url: "https://api.scx.ai/v1",
|
|
52
|
+
id: "scx/MiniMax-M2.7",
|
|
53
53
|
apiKey: process.env.SCX_API_KEY,
|
|
54
54
|
headers: {
|
|
55
|
-
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
})
|
|
55
|
+
"X-Custom-Header": "value"
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
});
|
|
59
59
|
```
|
|
60
60
|
|
|
61
61
|
### Dynamic model selection
|
|
62
62
|
|
|
63
63
|
```typescript
|
|
64
64
|
const agent = new Agent({
|
|
65
|
-
id:
|
|
66
|
-
name:
|
|
65
|
+
id: "dynamic-agent",
|
|
66
|
+
name: "Dynamic Agent",
|
|
67
67
|
model: ({ requestContext }) => {
|
|
68
|
-
const useAdvanced = requestContext.task ===
|
|
69
|
-
return useAdvanced
|
|
70
|
-
|
|
71
|
-
|
|
68
|
+
const useAdvanced = requestContext.task === "complex";
|
|
69
|
+
return useAdvanced
|
|
70
|
+
? "scx/gpt-oss-120b"
|
|
71
|
+
: "scx/MiniMax-M2.7";
|
|
72
|
+
}
|
|
73
|
+
});
|
|
72
74
|
```
|