The internals section covers the wire protocol, codec architecture, conversation tree structure, and transport patterns that make up AI Transport under the hood. These details are useful if you want to understand how the SDK works, contribute to the project, or build custom codecs.
Topics
Wire protocol
The Ably channel wire format: transport headers, lifecycle events, content messages, and message identity.
Codec architecture
How the codec bridges domain events to Ably messages. Encoder, decoder, accumulator, and lifecycle tracker internals.
Conversation tree
The branching conversation structure. Serial ordering, sibling groups, fork chains, and the flatten algorithm.
Transport patterns
Internal transport components: StreamRouter, TurnManager, pipeStream, and cancel routing.