BUG: tool type has changed and inputSchema is no longer recognized
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
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
@gabrieljbaker can you provide the code that is failing for you and the error?
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
inputSchemaand expectsparameters. - 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
@betapackages; a maintainer requested failing code and the exact error.