From 2c00d187bce7483bcb64378cb1fe56ee707934bb Mon Sep 17 00:00:00 2001 From: Paddy Byers Date: Fri, 16 Jan 2026 19:50:16 +0000 Subject: [PATCH] AI transport: misc minor fixes --- src/pages/docs/ai-transport/messaging/human-in-the-loop.mdx | 2 +- .../ai-transport/token-streaming/message-per-response.mdx | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/pages/docs/ai-transport/messaging/human-in-the-loop.mdx b/src/pages/docs/ai-transport/messaging/human-in-the-loop.mdx index 3b9c075259..bcf5d1fb39 100644 --- a/src/pages/docs/ai-transport/messaging/human-in-the-loop.mdx +++ b/src/pages/docs/ai-transport/messaging/human-in-the-loop.mdx @@ -10,7 +10,7 @@ This pattern ensures humans remain in control of high-stakes AI operations, prov ## Why human-in-the-loop matters -AI agents are increasingly capable of taking autonomous actions, but certain operations require human judgment: +AI agents are increasingly capable of taking autonomous actions, but certain operations require human judgement: - Safety: Prevent unintended consequences from AI decisions. - Compliance: Meet regulatory requirements for human oversight in sensitive domains. diff --git a/src/pages/docs/ai-transport/token-streaming/message-per-response.mdx b/src/pages/docs/ai-transport/token-streaming/message-per-response.mdx index e00bacb047..f4d07b08ab 100644 --- a/src/pages/docs/ai-transport/token-streaming/message-per-response.mdx +++ b/src/pages/docs/ai-transport/token-streaming/message-per-response.mdx @@ -11,10 +11,10 @@ The message-per-response pattern includes [automatic rate limit protection](/doc ## How it works -1. **Initial message**: When an agent response begins, publish an initial message with `message.create` action to the Ably channel with an empty or the first token as content. +1. **Initial message**: When an agent response begins, publish an initial message with `message.create` action to the Ably channel that is either empty or contains the first token as content. 2. **Token streaming**: Append subsequent tokens to the original message by publishing those tokens with the `message.append` action. 3. **Live delivery**: Clients subscribed to the channel receive each appended token in realtime, allowing them to progressively render the response. -4. **Compacted history**: The channel history contains only one message per agent response, which includes all tokens appended to it concatenated together. +4. **Compacted history**: The channel history contains only one message per agent response, which includes all appended tokens concatenated as contiguous text. You do not need to mark the message or token stream as completed; the final message content automatically includes the full response constructed from all appended tokens. @@ -27,7 +27,7 @@ Standard Ably message [size limits](/docs/platform/pricing/limits#message) apply Message append functionality requires "Message annotations, updates, deletes and appends" to be enabled in a [channel rule](/docs/channels#rules) associated with the channel. To enable the channel rule: