What channels are
Channels are stream pipes between iii workers. They let one function write bytes while another function reads those bytes in real time, even when the functions run in different processes or languages.The model
The key idea is that refs travel through regular function calls, but the data itself travels over
the channel.
Why channels exist
Function invocations are JSON messages. That is perfect for structured events and command payloads, but it is the wrong approach for large files, media, streaming responses (agents, chats), and long-running partial output. Channels split coordination from data transfer:- A function call coordinates the work.
- A channel carries the stream.
- The engine tracks tracing and routing.
Runtime flow
The producer creates a channel and passesreaderRef to the consumer. Node and Python materialize
that ref into a live reader before the handler runs. Rust receives the ref as JSON and constructs a
ChannelReader from it. The producer writes chunks into its local writer, and the consumer reads
those chunks from its local reader.