Skip to content

v0.8.0

Latest

Choose a tag to compare

@VeskeR VeskeR released this 14 Aug 15:26
· 10 commits to main since this release

Full Changelog: 0.7.0...0.8.0

This release adds support for Vercel AI SDK v7: the ai peer range widens to ^6 || ^7, and v6 keeps working. It also adds a Temporal integration, via a Temporal plugin, that enables you to easily publish and subscribe to a durable session, without hand-writing the run lifecycle: opening a run, suspending it for client input, ending it, and cleaning up when a turn fails. The release also includes a number of other improvements; see the full details below.

New Features

  • Vercel AI SDK v7 support. The ai peer dependency range widens to ^6 || ^7. ChatTransport, the codec's public types, and the wire format are unchanged across the two majors, so v6 keeps working. #298
  • Temporal plugin. createAblyTransportPlugin() from @ably/ai-transport/temporal is a Temporal plugin that registers the run-framing activities (openRun, endRun, suspendRun, cleanupRun) on a worker. The new @ably/ai-transport/temporal/workflow entry point proxies them as withRun(invocation, body). See the guide. #297
  • withAgentSession(options, body) scaffolds one unit of durable work: it creates an agent session for an invocation, connects, runs body, and detaches on both success and failure - so a run the body leaves open stays adoptable by the next attempt. @ably/ai-transport/vercel exports a codec-pre-bound wrapper. #297
  • pageUntilLocated(run, options) pages channel history backwards only until a freshly opened run's trigger event folds in, rather than draining the conversation, so opening a turn costs about one history page whatever the conversation's length. #297