bar_set_slot_meta
Set a recipe slot's category and tolerance to control ingredient matching, required before applying axis constraints.
Instructions
Declare the category + tolerance for a recipe slot.
Required before setting axis constraints. sort is the 1-based BA sort
index of the ingredient in the recipe (see bar_describe_slots).
Args:
cocktail_id: BA cocktail_id.
sort: BA sort index of the slot (1-based).
category: e.g. "gin", "rum", "whiskey".
tolerance: "exact" (named bottle required) | "style" (match by vector)
| "any" (any in-category bottle works).
exact_ingredient_id: required when tolerance="exact".
also_accept_categories: list of other categories that can sub here
(e.g. ["bourbon"] on a rye slot). Cross-category subs get
a small flat penalty so in-category ranks first.
proof_min / proof_max: enforce a proof range (US proof).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sort | Yes | ||
| category | Yes | ||
| proof_max | No | ||
| proof_min | No | ||
| tolerance | No | style | |
| cocktail_id | Yes | ||
| exact_ingredient_id | No | ||
| also_accept_categories | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |