deadcodefix

10 fewer lines. Same intent.

Docs changed. See what you can safely remove.

Step 1 of 5

A coding agent breaks after the Vercel AI SDK v4 → v6 update.

What changed

parameters→inputSchema
maxSteps: 5→stopWhen: stepCountIs(5)

Found by comparing the old and new versions of the official docs.

Details
- tool({ description, parameters: z.object({...}) })
+ tool({ description, inputSchema: z.object({...}) })
- generateText({ model, tools, maxSteps: 5 })
+ generateText({ model, tools, stopWhen: stepCountIs(5) })