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": {
"name": {
"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": {
"type": "string",
@ -488,7 +488,6 @@
}
},
"required": [
"name",
"prompt",
"args"
],

Wyświetl plik

@ -5,12 +5,5 @@ export default defineConfig({
origin: {
type: '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. */
examples?: {
/** @description The display name of the example. */
name: string;
/** @description The display name of the example. If not given, defaults to `Example 1`, `Example 2`, etc. */
name?: string;
/** @description The input prompt for agents to use when running this example. */
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.` */