Skip to content

StreamedText

How a streamText run ended, when it did not fail.

optional finishReason?: FinishReason

"cancelled" when the run was cancelled; otherwise as the provider reported it.


outcome: StreamTerminalOutcome

The canonical terminal outcome.


optional provenance?: ExecutionProvenance


runId: string


text: string

The full text, or the partial text a cancelled run had delivered.


optional usage?: Usage