Decide restaurant fit
compass_decide_fitEvaluate whether a restaurant fits a user's dietary profile. Returns fit, not fit, or unknown with reason codes, evidence, and user-friendly wording.
Instructions
Conservative fit decision for a restaurant against a user dietary profile. Returns "fit", "not_fit", or "unknown" with reason codes, evidence, and user wording. Returns "unknown" rather than overclaiming.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | Response detail mode; rich includes fuller evidence and reasoning | rich |
| compass_id | Yes | Compass restaurant ID, obtained from compass_search or compass_enrich_restaurant | |
| user_profile | Yes | Required dietary profile for the restaurant fit decision |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| decision | Yes | Conservative decision for the submitted profile | |
| evidence | Yes | Evidence supporting the decision | |
| compass_id | Yes | Stable Compass restaurant ID | |
| confidence | Yes | Decision confidence | |
| risk_flags | No | Risk flags that should be surfaced to the user | |
| reason_codes | Yes | Compass public reason codes explaining the decision | |
| source_freshness | No | Age and refresh guidance for the evidence behind a result | |
| last_evaluated_at | No | When Compass last evaluated this restaurant for decision freshness | |
| recommended_user_text | No | Conservative user-facing wording | |
| verification_required | No | True when the user should verify with the restaurant before relying on the result |