Consumes a stream and reports whether it answered with text or tool calls.
Chunks are buffered until the answer's shape is known, so a caller can decide what to forward. Tool-mode results carry every chunk for replay.
Chunks to consume.
Callbacks fired as text arrives.
What the stream turned out to be.
Consumes a stream and reports whether it answered with text or tool calls.
Chunks are buffered until the answer's shape is known, so a caller can decide what to forward. Tool-mode results carry every chunk for replay.