Skip to content

Conversation

@GregHolmes
Copy link
Contributor

Summary

  • Add comprehensive getting started guide for AI Transport using TypeScript
  • Cover JWT-based user authentication with verified identities and roles
  • Demonstrate message-per-response token streaming pattern with appendMessage()
  • Include interactive CLI client using readline for user prompts
  • Add prerequisite steps for enabling message appends via channel rules

GregHolmes and others added 30 commits January 15, 2026 10:17
Link to the pending `/ai-transport` overview page.
Add intro describing the pattern, its properties, and use cases.
Includes continuous token streams, correlating tokens for distinct
responses, and explicit start/end events.
Splits each token streaming approach into distinct patterns and shows
both the publish and subscribe side behaviour alongside one another.
Includes hydration with rewind and hydration with persisted history +
untilAttach. Describes the pattern for handling in-progress live
responses with complete responses loaded from the database.
Add doc explaining streaming tokens with appendMessage and update
compaction allowing message-per-response history.
Unifies the token streaming nav for token streaming after rebase.
Refines the intro copy in message-per-response to have structural
similarity with the message-per-token page.
Refine the Publishing section of the message-per-response docs.

- Include anchor tags on title
- Describe the `serial` identifier
- Align with stream pattern used in message-per-token docs
- Remove duplicate example
Refine the Subscribing section of the message-per-response docs.

- Add anchor tag to heading
- Describes each action upfront
- Uses RANDOM_CHANNEL_NAME
Refine the rewind section of the message-per-response docs.

- Include description of allowed rewind paameters
- Tweak copy
Refines the history section for the message-per-response docs.

- Adds anchor to heading
- Uses RANDOM_CHANNEL_NAME
- Use message serial in code snippet instead of ID
- Tweaks copy
Fix the hydration of in progress responses via rewind by using the responseId in the extras to correlate messages with completed responses loaded from the database.
Fix the hydration of in progress responses using history by obtaining
the timestamp of the last completed response loaded from the database
and paginating history forwards from that point.
Removes the headers/metadata section, as this covers the specific
semantics of extras.headers handling with appends, which is better
addressed by the (upcoming) message append pub/sub docs. Instead, a
callout is used to describe header mixin semantics in the appropriate
place insofar as it relates to the discussion at hand.
Update the token streaming with message per token docs to include a
callout describing resume behaviour in case of transient disconnection.
Fix the message per token docs headers to include anchors and align with
naming in the message per response page.
Adds an overview page for a Sessions & Identity section which describes the channel-oriented session model and its benefits over the traditional connection-oriented model.

Describes how identity relates to session management and how this works in the context of channel-oriented sessions.

Shows how to use identified clients to assign a trusted identity to users and obtain this identity from the agent side.

Shows how to use Ably capabilities to control which operations
authenticated users can perform on which channels.

Shows how to use authenticated user claims to associated a role or other attribute with a user.

Updates the docs to describe how to handle authentication, capabilities, identity and roles/attributes for agents separately from end users.

Describes how to use presence to mark users and agents as online/offline. Includes description of synthetic leaves in the event of abrupt disconnection.

Describe how to subscribe to presence to see who is online, and take action when a user is offline across all devices.

Add docs for resuming user and agent sessions, linking to hydration patterns for different token streaming approaches for user resumes and describing agent resume behaviour with message catch up.
Adds a guide for using the OpenAI SDK to consume streaming events from
the Responses API and publish them over Ably using the message per token
pattern.
- Uses a further-reading callout instead of note
- Removes repeated code initialising Ably client (OpenAI client already
  instantiated)
Adds an anchor tag to the "Client hydration" heading
Similar to the open ai message per token guide, but using the message
per response pattern with appends.
Documents patterns for exposing reasoning output from models along with
final output.
Overview page for token streaming in AI Transport

---------

Co-authored-by: matt423 <[email protected]>
Co-authored-by: Fiona Corden <[email protected]>
Co-authored-by: Paddy Byers <[email protected]>
GregHolmes and others added 16 commits January 15, 2026 10:22
Document how to implement human oversight of AI agent actions using
Ably channels and capabilities for authorization workflows.
Document how users send prompts to AI agents over Ably channels,
including identified clients, message correlation, and handling
concurrent prompts.
Details the message-per-response pattern using Ably `appendMessage` for Anthropic SDK.
Adds a page to the Messaging section that describes sending tool calls
and results to users over channels. Indicates ability to build
generative user interfaces or implement human in the loop workflows.
@coderabbitai
Copy link

coderabbitai bot commented Jan 15, 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.

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


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.

Remove /features/ path segment from AI Transport documentation URLs:
- /ai-transport/features/messaging/* → /ai-transport/messaging/*
- /ai-transport/features/token-streaming/* → /ai-transport/token-streaming/*
- /ai-transport/features/sessions-identity/* → /ai-transport/sessions-identity/*

Update navigation and internal links in guides accordingly.
@GregHolmes GregHolmes force-pushed the AIT-107-Create-AIT-Getting-Started-guides branch from 02b1736 to e1aa249 Compare January 15, 2026 12:10
…ut-of-feature-and-remove-feature

docs: Move AI Transport feature directories to top level
@GregHolmes GregHolmes force-pushed the AIT-107-Create-AIT-Getting-Started-guides branch from e1aa249 to 075c93b Compare January 16, 2026 12:34
Add comprehensive getting started guide covering:
- JWT-based user authentication with verified identities
- Mock LLM implementation for provider-agnostic examples
- Agent that streams token responses using message-per-response pattern
- Interactive client with readline for user prompts
- Message correlation using promptId headers
- Channel rule setup for message appends

Also update navigation to include getting started section.
@GregHolmes GregHolmes force-pushed the AIT-107-Create-AIT-Getting-Started-guides branch from 7a3ebe5 to 02439a7 Compare January 16, 2026 12:36
@mschristensen mschristensen force-pushed the AIT-129-AIT-Docs-release-branch branch from 20df5cb to 01ab0f8 Compare January 16, 2026 16:50
Base automatically changed from AIT-129-AIT-Docs-release-branch to main January 16, 2026 17:48
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.

8 participants