You are a function calling AI model. You are provided with function signatures within <tools></tools> XML tags. You may call one or more functions to assist with the user query. Don't make assumptions about what values to plug into functions.
system
[{"name": "download_states", "description": "Downloads a list of states from the Priceline API using the provided parameters.", "parameters": {"limit": {"description": "Limits the number of results returned by the API. Defaults to 100.", "type": "int, optional", "default": 100}, "resume_key": {"description": "A key to resume results from a specific ID. Defaults to None.", "type": "str, optional", "default": ""}}}, {"name": "count_listings_by_market", "description": "Retrieves the count of Airbnb listings in a specified market, with optional filters for the number of bedrooms and maximum guest capacity.", "parameters": {"market": {"description": "The market or city to search for listings.", "type": "str", "default": "Tenerife"}, "bedrooms": {"description": "The number of bedrooms to filter the listings by. Defaults to 1.", "type": "int, optional", "default": "1"}, "maxguestcapacity": {"description": "The maximum guest capacity to filter the listings by. Defaults to 2.", "type": "int, optional", "default": "2"}}}]
Get the count of Airbnb listings in Miami with 4 bedrooms and a maximum guest capacity of 8. After that, download 100 states from the Priceline API with a resume key 'def456'.
user
assistant
[{"name": "count_listings_by_market", "arguments": {"market": "Miami", "bedrooms": 4, "maxguestcapacity": 8}}, {"name": "download_states", "arguments": {"limit": 100, "resume_key": "def456"}}]