Skip to content

@chinmaymk/aikit v0.0.40


@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>

Released under the MIT License.