Batches text chunks during one asynchronous Step invocation.
Creates a writer from validated invocation-owned components.
Registered string Stream receiving emitted batches.
Current asynchronous Step Context.
Positive one-shot interval in milliseconds.
Positive soft UTF-8 threshold.
Discards buffered text and stops the timer after invocation cancellation.
Flushes the tail and closes this writer during invocation finalization.
Appends one chunk without modification and flushes after crossing the soft size threshold.
Text to append; an empty string is ignored.
Error if the invocation finished or an earlier background flush failed.
Batches text chunks during one asynchronous Step invocation.