Why it matters

Bi-di enables rich UX (interruption, voice). Understanding shapes advanced UI.

Advertisement

The architecture

Input stream: user + tool events.

Output stream: tokens + events.

Merge + arbitrate.

Bi-di agent flowInput streamuser + toolsAgent coreprocess eventsOutput streamtokens + eventsVoice interruption, live tool results, live streaming media all fit this pattern
Bi-di.
Advertisement

How it works end to end

Reactive Flux both ways.

Interruption: cancel current gen.

Tool results merge into input.

State machine per session.