accumulatorToResponse
accumulatorToResponse(
accumulator,doneChunk,requestMetadata):IRChatResponse
Defined in: streaming.ts:117
Convert accumulated state and done chunk to IR response.
Parameters
Section titled “Parameters”accumulator
Section titled “accumulator”Stream accumulator
doneChunk
Section titled “doneChunk”Done chunk with finish reason and usage
requestMetadata
Section titled “requestMetadata”Original request metadata
Returns
Section titled “Returns”IR chat response