You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+4-2Lines changed: 4 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -115,6 +115,8 @@ const config = {
115
115
systemPrompt: getPrompt("system.md"),
116
116
mcpServers: {
117
117
someMcpServer: {
118
+
description:
119
+
"A detailed description of the MCP server and its capabilities used to provide hints to inference agent",
118
120
command: "bunx",
119
121
args: ["..."],
120
122
prompt: getPrompt("someMcpServer.md"),
@@ -123,6 +125,8 @@ const config = {
123
125
}
124
126
```
125
127
128
+
The `description` field is **critical**; it's used by the inference routing agent to determine when to invoke the server or subagent.
129
+
126
130
#### Remote Prompts
127
131
128
132
Prompts can be loaded from remote sources (e.g., APIs) using `getRemotePrompt`. This enables dynamic prompt management where prompts are stored in a database or CMS rather than in files.
@@ -236,8 +240,6 @@ When a user asks something like "Analyze partner churn", the routing agent will:
236
240
2. Automatically connect to the required `salesforce` MCP server
237
241
3. Invoke the subagent with its specialized prompt and tools
238
242
239
-
The `description` field is **critical**; it's used by the routing agent to determine when to invoke the subagent.
240
-
241
243
**Note:** Subagents also support remote prompts via `getRemotePrompt`, allowing you to manage agent prompts dynamically from an API or database.
0 commit comments