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/agent/index.d.ts:118
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/agent/index.d.ts:119