Cart

data class Cart(val type: CartType, val products: List<CartProduct>, val additionalContext: Map<String, String>? = null, val vibes: List<Vibe>? = null) : ExperienceContext

A basket or selection of products.

Constructors

Link copied to clipboard
constructor(type: CartType, products: List<CartProduct>, additionalContext: Map<String, String>? = null, vibes: List<Vibe>? = null)

Properties

Link copied to clipboard
open override val additionalContext: Map<String, String>? = null

Free-form hints passed through to generation.

Link copied to clipboard

The products themselves.

Link copied to clipboard

Which vertical this cart belongs to.

Link copied to clipboard
open override val vibes: List<Vibe>? = null

Moods to bias recommendations toward.