From 8454452476faf109f0dd457aa32b808a463e571f Mon Sep 17 00:00:00 2001 From: Ajax Davis Date: Thu, 4 Dec 2025 12:34:32 +1000 Subject: [PATCH] fix: use inputSchema instead of parameters for AI SDK v6 tool MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Changed debug logging to access inputSchema property which exists on AI SDK v6 tools, instead of parameters which doesn't exist. This fixes the TypeScript build error. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- apps/playground/src/app/api/chat/route.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/playground/src/app/api/chat/route.ts b/apps/playground/src/app/api/chat/route.ts index 6a8a56e..77cca9a 100644 --- a/apps/playground/src/app/api/chat/route.ts +++ b/apps/playground/src/app/api/chat/route.ts @@ -56,7 +56,7 @@ export async function POST(request: NextRequest) { // Debug: Check the search tool structure console.log('🔍 Search tool structure:', { description: searchTpmjsToolsTool.description, - parameters: typeof searchTpmjsToolsTool.parameters, + inputSchema: typeof searchTpmjsToolsTool.inputSchema, execute: typeof searchTpmjsToolsTool.execute, });