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
Name | Type | Default value |
---|---|---|
«destructured» | Object | {} |
› metadataMode? | MetadataMode | MetadataMode.NONE |
› responseBuilder? | ResponseBuilder | undefined |
› serviceContext? | ServiceContext | undefined |
Returns
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
Name | Type |
---|---|
params | SynthesizeParamsStreaming |
Returns
Promise
<AsyncIterable
<Response
>>
Implementation of
Defined in
packages/core/src/synthesizers/ResponseSynthesizer.ts:36
▸ synthesize(params
): Promise
<Response
>
Parameters
Name | Type |
---|---|
params | SynthesizeParamsNonStreaming |
Returns
Promise
<Response
>