shipfeedAI news, curated daily

00:38:19 CET
21 MAY00:38:19shipfeed
pull to refreshlast sync
Just in — 30 new
§ tools · storyline

Vercel AI SDK — ai v7.0.0-canary.134

Vercel AI SDK v7.0.0-canary.134 fixes optional `input` on error tool parts, adds performance statistics, resolves tool-result file URL downloads, and renames a telemetry hook.

May 13 · · primary fetch1 sourceupdated May 13 ·

Patch Changes ed74dae: fix(ui): make `input` optional on `output-error` tool and dynamic-tool UI message parts `validateUIMessages` rejected persisted assistant messages whose `output-error` tool parts had no `input` key. This happened for any errored tool call where the SDK set `input: undefined` (e.g. `NoSuchToolError` / `InvalidToolInputError`): JSON serialization stripped the `undefined` value, and Zod 4.4+ treats a missing `z.unknown()` key as a validation failure (previously it was implicitly optional).

The schema now matches the runtime shape produced by `process-ui-message-stream`, so reloading a thread that contains an errored tool call no longer throws `AI_TypeValidationError`. f4cc8eb: feat: add performance statistics e80ada0: fix(ai): download tool-result file URLs 1dca341: fix: rename telemetry onFinish to onEnd 2605e5f: fix test mocks to return the first array-backed result on the first call

read full article on github.com
§ sources1 publication · timeline below
  1. github.comVercel AI SDK — ai v7.0.0-canary.134primary