Skip to main content

Class: ResponseSynthesizer

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

Constructors

constructor

new ResponseSynthesizer(«destructured»?)

Parameters

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

Defined in

ResponseSynthesizer.ts:292

Properties

metadataMode

metadataMode: MetadataMode

Defined in

ResponseSynthesizer.ts:290


responseBuilder

responseBuilder: BaseResponseBuilder

Defined in

ResponseSynthesizer.ts:288


serviceContext

serviceContext: ServiceContext

Defined in

ResponseSynthesizer.ts:289

Methods

synthesize

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

Parameters

NameType
querystring
nodesWithScoreNodeWithScore[]
parentEvent?Event

Returns

Promise<Response>

Defined in

ResponseSynthesizer.ts:307