Zum Hauptinhalt springen

Interface: ResponseBuilder

A ResponseBuilder is used in a response synthesizer to generate a response from multiple response chunks.

Implemented by

Methods

getResponse

getResponse(params): Promise<AsyncIterable<string>>

Get the response from a query and a list of text chunks.

Parameters

NameType
paramsResponseBuilderParamsStreaming

Returns

Promise<AsyncIterable<string>>

Defined in

packages/core/src/synthesizers/types.ts:54

getResponse(params): Promise<string>

Parameters

NameType
paramsResponseBuilderParamsNonStreaming

Returns

Promise<string>

Defined in

packages/core/src/synthesizers/types.ts:57