You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
IntentRecognitionProvider#registerEntityDefinition and IntentRecognitionProvider#registerIntentDefinition both return void. This is an issue for testing, especially for providers that process the Xatkit intents/entities before registering them. It would be better to return the registered object to be able to test it.
An example use case:
The NLP.js provider gracefully degrades to any entities when a given base entity is not supported by NLP.js. This means that any IntentDefinition with such parameter will be processed and the parameter type will be changed to any. Right now we don't have any way to access this processed IntentDefinition and test it.
The text was updated successfully, but these errors were encountered:
IntentRecognitionProvider#registerEntityDefinition
andIntentRecognitionProvider#registerIntentDefinition
both returnvoid
. This is an issue for testing, especially for providers that process the Xatkit intents/entities before registering them. It would be better to return the registered object to be able to test it.An example use case:
The NLP.js provider gracefully degrades to
any
entities when a given base entity is not supported by NLP.js. This means that anyIntentDefinition
with such parameter will be processed and the parameter type will be changed toany
. Right now we don't have any way to access this processedIntentDefinition
and test it.The text was updated successfully, but these errors were encountered: