ai icon indicating copy to clipboard operation
ai copied to clipboard

BUG: tool type has changed and inputSchema is no longer recognized

Open gabrieljbaker opened this issue 1 year ago • 3 comments

Description

After upgrading from beta 2.0.0-beta.1 to 2.0.0-beta.15 , my tool calling is broken and I'm told that inputSchema does not exist on the tool type anymore - it wants me to go back to using parameters. All of the v5 documentation says to use inputSchema, bu that doesn't work in the latest beta version. What will it be moving forward - inputSchema or parameters?

AI SDK Version

ai: 2.0.0-beta.15

gabrieljbaker avatar Jul 11 '25 16:07 gabrieljbaker

By removing package-lock.json and node_modules folder and and removing @ai-sdk/openai @ai-sdk/react @ai-sdk/react from package.json and install them using npm install @ai-sdk/openai@beta @ai-sdk/react@beta ai@beta, it will fix

iborqe avatar Jul 12 '25 11:07 iborqe

@gabrieljbaker can you provide the code that is failing for you and the error?

lgrammel avatar Jul 14 '25 07:07 lgrammel

Identify issue type

Identified as Bug
Confidence: Medium

Rationale

This is presented as a concrete type/API failure after an SDK upgrade, conflicting with documented v5 behavior. Although dependency-version mismatch may be the cause and reproduction details are still needed, the reported symptom is broken existing behavior rather than solely a documentation request.

Evidence

  • After upgrading from 2.0.0-beta.1 to 2.0.0-beta.15, the reported tool type rejects inputSchema and expects parameters.
  • The reported type behavior contradicts the v5 documentation, which uses inputSchema.
  • A commenter suggests the failure may result from mismatched beta package versions and can be fixed by reinstalling all related @beta packages; a maintainer requested failing code and the exact error.

lgrammel avatar Jul 22 '26 14:07 lgrammel