ProcessStreamOptions
Defined in: streaming.ts:857
Options for processing a stream with callbacks.
Properties
Section titled “Properties”onContent()?
Section titled “onContent()?”
readonlyoptionalonContent: (delta,accumulated) =>void
Defined in: streaming.ts:861
Called for each content chunk.
Parameters
Section titled “Parameters”string
accumulated
Section titled “accumulated”string
Returns
Section titled “Returns”void
onDone()?
Section titled “onDone()?”
readonlyoptionalonDone: (result) =>void
Defined in: streaming.ts:871
Called when stream ends.
Parameters
Section titled “Parameters”result
Section titled “result”Returns
Section titled “Returns”void
onError()?
Section titled “onError()?”
readonlyoptionalonError: (error) =>void
Defined in: streaming.ts:876
Called on error.
Parameters
Section titled “Parameters”Error
Returns
Section titled “Returns”void
onStart()?
Section titled “onStart()?”
readonlyoptionalonStart: (requestId) =>void
Defined in: streaming.ts:866
Called when stream starts.
Parameters
Section titled “Parameters”requestId
Section titled “requestId”string
Returns
Section titled “Returns”void