Skip to main content

Class: ResponseSynthesizer

A ResponseSynthesizer is used to generate a response from a query and a list of nodes.

Implements

Constructors

constructor

new ResponseSynthesizer(«destructured»?)

Parameters

NameType
«destructured»Object
› metadataMode?MetadataMode
› responseBuilder?BaseResponseBuilder
› serviceContext?ServiceContext

Defined in

packages/core/src/synthesizers/ResponseSynthesizer.ts:16

Properties

metadataMode

metadataMode: MetadataMode

Defined in

packages/core/src/synthesizers/ResponseSynthesizer.ts:14


responseBuilder

responseBuilder: BaseResponseBuilder

Defined in

packages/core/src/synthesizers/ResponseSynthesizer.ts:12


serviceContext

serviceContext: ServiceContext

Defined in

packages/core/src/synthesizers/ResponseSynthesizer.ts:13

Methods

synthesize

synthesize(query, nodesWithScore, parentEvent?): Promise<Response>

Parameters

NameType
querystring
nodesWithScoreNodeWithScore<Metadata>[]
parentEvent?Event

Returns

Promise<Response>

Implementation of

BaseSynthesizer.synthesize

Defined in

packages/core/src/synthesizers/ResponseSynthesizer.ts:31