Skip to main content

Function: consumeAsyncIterable()

consumeAsyncIterable(input, previousContent)

consumeAsyncIterable<Options>(input, previousContent?): Promise<ChatMessage<Options>>

Type Parameters

Options extends object

Parameters

input: ChatMessage<Options>

previousContent?: string

Returns

Promise<ChatMessage<Options>>

Defined in

packages/core/agent/dist/index.d.ts:121

consumeAsyncIterable(input, previousContent)

consumeAsyncIterable<Options>(input, previousContent?): Promise<TextChatMessage<Options>>

Type Parameters

Options extends object

Parameters

input: AsyncIterable<ChatResponseChunk<Options>, any, any>

previousContent?: string

Returns

Promise<TextChatMessage<Options>>

Defined in

packages/core/agent/dist/index.d.ts:122