Class: SimpleResponseBuilder
A response builder that just concatenates responses.
Implements
Constructors
constructor
• new SimpleResponseBuilder(serviceContext
)
Parameters
Name | Type |
---|---|
serviceContext | ServiceContext |
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
Name | Type |
---|---|
query | string |
textChunks | string [] |
parentEvent? | Event |
Returns
Promise
<string
>
Implementation of
BaseResponseBuilder.getResponse