feat: update toolConfigs.examples.name to be optional

pull/720/head
Travis Fischer 2025-07-07 16:06:47 -07:00
rodzic 32e1d92a2a
commit 2b74b90b54
3 zmienionych plików z 4 dodań i 12 usunięć

Wyświetl plik

@ -463,7 +463,7 @@
"properties": { "properties": {
"name": { "name": {
"type": "string", "type": "string",
"description": "The display name of the example." "description": "The display name of the example. If not given, defaults to `Example 1`, `Example 2`, etc."
}, },
"prompt": { "prompt": {
"type": "string", "type": "string",
@ -488,7 +488,6 @@
} }
}, },
"required": [ "required": [
"name",
"prompt", "prompt",
"args" "args"
], ],

Wyświetl plik

@ -5,12 +5,5 @@ export default defineConfig({
origin: { origin: {
type: 'mcp', type: 'mcp',
url: 'https://agentic-basic-mcp-test.onrender.com/mcp' url: 'https://agentic-basic-mcp-test.onrender.com/mcp'
}, }
toolConfigs: [
{
name: 'add',
pure: true
}
]
}) })

Wyświetl plik

@ -705,8 +705,8 @@ export interface components {
}; };
/** @description Examples of how to use this tool. Used to generate example usage in the tool's docs. */ /** @description Examples of how to use this tool. Used to generate example usage in the tool's docs. */
examples?: { examples?: {
/** @description The display name of the example. */ /** @description The display name of the example. If not given, defaults to `Example 1`, `Example 2`, etc. */
name: string; name?: string;
/** @description The input prompt for agents to use when running this example. */ /** @description The input prompt for agents to use when running this example. */
prompt: string; prompt: string;
/** @description An optional system prompt for agents to use when running this example. Defaults to `You are a helpful assistant. Be as concise as possible.` */ /** @description An optional system prompt for agents to use when running this example. Defaults to `You are a helpful assistant. Be as concise as possible.` */