consumeAsyncIterable
Call Signature
Section titled “Call Signature”consumeAsyncIterable<
Options>(input,previousContent?):Promise<ChatMessage<Options>>
Defined in: .build/typescript/packages/core/src/agent/utils.ts:256
Type Parameters
Section titled “Type Parameters”Options
Section titled “Options”Options extends object
Parameters
Section titled “Parameters”ChatMessage<Options>
previousContent?
Section titled “previousContent?”string
Returns
Section titled “Returns”Promise<ChatMessage<Options>>
Call Signature
Section titled “Call Signature”consumeAsyncIterable<
Options>(input,previousContent?):Promise<TextChatMessage<Options>>
Defined in: .build/typescript/packages/core/src/agent/utils.ts:260
Type Parameters
Section titled “Type Parameters”Options
Section titled “Options”Options extends object
Parameters
Section titled “Parameters”AsyncIterable<ChatResponseChunk<Options>>
previousContent?
Section titled “previousContent?”string
Returns
Section titled “Returns”Promise<TextChatMessage<Options>>