NLUServiceGetter
Stentor API Reference / stentor-models/src / NLUServiceGetter
Interface: NLUServiceGetter
Defined in: packages/stentor-models/src/NLU/NLUServiceGetter.ts:9
Tests and gets an NLUService based on ChannelData or NLUData
Methodsβ
test()β
test(
obj):boolean
Defined in: packages/stentor-models/src/NLU/NLUServiceGetter.ts:20
Tests the provided data to see if it is the proper type for the NLUService that is returned by the get() method.
This can be a guard.
Parametersβ
objβ
Returnsβ
boolean
True if the provided data is for setting up the NLUService
get()β
get(
obj):NLUService
Defined in: packages/stentor-models/src/NLU/NLUServiceGetter.ts:28
Based on the provided data it will generate an NLUService for use.