跳到主要内容

Class: SimpleResponseBuilder

A response builder that just concatenates responses.

Implements

  • BaseResponseBuilder

Constructors

constructor

new SimpleResponseBuilder(serviceContext)

Parameters

NameType
serviceContextServiceContext

Defined in

packages/core/src/ResponseSynthesizer.ts:53

Properties

llm

llm: LLM

Defined in

packages/core/src/ResponseSynthesizer.ts:50


textQATemplate

textQATemplate: SimplePrompt

Defined in

packages/core/src/ResponseSynthesizer.ts:51

Methods

getResponse

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

Parameters

NameType
querystring
textChunksstring[]
parentEvent?Event

Returns

Promise<string>

Implementation of

BaseResponseBuilder.getResponse

Defined in

packages/core/src/ResponseSynthesizer.ts:58