Values.GetRecommendationsResponseSourceReturns a list of recommended items. For campaigns, the campaign's Amazon Resource Name (ARN) is required and the required user and item input depends on the recipe type used to create the solution backing the campaign as follows: USER_PERSONALIZATION - userId required, itemId not used RELATED_ITEMS - itemId required, userId not used Campaigns that are backed by a solution created using a recipe of type PERSONALIZED_RANKING use the API. For recommenders, the recommender's ARN is required and the required item and user input depends on the use case (domain-based recipe) backing the recommender. For information on use case requirements see Choosing recommender use cases.
type nonrec t = {itemList : ItemList.t option;A list of recommendations sorted in descending order by prediction score. There can be a maximum of 500 items in the list.
*)recommendationId : RecommendationID.t option;The ID of the recommendation.
*)}type nonrec error = [ | `InvalidInputException of InvalidInputException.t| `ResourceNotFoundException of ResourceNotFoundException.t| `Unknown_operation_error of string * string option ]val error_of_json :
string ->
Yojson.Safe.t ->
[> `InvalidInputException of InvalidInputException.t
| `ResourceNotFoundException of ResourceNotFoundException.t
| `Unknown_operation_error of string * string option ]val error_of_xml :
string ->
Awso.Xml.t ->
[> `InvalidInputException of InvalidInputException.t
| `ResourceNotFoundException of ResourceNotFoundException.t
| `Unknown_operation_error of string * string option ]val to_value :
t ->
[> `Structure of
(string
* [> `List of
[> `Structure of
(string
* [> `Double of Score.t
| `List of [> `String of Reason.t ] list
| `Map of
([> `String of ColumnName.t ]
* [> `String of ColumnValue.t ])
list
| `String of ItemID.t ])
list ]
list
| `String of RecommendationID.t ])
list ]