Interface: HostContextualDataForImages
Context to be passed for Contextual Recommendations for Images
Properties
Property
Type
Description
textContentstring[]Array of strings to be passed as context for contextual browse.
encodedImagesData?Array of Base64 encoded images to be passed as context for contextual browse. Recommendation is to pass image of width 330px(maintaing aspect ratio) e.g.
{ [ { type: AssetType.IMAGE, dataType: AssetDataType.BASE64, name: "example-image.jpg", // optional data: "data:image/jpeg;base64,/9j/4AAQSkZJRg.. } ] }contextualRecommendationsVersion?numberContextual Recommendations Version. Defaults to version 1, send value to switch to latest version Default
1getDataForEvaluation?booleanBoolean to indicate if data should be sent back to host for evaluation Default
false