Ana içeriğe geç

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

packages/core/src/ResponseSynthesizer.ts:295

Properties

metadataMode

metadataMode: MetadataMode

Defined in

packages/core/src/ResponseSynthesizer.ts:293


responseBuilder

responseBuilder: BaseResponseBuilder

Defined in

packages/core/src/ResponseSynthesizer.ts:291


serviceContext

serviceContext: ServiceContext

Defined in

packages/core/src/ResponseSynthesizer.ts:292

Methods

synthesize

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

Parameters

NameType
querystring
nodesWithScoreNodeWithScore<Metadata>[]
parentEvent?Event

Returns

Promise<Response>

Defined in

packages/core/src/ResponseSynthesizer.ts:310