Description
Text streams can be reconstructed from iterables with optional stopping criteria. This helper is for developers consuming streamed language-model output or incremental text sources. Stop conditions should be explicit when streamed text includes private prompts or responses.