Optional metadata provider override. Callers should set
instance.Provider = providerToUse before invoking provider methods
in multi-provider contexts. Falls back to the global default provider when unset.
ProtectedClampEnsures that the probability param is within the min and max params.
The probability to clamp
The minimum value the probability can be
The maximum value the probability can be
The clamped probability
ProtectedConvertProtectedGetFor each entry in the request.Recommendations array, the provider's external API is called to produce zero or more MJRecommendationItemEntity records.
The Recommendations to request from this provider
ProtectedSaveThis method is used by subclasses to update a Recommendation record in the database to set the RecommendationRunID column. In addition, this method will save all the RecommendationItem records associated with the Recommendation record and link them to the Recommendation record.
This class implements the API calls to the rasa.io Rex Recommendation engine and will save results into the MJ Recommendations/Recommendation Items tables.