Skip to main content

NLUServiceGetter

Stentor API Reference


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​

ChannelData | NLUData

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.

Parameters​

obj​

ChannelData | NLUData

Returns​

NLUService