Pular para o conteúdo principal

Class: SimpleResponseBuilder

A response builder that just concatenates responses.

Implements

Constructors

constructor

new SimpleResponseBuilder(serviceContext)

Parameters

NameType
serviceContextServiceContext

Defined in

packages/core/src/synthesizers/builders.ts:51

Properties

llm

llm: LLM

Defined in

packages/core/src/synthesizers/builders.ts:48


textQATemplate

textQATemplate: SimplePrompt

Defined in

packages/core/src/synthesizers/builders.ts:49

Methods

getResponse

getResponse(query, textChunks, parentEvent?): Promise<string>

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

Parameters

NameType
querystring
textChunksstring[]
parentEvent?Event

Returns

Promise<string>

Implementation of

BaseResponseBuilder.getResponse

Defined in

packages/core/src/synthesizers/builders.ts:56