kopia lustrzana https://github.com/transitive-bullshit/chatgpt-api
feat: update toolConfigs.examples.name to be optional
rodzic
32e1d92a2a
commit
2b74b90b54
|
@ -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"
|
||||||
],
|
],
|
||||||
|
|
|
@ -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
|
|
||||||
}
|
|
||||||
]
|
|
||||||
})
|
})
|
||||||
|
|
|
@ -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.` */
|
||||||
|
|
Ładowanie…
Reference in New Issue