Przejdź do głównej zawartości

Class: ResponseSynthesizer

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

Implements

Constructors

constructor

new ResponseSynthesizer(«destructured»?): ResponseSynthesizer

Parameters

NameTypeDefault value
«destructured»Object{}
› metadataMode?MetadataModeMetadataMode.NONE
› responseBuilder?ResponseBuilderundefined
› serviceContext?ServiceContextundefined

Returns

ResponseSynthesizer

Defined in

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

Properties

metadataMode

metadataMode: MetadataMode

Defined in

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


responseBuilder

responseBuilder: ResponseBuilder

Defined in

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


serviceContext

serviceContext: ServiceContext

Defined in

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

Methods

synthesize

synthesize(params): Promise<AsyncIterable<Response>>

Parameters

NameType
paramsSynthesizeParamsStreaming

Returns

Promise<AsyncIterable<Response>>

Implementation of

BaseSynthesizer.synthesize

Defined in

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

synthesize(params): Promise<Response>

Parameters

NameType
paramsSynthesizeParamsNonStreaming

Returns

Promise<Response>

Implementation of

BaseSynthesizer.synthesize

Defined in

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