@chinmaymk/aikit / StreamingGenerateFunction
Type Alias: StreamingGenerateFunction()<T>
StreamingGenerateFunction<
T
> = (messages
,options?
) =>AsyncIterable
<StreamChunk
>
Defined in: types.ts:736
Type utility for streaming generator functions
Type Parameters
T
T
= Record
<string
, unknown
>
Parameters
messages
Message
[]
options?
Partial
<T
>
Returns
AsyncIterable
<StreamChunk
>