Skip to content

ProcessStreamOptions

Defined in: streaming.ts:857

Options for processing a stream with callbacks.

readonly optional onContent: (delta, accumulated) => void

Defined in: streaming.ts:861

Called for each content chunk.

string

string

void


readonly optional onDone: (result) => void

Defined in: streaming.ts:871

Called when stream ends.

CollectedStream

void


readonly optional onError: (error) => void

Defined in: streaming.ts:876

Called on error.

Error

void


readonly optional onStart: (requestId) => void

Defined in: streaming.ts:866

Called when stream starts.

string

void