diff --git a/apps/web/public/schema.json b/apps/web/public/schema.json index 5806b1aa..b696d482 100644 --- a/apps/web/public/schema.json +++ b/apps/web/public/schema.json @@ -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" ], diff --git a/fixtures/valid/basic-mcp/agentic.config.ts b/fixtures/valid/basic-mcp/agentic.config.ts index 6ddfe866..6f84c8ff 100644 --- a/fixtures/valid/basic-mcp/agentic.config.ts +++ b/fixtures/valid/basic-mcp/agentic.config.ts @@ -5,12 +5,5 @@ export default defineConfig({ origin: { type: 'mcp', url: 'https://agentic-basic-mcp-test.onrender.com/mcp' - }, - - toolConfigs: [ - { - name: 'add', - pure: true - } - ] + } }) diff --git a/packages/types/src/openapi.d.ts b/packages/types/src/openapi.d.ts index 40990a8a..fed84a6d 100644 --- a/packages/types/src/openapi.d.ts +++ b/packages/types/src/openapi.d.ts @@ -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.` */