Skip to content

docs(ai-transport): add OpenAI Responses codec pages#3488

Open
zknill wants to merge 3 commits into
mainfrom
zak/ait-1077-openai-codec-docs
Open

docs(ai-transport): add OpenAI Responses codec pages#3488
zknill wants to merge 3 commits into
mainfrom
zak/ait-1077-openai-codec-docs

Conversation

@zknill

@zknill zknill commented Jul 23, 2026

Copy link
Copy Markdown
Contributor

Add documentation for the OpenAI Responses codec (ResponsesCodec from @ably/ai-transport/openai) and reconcile the surrounding pages so none of them frame the Vercel codec as the only bundled codec.

  • Getting started > By SDK > OpenAI (new): a Next.js walkthrough that streams the OpenAI Responses event stream over a durable session using the generic createAgentSession and the core React hooks, with a stop button for cancellation and a second tab for multi-device sync.
  • Frameworks > OpenAI (new): what the Responses API brings, what AI Transport adds, the run.pipe connection point (with a before/after that contrasts the hand-rolled SSE response against run.pipe(stream)), and the server-side tool loop.
  • Nav: add both pages to aitransport.ts. OpenAI sits first under "By SDK" and first under "Frameworks".
  • Codecs concept + Why overview: note that the SDK bundles a Vercel codec and a ResponsesCodec, add an OpenAI "Read next" link, and correct the codecs intro from "an OpenAI completion" to "an OpenAI Responses event".
  • Remove the now-stale getting-started/openai redirect from the Vercel AI SDK page, since that path now resolves to a real page.

@coderabbitai

coderabbitai Bot commented Jul 23, 2026

Copy link
Copy Markdown

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 Plus

Run ID: c77022c1-bd62-44cb-9c41-e256f2e38ca0

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/ait-1077-openai-codec-docs

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.

@zknill
zknill marked this pull request as ready for review July 24, 2026 08:27
zknill added 3 commits July 24, 2026 09:27
Add a getting-started walkthrough and a framework page for the
OpenAI Responses codec (ResponsesCodec) from @ably/ai-transport/openai.

- Getting started: build a Next.js chat app that streams the Responses
  event stream over a durable session using the generic
  createAgentSession and core React hooks, with cancellation and
  multi-device sync.
- Framework page: what the Responses API brings, what AI Transport
  adds, the run.pipe connection point, and the server-side tool loop.
- Add both pages to the AI Transport nav (OpenAI first under By SDK
  and first in Frameworks).
- Remove the getting-started/openai redirect from the Vercel AI SDK
  page now that it resolves to a real page.
The codecs concept page implied the Vercel codec was the only bundled
codec. Now that the OpenAI ResponsesCodec ships in the SDK, update the
non-codec-specific pages so neither frames Vercel as the sole option.

- codecs concept: the SDK bundles a Vercel codec and a ResponsesCodec,
  each covering its framework end-to-end; add an OpenAI Read next link;
  correct the intro from "an OpenAI completion" to "an OpenAI Responses
  event".
- why overview: list OpenAI Responses events alongside the Vercel
  UIMessage as a codec-layer example.
The ResponsesCodec now supports the full client-side tool surface
(client-executed tools, tool failures, and human approvals), so the
docs no longer match the SDK.

- Add a "Run client-side tools and approvals" section to the OpenAI
  framework page covering the createToolResult, createToolResultError,
  and createToolApprovalResponse factories and the tool-approval-request
  output, and remove the stale run-outcome Aside.
- Rewrite "Scope and trade-offs" so only hosted tools remain listed as
  unsupported.
- Add an "OpenAI codec" section to the tool-calling feature page.
@zknill
zknill force-pushed the zak/ait-1077-openai-codec-docs branch from 47e677d to 3fcb6c5 Compare July 24, 2026 08:27
@zknill
zknill requested a review from owenpearson July 24, 2026 08:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant