def dispatch
import bend-kit-llm@0.13.0.1/sse.bend as Sseimport Base
import bend-kit-bytes@0.3.3.0/bytes.bend as Bytes
176# A blank line: the event, when it has data. Either way the event type starts over.
177def dispatch(st: St) -> St & Maybe<&1, Message>:
178 St{name, Bytes.Bytes{+n, buf}, id, retry} = st
179 dispatch.of(U32.is_zero(n), name, Bytes.Bytes{n, buf}, id, retry)