Skip to content

Restructure AI Transport docs around concepts#3343

Merged
zknill merged 4 commits intomainfrom
zak/fix-ait-docs-concepts-getting-started
Apr 20, 2026
Merged

Restructure AI Transport docs around concepts#3343
zknill merged 4 commits intomainfrom
zak/fix-ait-docs-concepts-getting-started

Conversation

@zknill
Copy link
Copy Markdown
Contributor

@zknill zknill commented Apr 16, 2026

Replace the "How it works" section with a dedicated "Concepts" section containing five pages: Sessions, Messages and conversation tree, Turns, Transport, and Authentication. These pages explain AI Transport's conceptual model (sessions, the conversation tree, turn lifecycle, client/agent transports, and the codec) as logical entities rather than code walkthroughs.

Merge the "Framework guides" section into "Getting started" so all Vercel AI SDK content lives on a single page. Add a new "Core SDK" getting started page for using AI Transport's generic React hooks without a framework wrapper.

Strengthen the "Why" page with clearer durable session properties (resilient delivery, continuity across surfaces, live control) and update the overview page with a Core SDK tile.

Update cross-references across all 16 feature pages to point to the new concepts paths. Add redirects from all old URLs.

@zknill zknill requested a review from mschristensen April 16, 2026 16:11
@coderabbitai
Copy link
Copy Markdown

coderabbitai bot commented Apr 16, 2026

Important

Review skipped

Auto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro

Run ID: b53fe410-f9c8-4e85-8dfd-9c1561637b72

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch zak/fix-ait-docs-concepts-getting-started

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@rainbowFi rainbowFi added the review-app Create a Heroku review app label Apr 17, 2026
@ably-ci ably-ci temporarily deployed to ably-docs-zak-fix-ait-d-rd8srk April 17, 2026 08:48 Inactive
@ably-ci ably-ci temporarily deployed to ably-docs-zak-fix-ait-d-rd8srk April 17, 2026 10:40 Inactive
@zknill
Copy link
Copy Markdown
Contributor Author

zknill commented Apr 17, 2026

@rainbowFi I've made extra changes:

  1. Re-added the framework guide for vercel, but made it actually good
  2. Fixed all the code api references and code examples (which were basically all entirely wrong).

This is ofc not the 'final destination' for these docs, but there is a LOT on the website that is currently just-plain-wrong. So I think this is a "if this PR is broadly fine, lets merge and iterate" kind of situation rather than expecting to 1-shot perfection (not that that's what you've been arguing for 🙇 ). 🙏

@@ -0,0 +1,251 @@
---
title: "Get started with the Core SDK"
Copy link
Copy Markdown
Contributor

@rainbowFi rainbowFi Apr 17, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Based on the code, I think this is about using Vercel AI SDK Core to interact with the LLM but retaining complete control of the interface between agent and client. Can you please make that clear throughout the text, so people don't think Ably is providing a Core SDK? Also needs a new title that includes Vercel, without clashing with the other Vercel article in the nav....

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Zak and I chatted, he's going to work on naming this to avoid the confusion I fell into :D

@ably-ci ably-ci temporarily deployed to ably-docs-zak-fix-ait-d-rd8srk April 17, 2026 15:07 Inactive
@zknill zknill requested a review from rainbowFi April 17, 2026 15:27
zknill added 4 commits April 20, 2026 14:14
Replace the "How it works" section with a dedicated "Concepts" section
containing five pages: Sessions, Messages and conversation tree, Turns,
Transport, and Authentication. These pages explain AI Transport's
conceptual model (sessions, the conversation tree, turn lifecycle,
client/agent transports, and the codec) as logical entities rather than
code walkthroughs.

Merge the "Framework guides" section into "Getting started" so all
Vercel AI SDK content lives on a single page. Add a new "Core SDK"
getting started page for using AI Transport's generic React hooks
without a framework wrapper.

Strengthen the "Why" page with clearer durable session properties
(resilient delivery, continuity across surfaces, live control) and
update the overview page with a Core SDK tile.

Update cross-references across all 16 feature pages to point to the
new concepts paths. Add redirects from all old URLs.
Restore the Framework guides nav section with a comprehensive
Vercel AI SDK guide that explains how the two SDKs integrate.
The guide covers Vercel concepts (streamText, UIMessage, useChat,
ChatTransport, tool calling), default transport limitations, what
AI Transport adds (codec, useChatTransport, useMessageSync, server
piping), how the layers fit together, integration paths, and what
capabilities the combination unlocks.

Replace the responsibilities table in the getting-started page
with a link to the framework guide, and update cross-references
between the two pages.
The React hooks changed from positional parameters to single
options objects. Update all docs to match:

- useView(transport, opts) -> useView({ transport, ...opts })
- useActiveTurns(transport) -> useActiveTurns({ transport })
- useClientTransport({ channel, codec }) ->
  useClientTransport({ channelName }) with TransportProvider
- useTree(transport) -> useTree({ transport })
- useCreateView(transport) -> useCreateView({ transport })
- useAblyMessages(transport) -> useAblyMessages({ transport })

Update API reference signatures, options tables, and inline
examples. Add missing properties to ActiveTurn
(optimisticMsgIds), TurnLifecycleEvent (parent, forkOf),
and NewTurnOptions (signal). Fix ChatTransportOptions table
that was conflating two distinct types.
Reframe the Core SDK getting-started page so it does not read
as a Vercel tutorial. Explain that streamText and UIMessageCodec
are swappable: any model inference approach works with a matching
codec. Use the core createServerTransport import with explicit
codec to show where a custom codec plugs in. Move Core SDK above
Vercel in the nav. Add Ably provider explainer.
@zknill zknill force-pushed the zak/fix-ait-docs-concepts-getting-started branch from d8509a7 to ec91748 Compare April 20, 2026 13:15
@ably-ci ably-ci temporarily deployed to ably-docs-zak-fix-ait-d-rd8srk April 20, 2026 13:15 Inactive
@zknill zknill merged commit 69ad8a3 into main Apr 20, 2026
7 checks passed
@zknill zknill deleted the zak/fix-ait-docs-concepts-getting-started branch April 20, 2026 13:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

review-app Create a Heroku review app

Development

Successfully merging this pull request may close these issues.

3 participants