Interface: ResponseBuilder
A ResponseBuilder is used in a response synthesizer to generate a response from multiple response chunks.
Extends
Methods
_getPromptModules()
abstract
protected
_getPromptModules():ModuleRecord
Return a dictionary of sub-modules within the current module that also implement PromptMixin (so that their prompts can also be get/set).
Can be blank if no sub-modules.
Returns
Inherited from
Defined in
packages/core/dist/prompts/index.d.ts:69
_getPrompts()
abstract
protected
_getPrompts():PromptsRecord
Returns
Inherited from
Defined in
packages/core/dist/prompts/index.d.ts:60
_updatePrompts()
abstract
protected
_updatePrompts(prompts
):void
Parameters
• prompts: PromptsRecord
Returns
void
Inherited from
Defined in
packages/core/dist/prompts/index.d.ts:61
getPrompts()
getPrompts():
PromptsRecord
Returns
Inherited from
Defined in
packages/core/dist/prompts/index.d.ts:58
getResponse()
getResponse(query, stream)
getResponse(
query
,stream
):Promise
<AsyncIterable
<string
,any
,any
>>
Get the response from a query and a list of text chunks.
Parameters
• query: ResponseBuilderQuery
• stream: true
Returns
Promise
<AsyncIterable
<string
, any
, any
>>
Defined in
packages/llamaindex/src/synthesizers/types.ts:35
getResponse(query, stream)
getResponse(
query
,stream
?):Promise
<string
>
Parameters
• query: ResponseBuilderQuery
• stream?: false
Returns
Promise
<string
>
Defined in
packages/llamaindex/src/synthesizers/types.ts:39
updatePrompts()
updatePrompts(
prompts
):void
Parameters
• prompts: PromptsRecord
Returns
void
Inherited from
Defined in
packages/core/dist/prompts/index.d.ts:59
validatePrompts()
validatePrompts(
promptsDict
,moduleDict
):void
Parameters
• promptsDict: PromptsRecord
• moduleDict: ModuleRecord
Returns
void
Inherited from
Defined in
packages/core/dist/prompts/index.d.ts:57