type Reader
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
14# buf from pos: bytes not yet read as lines. No CR or LF is between pos and seen.
15# cr: the last line ended with a CR at the end of buf, so an LF first belongs to it.
16type Reader is Type:
17 Reader{buf: Bytes.Bytes, pos: U32, seen: U32, cr: Bool, st: St}