Class: ResponseSynthesizer
A ResponseSynthesizer is used to generate a response from a query and a list of nodes.
Hierarchy
-
↳
ResponseSynthesizer
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
Overrides
Defined in
packages/core/src/synthesizers/ResponseSynthesizer.ts:25
Properties
metadataMode
• metadataMode: MetadataMode
Defined in
packages/core/src/synthesizers/ResponseSynthesizer.ts:23
responseBuilder
• responseBuilder: ResponseBuilder
Defined in
packages/core/src/synthesizers/ResponseSynthesizer.ts:22
Methods
_getPromptModules
▸ _getPromptModules(): Object
Returns
Object
Overrides
Defined in
packages/core/src/synthesizers/ResponseSynthesizer.ts:41
_getPrompts
▸ _getPrompts(): Object
Returns
Object
Overrides
Defined in
packages/core/src/synthesizers/ResponseSynthesizer.ts:45
_updatePrompts
▸ _updatePrompts(promptsDict
): void
Parameters
Name | Type |
---|---|
promptsDict | Object |
Returns
void
Overrides
Defined in
packages/core/src/synthesizers/ResponseSynthesizer.ts:52
getPrompts
▸ getPrompts(): PromptsDict
Returns all prompts from the mixin and its modules
Returns
PromptsDict
Inherited from
Defined in
packages/core/src/prompts/Mixin.ts:27
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:58
▸ synthesize(params
): Promise
<Response
>