Class: abstract
BaseQueryEngine
Extends
Extended by
Constructors
new BaseQueryEngine()
protected
new BaseQueryEngine(_query
):BaseQueryEngine
Parameters
• _query: QueryFn
Returns
Overrides
Defined in
packages/core/dist/query-engine/index.d.ts:19
Properties
_query
protected
readonly
_query:QueryFn
Defined in
packages/core/dist/query-engine/index.d.ts:18
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
query()
query(strOrQueryBundle, stream)
query(
strOrQueryBundle
,stream
):Promise
<AsyncIterable
<EngineResponse
,any
,any
>>
Parameters
• strOrQueryBundle: QueryType
• stream: true
Returns
Promise
<AsyncIterable
<EngineResponse
, any
, any
>>
Defined in
packages/core/dist/query-engine/index.d.ts:20
query(strOrQueryBundle, stream)
query(
strOrQueryBundle
,stream
?):Promise
<EngineResponse
>
Parameters
• strOrQueryBundle: QueryType
• stream?: false
Returns
Promise
<EngineResponse
>
Defined in
packages/core/dist/query-engine/index.d.ts:21
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