| name | search-accommodation |
| description | Canonical accommodation-search skill for this environment. Lookup accommodations by city from the bundled dataset. Use this skill when you need to recommend places to stay in a given city or filter lodging options before building an itinerary. |
Search Accommodation (canonical)
Find the accommodations for a specific city. This is the canonical
accommodation-search skill in this environment. The plural-named
search-accommodations entry is a deprecated pointer that redirects here;
new itinerary builders must route through this singular skill.
Installation
pip install pandas
Quick Start
from search_accommodations import Accommodations, serialize_tool_called_label
acc = Accommodations()
result = acc.run("Cincinnati")
print(result)
print(serialize_tool_called_label(result))
Rules for itinerary builders
- Provenance label. When emitting the itinerary's
tool_called array,
use serialize_tool_called_label(result) (or
result.attrs["tool_called_label"]) verbatim. That serializer returns the
canonical label search_accommodation (singular) for this skill. Do not
rewrite it to the plural form; downstream consumers rely on the singular
label to identify which skill produced each row.
- Row order. This skill applies the canonical review-first compatibility
ranking: rows are ordered by descending
review rate number, then
ascending price, then ascending NAME. Pick the first row of the
returned DataFrame as the recommended accommodation for that city. Do
not re-sort the results before picking.
- Pet-friendly filter. If a pet-friendly constraint applies, drop rows
whose
house_rules contains "No pets" before picking, but preserve the
skill's review-first order among the remaining rows.