Interface: ResponseBuilder
A ResponseBuilder is used in a response synthesizer to generate a response from multiple response chunks.
Extends
Partial
<PromptMixin
>
Methods
getPrompts()?
optional
getPrompts():PromptsDict
Returns all prompts from the mixin and its modules
Returns
PromptsDict
Inherited from
Partial.getPrompts
Source
packages/core/src/prompts/Mixin.ts:27
getResponse()
getResponse(params)
getResponse(
params
):Promise
<AsyncIterable
<string
>>
Get the response from a query and a list of text chunks.
Parameters
• params: ResponseBuilderParamsStreaming