Class: ResponseSynthesizer
A ResponseSynthesizer is used to generate a response from a query and a list of nodes.
Constructors
constructor
• new ResponseSynthesizer(«destructured»?
)
Parameters
Name | Type |
---|---|
«destructured» | Object |
› metadataMode? | MetadataMode |
› responseBuilder? | BaseResponseBuilder |
› serviceContext? | ServiceContext |
Defined in
Properties
metadataMode
• metadataMode: MetadataMode
Defined in
responseBuilder
• responseBuilder: BaseResponseBuilder
Defined in
serviceContext
• serviceContext: ServiceContext
Defined in
Methods
synthesize
▸ synthesize(query
, nodesWithScore
, parentEvent?
): Promise
<Response
>
Parameters
Name | Type |
---|---|
query | string |
nodesWithScore | NodeWithScore [] |
parentEvent? | Event |
Returns
Promise
<Response
>