Skip to main content

Function: streamReducer()

streamReducer<S, D>(params): AsyncIterable<S>

Type parameters

S

D

Parameters

params

params.finished?

params.initialValue: D

params.reducer

params.stream: AsyncIterable<S>

Returns

AsyncIterable<S>

Source

packages/llamaindex/src/llm/utils.ts:42