Skip to content

Commit 00cbf76

Browse files
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

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

examples/ai-transport-message-per-response/javascript/README.md

Lines changed: 0 additions & 61 deletions
This file was deleted.

examples/ai-transport-message-per-response/javascript/package.json

Lines changed: 0 additions & 10 deletions
This file was deleted.

examples/ai-transport-message-per-response/react/README.md

Lines changed: 0 additions & 70 deletions
This file was deleted.

examples/ai-transport-message-per-token/javascript/README.md

Lines changed: 0 additions & 60 deletions
This file was deleted.

examples/ai-transport-message-per-token/javascript/index.html

Lines changed: 0 additions & 46 deletions
This file was deleted.

examples/ai-transport-message-per-token/javascript/src/agent.ts

Lines changed: 0 additions & 63 deletions
This file was deleted.

examples/ai-transport-message-per-token/javascript/src/config.ts

Lines changed: 0 additions & 3 deletions
This file was deleted.

examples/ai-transport-message-per-token/javascript/src/llm.ts

Lines changed: 0 additions & 49 deletions
This file was deleted.

0 commit comments

Comments
 (0)