Commit 00cbf76
committed
docs(ai-transport): add token streaming example, reframe append example
Add a runnable AI Transport token streaming example that uses the AI
Transport SDK (v0.3.0), mirroring the Core SDK getting started: the agent
flow (createAgentSession, createRun, start, loadConversation, pipe, end)
and the client hooks (ClientSessionProvider, useView, useClientSession).
The model is mocked so it runs without a key, but emits the same
UIMessageChunk stream a production integration produces.
Move the former ai-transport-message-per-response example to
pub-sub-message-append under the Pub/Sub product, since it uses raw
pub/sub appendMessage rather than the SDK. Reframe its copy to point to
the token streaming example as the recommended approach for AI.
Remove the ai-transport-message-per-token example.
Wire up Sandpack and workspace dependencies (@ably/ai-transport, ai, bump
ably to 2.23 for the SDK peer) and bump the AI Transport SDK version
registry to 0.3. Update token-streaming and ai-chatbot pricing
meta descriptions that referenced the retired pattern names.1 parent e858242 commit 00cbf76
60 files changed
Lines changed: 427 additions & 903 deletions
File tree
- examples
- ai-transport-message-per-response
- javascript
- react
- ai-transport-message-per-token
- javascript
- src
- react
- src
- styles
- ai-transport-token-streaming/react
- src
- styles
- pub-sub-message-append
- javascript
- src
- react
- src
- styles
- src
- components/Examples
- data
- examples
- languages
- pages/docs
- ai-transport/features
- platform/pricing/examples
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Lines changed: 0 additions & 61 deletions
This file was deleted.
Lines changed: 0 additions & 10 deletions
This file was deleted.
Lines changed: 0 additions & 70 deletions
This file was deleted.
Lines changed: 0 additions & 60 deletions
This file was deleted.
Lines changed: 0 additions & 46 deletions
This file was deleted.
Lines changed: 0 additions & 63 deletions
This file was deleted.
Lines changed: 0 additions & 3 deletions
This file was deleted.
Lines changed: 0 additions & 49 deletions
This file was deleted.
0 commit comments