TextStream
What streamText returns.
Properties
Section titled “Properties”fullStream
Section titled “fullStream”fullStream:
AsyncIterable<StreamEvent>
The canonical StreamEvent sequence, terminal included.
result
Section titled “result”result:
Promise<StreamedText>
Settles with the run’s ending: resolves on completion or cancellation, rejects with the
run’s IndeRunException on failure.
runId:
string
textStream
Section titled “textStream”textStream:
AsyncIterable<string>
Text increments, in order. Ends when the run completes or is cancelled; throws the run’s
IndeRunException when it fails, and TextStreamRetractedError when the provider
replaces delivered text (use fullStream to render retractions).
Methods
Section titled “Methods”cancel()
Section titled “cancel()”cancel(
reason?):void
Cancels the run; idempotent.
Parameters
Section titled “Parameters”reason?
Section titled “reason?”string
Returns
Section titled “Returns”void
IndeRun — open-source AI execution for cross-platform apps. Built and maintained by Independo GmbH (opens in new tab), supported by netidee (opens in new tab).
MIT-licensed SDK · No SDK usage telemetry.
© 2025–2026 Independo GmbH