bar_alternatives_for_slot
Rank in-stock bottles by flavor-profile fit for a cocktail recipe slot's constraints, optionally surfacing off-pattern picks with reasons.
Instructions
Rank bottles by fit for a recipe's slot.
The killer feature: given a recipe slot (declared via bar_set_slot_meta + bar_set_band_constraint / bar_set_point_constraint), rank in-stock bottles of the appropriate category by how well their flavor profiles match the slot's constraints. Includes "off-pattern" picks (disqualified by hard bands) when include_strays=True, with explanations.
Args: cocktail_id: BA cocktail_id. sort: 1-based slot index (see bar_describe_slots). on_shelf_only: if true, restrict to bottles currently on shelf. include_strays: surface hard-disqualified picks too, with reasons. top_n: max bottles to return.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sort | Yes | ||
| top_n | No | ||
| cocktail_id | Yes | ||
| on_shelf_only | No | ||
| include_strays | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |