Skip to content

@tanstack/ai@0.66.0

Choose a tag to compare

@github-actions github-actions released this 08 Oct 16:10
· 191 commits to main since this release
Immutable release. Only release title and notes can be modified.
96191ea

Minor Changes

  • #1658 f687c54 - Breaking: chat({ stream: false }) and streamToText() now return a ChatResult with text and chunks, not a string. The chunks keep the tool calls and interrupt outcomes that the string lost. To migrate, change const text = await chat({ stream: false }) to const { text } = await chat({ stream: false }).

    Add a JSON transport for hosts that cannot stream a response. On the server, toJsonResponse() sends a run as one JSON body, and resumeJsonResponse() sends the rest of a durable run. On the client, the fetchJson() connection adapter reads that body and asks again until the run is done. Each framework package re-exports fetchJson.

Patch Changes

  • #1623 fb55bcb - Keep the internal subagent run id out of synthetic tool result content.

  • 630ec86 - Merge assistant segments that share a stable UI message ID after conversion.