@omnidim-ai/mcp-server 0.7.0 → 0.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/index.d.ts +1 -1
- package/build/index.js +1 -1
- package/build/procedures.js +135 -0
- package/build/procedures.js.map +1 -1
- package/package.json +1 -1
- package/src/index.ts +1 -1
- package/src/procedures.ts +138 -0
package/build/index.d.ts
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Server configuration
|
|
4
4
|
*/
|
|
5
5
|
export declare const SERVER_NAME = "OmniDimension";
|
|
6
|
-
export declare const SERVER_VERSION = "0.
|
|
6
|
+
export declare const SERVER_VERSION = "0.8.0";
|
|
7
7
|
export declare const API_BASE_URL = "https://backend.omnidim.io/api/v1";
|
|
8
8
|
/**
|
|
9
9
|
* Type definition for cached OAuth tokens
|
package/build/index.js
CHANGED
|
@@ -18,7 +18,7 @@ import axios from 'axios';
|
|
|
18
18
|
* Server configuration
|
|
19
19
|
*/
|
|
20
20
|
export const SERVER_NAME = "OmniDimension";
|
|
21
|
-
export const SERVER_VERSION = "0.
|
|
21
|
+
export const SERVER_VERSION = "0.8.0";
|
|
22
22
|
// Base URL for the API. Pinned to production; not env-overridable.
|
|
23
23
|
export const API_BASE_URL = "https://backend.omnidim.io/api/v1";
|
|
24
24
|
/**
|
package/build/procedures.js
CHANGED
|
@@ -51,6 +51,120 @@ give it a **phone number** and optionally a **knowledge base**, then place
|
|
|
51
51
|
\`phone_number_id\` to attach and as \`from_number_id\` to dispatch).
|
|
52
52
|
10. **Phone numbers are E.164 with a leading \`+\`** everywhere.
|
|
53
53
|
`;
|
|
54
|
+
// Provider recommendations by caller language, grounded in what works in
|
|
55
|
+
// production. Names match the createAgent enums (transcriber/voice/model).
|
|
56
|
+
const RECOMMENDED_STACK = `# Recommended provider stacks
|
|
57
|
+
|
|
58
|
+
Each agent uses a transcriber (speech-to-text), a voice (text-to-speech), and a
|
|
59
|
+
language model, all set on \`createAgent\`. The pairings below work well in
|
|
60
|
+
production, grouped by the language your callers speak. Use \`listSTTProviders\`,
|
|
61
|
+
\`listTTSProviders\`, \`listLLMProviders\`, and \`listVoices\` for the live catalog.
|
|
62
|
+
|
|
63
|
+
## Language model
|
|
64
|
+
|
|
65
|
+
- Default: \`gpt-4.1-mini\` — fast and accurate across languages, a good first
|
|
66
|
+
choice for almost any agent.
|
|
67
|
+
- Alternatives: \`gemini-2.5-flash\`, \`gpt-4o\` (premium), \`gpt-4.1-nano\` (lighter).
|
|
68
|
+
|
|
69
|
+
## By caller language
|
|
70
|
+
|
|
71
|
+
- **Indian English (en-IN):** transcriber \`azure_stream\`; voice \`cartesia\`
|
|
72
|
+
(default), \`eleven_labs\`, or \`google\`.
|
|
73
|
+
- **Hindi / Hinglish (mixed Hindi and English):** transcriber \`soniox\`
|
|
74
|
+
(handles code-mixed speech in one stream); voice \`cartesia\` or \`eleven_labs\`.
|
|
75
|
+
- **Other Indian languages (Telugu, Bengali, etc.):** transcriber \`soniox\` or
|
|
76
|
+
\`sarvam\` (tuned for Indian languages); voice \`cartesia\` or \`sarvam\`.
|
|
77
|
+
- **US / UK English:** transcriber \`azure_stream\` or \`deepgram_stream\`; voice
|
|
78
|
+
\`cartesia\` or \`eleven_labs\`.
|
|
79
|
+
|
|
80
|
+
## Field notes
|
|
81
|
+
|
|
82
|
+
- \`transcriber.provider\` is one of \`deepgram_stream\`, \`azure_stream\`,
|
|
83
|
+
\`soniox\`, \`sarvam\`, \`cartesia\`. \`deepgram_stream\` also needs a \`model\`
|
|
84
|
+
(\`nova-3\` or \`nova-2\`); the others do not.
|
|
85
|
+
- \`voice.provider\` is one of \`cartesia\`, \`eleven_labs\`, \`google\`,
|
|
86
|
+
\`sarvam\`. \`cartesia\` voices need a \`model\` such as \`sonic-3.5\`; for
|
|
87
|
+
\`eleven_labs\` the model is implied by the voice.
|
|
88
|
+
|
|
89
|
+
## Responsiveness
|
|
90
|
+
|
|
91
|
+
- Keep the system prompt focused. Long prompts add latency to every turn.
|
|
92
|
+
- Verify your chosen voice on a short test call before launch (see
|
|
93
|
+
\`omnidim://reference/voices\`).
|
|
94
|
+
`;
|
|
95
|
+
// How to choose a voice, with the synthesizable-voice gotcha and per-provider notes.
|
|
96
|
+
const VOICES_GUIDE = `# Choosing a voice
|
|
97
|
+
|
|
98
|
+
\`listVoices\` returns the catalog. Use a voice's \`name\` field as the
|
|
99
|
+
\`voice_id\` you pass to \`createAgent\`. Quality varies by language and not every
|
|
100
|
+
voice synthesizes cleanly, so always place a short test call and listen before
|
|
101
|
+
launch.
|
|
102
|
+
|
|
103
|
+
Filter \`listVoices\` by \`provider\` (\`cartesia\`, \`eleven_labs\`, \`google\`,
|
|
104
|
+
\`sarvam\`). ElevenLabs also supports \`language\`, \`accent\`, and \`gender\`.
|
|
105
|
+
|
|
106
|
+
By provider:
|
|
107
|
+
|
|
108
|
+
- **\`cartesia\`** — low-latency multilingual voices; the platform default. Pass a
|
|
109
|
+
\`model\` such as \`sonic-3.5\`. Example voice_id
|
|
110
|
+
\`bf0a246a-8642-498a-9950-80c35e9276b5\` ("Sophie", English female).
|
|
111
|
+
- **\`eleven_labs\`** — premium, expressive voices; the model is implied by the
|
|
112
|
+
voice. Example voice_id \`JBFqnCBsd6RMkjVDRZzb\` ("George").
|
|
113
|
+
- **\`sarvam\`** — natural prosody for Indian languages.
|
|
114
|
+
- **\`google\`** — broad language coverage.
|
|
115
|
+
`;
|
|
116
|
+
// The createAgent field shape with two complete, copy-ready examples.
|
|
117
|
+
const AGENT_CONFIG_GUIDE = `# Building an agent with createAgent
|
|
118
|
+
|
|
119
|
+
On this server \`createAgent\` wraps its payload in \`requestBody\` (see the
|
|
120
|
+
routing guide). The fields inside:
|
|
121
|
+
|
|
122
|
+
- \`name\` — agent name.
|
|
123
|
+
- \`welcome_message\` — the first line the agent speaks.
|
|
124
|
+
- \`context_breakdown\` — a list of \`{ title, body }\` sections that form the
|
|
125
|
+
agent's instructions.
|
|
126
|
+
- \`call_type\` — "Incoming" or "Outgoing".
|
|
127
|
+
- \`model\` — \`{ model, temperature? }\`, e.g. \`{ "model": "gpt-4.1-mini" }\`.
|
|
128
|
+
- \`voice\` — \`{ provider, voice_id, model? }\`. \`model\` (e.g. \`sonic-3.5\`)
|
|
129
|
+
is only needed for \`cartesia\`.
|
|
130
|
+
- \`transcriber\` — \`{ provider, model?, language? }\`. \`model\` (\`nova-3\` /
|
|
131
|
+
\`nova-2\`) is only needed for \`deepgram_stream\`.
|
|
132
|
+
|
|
133
|
+
## Example: Indian-English support agent (inbound)
|
|
134
|
+
|
|
135
|
+
{
|
|
136
|
+
"requestBody": {
|
|
137
|
+
"name": "Support agent",
|
|
138
|
+
"welcome_message": "Hi, thanks for calling. How can I help you today?",
|
|
139
|
+
"context_breakdown": [
|
|
140
|
+
{ "title": "Role", "body": "You are a friendly customer-support agent. Answer questions, and if you cannot help, offer to connect the caller to a human." }
|
|
141
|
+
],
|
|
142
|
+
"call_type": "Incoming",
|
|
143
|
+
"model": { "model": "gpt-4.1-mini" },
|
|
144
|
+
"voice": { "provider": "cartesia", "model": "sonic-3.5", "voice_id": "bf0a246a-8642-498a-9950-80c35e9276b5" },
|
|
145
|
+
"transcriber": { "provider": "azure_stream" }
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
## Example: Hindi / Hinglish appointment reminder (outbound)
|
|
150
|
+
|
|
151
|
+
{
|
|
152
|
+
"requestBody": {
|
|
153
|
+
"name": "Appointment reminder",
|
|
154
|
+
"welcome_message": "Namaste, main aapke appointment ke baare mein baat karne ke liye call kar rahi hoon.",
|
|
155
|
+
"context_breakdown": [
|
|
156
|
+
{ "title": "Role", "body": "You remind customers about an upcoming appointment and confirm whether they can attend. Speak naturally in the caller's language, Hindi or English." }
|
|
157
|
+
],
|
|
158
|
+
"call_type": "Outgoing",
|
|
159
|
+
"model": { "model": "gpt-4.1-mini" },
|
|
160
|
+
"voice": { "provider": "cartesia", "model": "sonic-3.5", "voice_id": "<pick one from listVoices>" },
|
|
161
|
+
"transcriber": { "provider": "soniox" }
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
Then give the agent a phone number and verify with a test call (the
|
|
166
|
+
\`provision_agent\` prompt walks through this end to end).
|
|
167
|
+
`;
|
|
54
168
|
const RESOURCES = [
|
|
55
169
|
{
|
|
56
170
|
uri: "omnidim://guide/routing",
|
|
@@ -59,6 +173,27 @@ const RESOURCES = [
|
|
|
59
173
|
mimeType: "text/markdown",
|
|
60
174
|
text: ROUTING_GUIDE,
|
|
61
175
|
},
|
|
176
|
+
{
|
|
177
|
+
uri: "omnidim://reference/recommended-stack",
|
|
178
|
+
name: "Recommended provider stacks by language",
|
|
179
|
+
description: "Which transcriber (STT), voice (TTS), and language model to choose, grouped by the caller's language. Reflects what works in production.",
|
|
180
|
+
mimeType: "text/markdown",
|
|
181
|
+
text: RECOMMENDED_STACK,
|
|
182
|
+
},
|
|
183
|
+
{
|
|
184
|
+
uri: "omnidim://reference/voices",
|
|
185
|
+
name: "Choosing a voice",
|
|
186
|
+
description: "How to pick a voice from listVoices (use the name as voice_id), per-provider notes, and the verify-on-a-test-call rule.",
|
|
187
|
+
mimeType: "text/markdown",
|
|
188
|
+
text: VOICES_GUIDE,
|
|
189
|
+
},
|
|
190
|
+
{
|
|
191
|
+
uri: "omnidim://reference/agent-config",
|
|
192
|
+
name: "Building an agent with createAgent",
|
|
193
|
+
description: "The createAgent field shape with two complete, copy-ready example configurations (Indian-English support, Hindi/Hinglish reminder).",
|
|
194
|
+
mimeType: "text/markdown",
|
|
195
|
+
text: AGENT_CONFIG_GUIDE,
|
|
196
|
+
},
|
|
62
197
|
];
|
|
63
198
|
const PROMPTS = [
|
|
64
199
|
{
|
package/build/procedures.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"procedures.js","sourceRoot":"","sources":["../src/procedures.ts"],"names":[],"mappings":"AAQA,OAAO,EACH,sBAAsB,EAC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I,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,GAAG,KAAK,OAAO,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC;QAC9D,IAAI,CAAC,CAAC;YAAE,MAAM,IAAI,KAAK,CAAC,qBAAqB,OAAO,CAAC,MAAM,CAAC,GAAG,EAAE,CAAC,CAAC;QACnE,OAAO,EAAE,QAAQ,EAAE,CAAC,EAAE,GAAG,EAAE,CAAC,CAAC,GAAG,EAAE,QAAQ,EAAE,CAAC,CAAC,QAAQ,EAAE,IAAI,EAAE,CAAC,CAAC,IAAI,EAAE,CAAC,EAAE,CAAC;IAC9E,CAAC,CAAC,CAAC;AACP,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@omnidim-ai/mcp-server",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.8.0",
|
|
4
4
|
"mcpName": "io.github.Omnidim/omnidim-mcp-server",
|
|
5
5
|
"description": "Official MCP server for OmniDimension. Drive voice agents, dispatch calls, and manage knowledge bases from Claude, Cursor, Windsurf, and any MCP client.",
|
|
6
6
|
"type": "module",
|
package/src/index.ts
CHANGED
|
@@ -47,7 +47,7 @@ interface McpToolDefinition {
|
|
|
47
47
|
* Server configuration
|
|
48
48
|
*/
|
|
49
49
|
export const SERVER_NAME = "OmniDimension";
|
|
50
|
-
export const SERVER_VERSION = "0.
|
|
50
|
+
export const SERVER_VERSION = "0.8.0";
|
|
51
51
|
// Base URL for the API. Pinned to production; not env-overridable.
|
|
52
52
|
export const API_BASE_URL = "https://backend.omnidim.io/api/v1";
|
|
53
53
|
|
package/src/procedures.ts
CHANGED
|
@@ -75,6 +75,123 @@ give it a **phone number** and optionally a **knowledge base**, then place
|
|
|
75
75
|
10. **Phone numbers are E.164 with a leading \`+\`** everywhere.
|
|
76
76
|
`;
|
|
77
77
|
|
|
78
|
+
// Provider recommendations by caller language, grounded in what works in
|
|
79
|
+
// production. Names match the createAgent enums (transcriber/voice/model).
|
|
80
|
+
const RECOMMENDED_STACK = `# Recommended provider stacks
|
|
81
|
+
|
|
82
|
+
Each agent uses a transcriber (speech-to-text), a voice (text-to-speech), and a
|
|
83
|
+
language model, all set on \`createAgent\`. The pairings below work well in
|
|
84
|
+
production, grouped by the language your callers speak. Use \`listSTTProviders\`,
|
|
85
|
+
\`listTTSProviders\`, \`listLLMProviders\`, and \`listVoices\` for the live catalog.
|
|
86
|
+
|
|
87
|
+
## Language model
|
|
88
|
+
|
|
89
|
+
- Default: \`gpt-4.1-mini\` — fast and accurate across languages, a good first
|
|
90
|
+
choice for almost any agent.
|
|
91
|
+
- Alternatives: \`gemini-2.5-flash\`, \`gpt-4o\` (premium), \`gpt-4.1-nano\` (lighter).
|
|
92
|
+
|
|
93
|
+
## By caller language
|
|
94
|
+
|
|
95
|
+
- **Indian English (en-IN):** transcriber \`azure_stream\`; voice \`cartesia\`
|
|
96
|
+
(default), \`eleven_labs\`, or \`google\`.
|
|
97
|
+
- **Hindi / Hinglish (mixed Hindi and English):** transcriber \`soniox\`
|
|
98
|
+
(handles code-mixed speech in one stream); voice \`cartesia\` or \`eleven_labs\`.
|
|
99
|
+
- **Other Indian languages (Telugu, Bengali, etc.):** transcriber \`soniox\` or
|
|
100
|
+
\`sarvam\` (tuned for Indian languages); voice \`cartesia\` or \`sarvam\`.
|
|
101
|
+
- **US / UK English:** transcriber \`azure_stream\` or \`deepgram_stream\`; voice
|
|
102
|
+
\`cartesia\` or \`eleven_labs\`.
|
|
103
|
+
|
|
104
|
+
## Field notes
|
|
105
|
+
|
|
106
|
+
- \`transcriber.provider\` is one of \`deepgram_stream\`, \`azure_stream\`,
|
|
107
|
+
\`soniox\`, \`sarvam\`, \`cartesia\`. \`deepgram_stream\` also needs a \`model\`
|
|
108
|
+
(\`nova-3\` or \`nova-2\`); the others do not.
|
|
109
|
+
- \`voice.provider\` is one of \`cartesia\`, \`eleven_labs\`, \`google\`,
|
|
110
|
+
\`sarvam\`. \`cartesia\` voices need a \`model\` such as \`sonic-3.5\`; for
|
|
111
|
+
\`eleven_labs\` the model is implied by the voice.
|
|
112
|
+
|
|
113
|
+
## Responsiveness
|
|
114
|
+
|
|
115
|
+
- Keep the system prompt focused. Long prompts add latency to every turn.
|
|
116
|
+
- Verify your chosen voice on a short test call before launch (see
|
|
117
|
+
\`omnidim://reference/voices\`).
|
|
118
|
+
`;
|
|
119
|
+
|
|
120
|
+
// How to choose a voice, with the synthesizable-voice gotcha and per-provider notes.
|
|
121
|
+
const VOICES_GUIDE = `# Choosing a voice
|
|
122
|
+
|
|
123
|
+
\`listVoices\` returns the catalog. Use a voice's \`name\` field as the
|
|
124
|
+
\`voice_id\` you pass to \`createAgent\`. Quality varies by language and not every
|
|
125
|
+
voice synthesizes cleanly, so always place a short test call and listen before
|
|
126
|
+
launch.
|
|
127
|
+
|
|
128
|
+
Filter \`listVoices\` by \`provider\` (\`cartesia\`, \`eleven_labs\`, \`google\`,
|
|
129
|
+
\`sarvam\`). ElevenLabs also supports \`language\`, \`accent\`, and \`gender\`.
|
|
130
|
+
|
|
131
|
+
By provider:
|
|
132
|
+
|
|
133
|
+
- **\`cartesia\`** — low-latency multilingual voices; the platform default. Pass a
|
|
134
|
+
\`model\` such as \`sonic-3.5\`. Example voice_id
|
|
135
|
+
\`bf0a246a-8642-498a-9950-80c35e9276b5\` ("Sophie", English female).
|
|
136
|
+
- **\`eleven_labs\`** — premium, expressive voices; the model is implied by the
|
|
137
|
+
voice. Example voice_id \`JBFqnCBsd6RMkjVDRZzb\` ("George").
|
|
138
|
+
- **\`sarvam\`** — natural prosody for Indian languages.
|
|
139
|
+
- **\`google\`** — broad language coverage.
|
|
140
|
+
`;
|
|
141
|
+
|
|
142
|
+
// The createAgent field shape with two complete, copy-ready examples.
|
|
143
|
+
const AGENT_CONFIG_GUIDE = `# Building an agent with createAgent
|
|
144
|
+
|
|
145
|
+
On this server \`createAgent\` wraps its payload in \`requestBody\` (see the
|
|
146
|
+
routing guide). The fields inside:
|
|
147
|
+
|
|
148
|
+
- \`name\` — agent name.
|
|
149
|
+
- \`welcome_message\` — the first line the agent speaks.
|
|
150
|
+
- \`context_breakdown\` — a list of \`{ title, body }\` sections that form the
|
|
151
|
+
agent's instructions.
|
|
152
|
+
- \`call_type\` — "Incoming" or "Outgoing".
|
|
153
|
+
- \`model\` — \`{ model, temperature? }\`, e.g. \`{ "model": "gpt-4.1-mini" }\`.
|
|
154
|
+
- \`voice\` — \`{ provider, voice_id, model? }\`. \`model\` (e.g. \`sonic-3.5\`)
|
|
155
|
+
is only needed for \`cartesia\`.
|
|
156
|
+
- \`transcriber\` — \`{ provider, model?, language? }\`. \`model\` (\`nova-3\` /
|
|
157
|
+
\`nova-2\`) is only needed for \`deepgram_stream\`.
|
|
158
|
+
|
|
159
|
+
## Example: Indian-English support agent (inbound)
|
|
160
|
+
|
|
161
|
+
{
|
|
162
|
+
"requestBody": {
|
|
163
|
+
"name": "Support agent",
|
|
164
|
+
"welcome_message": "Hi, thanks for calling. How can I help you today?",
|
|
165
|
+
"context_breakdown": [
|
|
166
|
+
{ "title": "Role", "body": "You are a friendly customer-support agent. Answer questions, and if you cannot help, offer to connect the caller to a human." }
|
|
167
|
+
],
|
|
168
|
+
"call_type": "Incoming",
|
|
169
|
+
"model": { "model": "gpt-4.1-mini" },
|
|
170
|
+
"voice": { "provider": "cartesia", "model": "sonic-3.5", "voice_id": "bf0a246a-8642-498a-9950-80c35e9276b5" },
|
|
171
|
+
"transcriber": { "provider": "azure_stream" }
|
|
172
|
+
}
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
## Example: Hindi / Hinglish appointment reminder (outbound)
|
|
176
|
+
|
|
177
|
+
{
|
|
178
|
+
"requestBody": {
|
|
179
|
+
"name": "Appointment reminder",
|
|
180
|
+
"welcome_message": "Namaste, main aapke appointment ke baare mein baat karne ke liye call kar rahi hoon.",
|
|
181
|
+
"context_breakdown": [
|
|
182
|
+
{ "title": "Role", "body": "You remind customers about an upcoming appointment and confirm whether they can attend. Speak naturally in the caller's language, Hindi or English." }
|
|
183
|
+
],
|
|
184
|
+
"call_type": "Outgoing",
|
|
185
|
+
"model": { "model": "gpt-4.1-mini" },
|
|
186
|
+
"voice": { "provider": "cartesia", "model": "sonic-3.5", "voice_id": "<pick one from listVoices>" },
|
|
187
|
+
"transcriber": { "provider": "soniox" }
|
|
188
|
+
}
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
Then give the agent a phone number and verify with a test call (the
|
|
192
|
+
\`provision_agent\` prompt walks through this end to end).
|
|
193
|
+
`;
|
|
194
|
+
|
|
78
195
|
const RESOURCES: ResourceDef[] = [
|
|
79
196
|
{
|
|
80
197
|
uri: "omnidim://guide/routing",
|
|
@@ -83,6 +200,27 @@ const RESOURCES: ResourceDef[] = [
|
|
|
83
200
|
mimeType: "text/markdown",
|
|
84
201
|
text: ROUTING_GUIDE,
|
|
85
202
|
},
|
|
203
|
+
{
|
|
204
|
+
uri: "omnidim://reference/recommended-stack",
|
|
205
|
+
name: "Recommended provider stacks by language",
|
|
206
|
+
description: "Which transcriber (STT), voice (TTS), and language model to choose, grouped by the caller's language. Reflects what works in production.",
|
|
207
|
+
mimeType: "text/markdown",
|
|
208
|
+
text: RECOMMENDED_STACK,
|
|
209
|
+
},
|
|
210
|
+
{
|
|
211
|
+
uri: "omnidim://reference/voices",
|
|
212
|
+
name: "Choosing a voice",
|
|
213
|
+
description: "How to pick a voice from listVoices (use the name as voice_id), per-provider notes, and the verify-on-a-test-call rule.",
|
|
214
|
+
mimeType: "text/markdown",
|
|
215
|
+
text: VOICES_GUIDE,
|
|
216
|
+
},
|
|
217
|
+
{
|
|
218
|
+
uri: "omnidim://reference/agent-config",
|
|
219
|
+
name: "Building an agent with createAgent",
|
|
220
|
+
description: "The createAgent field shape with two complete, copy-ready example configurations (Indian-English support, Hindi/Hinglish reminder).",
|
|
221
|
+
mimeType: "text/markdown",
|
|
222
|
+
text: AGENT_CONFIG_GUIDE,
|
|
223
|
+
},
|
|
86
224
|
];
|
|
87
225
|
|
|
88
226
|
const PROMPTS: PromptDef[] = [
|