danubeRecommendation
The danube.ai recommendation service can be used via the danubeRecommendation method provided by the
DanubeClient class. danubeRecommendation will send a request with your current session data to
danube.ai and returns the n mostly correlated entries from previous sessions as a result.Method
Below, the method's header is shown, as it is provided by DanubeClient./*
* Performs a danube.ai recommendation for the specified data and settings.
*
* @param data: A stringified Json-Array, holding all current session elements as objects.
* @param n: The number of returned recommendations.
*/
public async danubeRecommendation(
data: string,
n: number,
): Promise<DANUBE_RECOMMENDATION_RESULT | null> {
...
}
/*
* The result of a 'danubeRecommendation' call.
*
* @field correlatedData: A stringified Json-Array, holding all recommended elements as objects.
*/
interface DANUBE_RECOMMENDATION_RESULT {
correlatedData: String,
}