Home / Companies / Ably / Blog / Post Details
Content Deep Dive

Conversation tree branching in `@ably/ai-transport`

Blog post from Ably

Post Details
Company
Date Published
Author
Ably
Word Count
1,326
Company Posts That Month
8
Language
-
Hacker News Points
-
Summary

@ably/ai-transport` introduces a branching conversation model that allows for non-linear interaction in AI-assisted dialogues, addressing issues like message editing and tool retrying without losing historical context. Unlike traditional linear chats where past interactions can become cluttered or overwritten, this model utilizes a tree structure where each message can create branches, preserved with identifiers like `msgId`, `parentId`, and `forkOf`. This system allows users to compare different iterations of messages side-by-side, facilitating tasks such as customer support, content drafting, and interactive storytelling. The methodology maintains a comprehensive record of conversation paths, enabling seamless navigation and selection of active branches for further interactions. This branching approach, while requiring more storage and presenting some UI complexities, offers significant advantages in maintaining clarity and choice in dynamic conversational environments.

Trends Found in this Post
Trend Post Mentions Total Month Mentions Posts Companies MoM
Real-time 4 5,735 1,391 247 -9%
AI Agents 1 4,942 1,264 250 +12%