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": "states_list", "description": "Fetches a list of states with optional filtering and sorting criteria.", "parameters": {"country_id": {"description": "The ID of the country to filter states by.", "type": "str, optional", "default": ""}, "sortorder": {"description": "The order in which to sort the results. Can be 'asc' for ascending or 'desc' for descending.", "type": "str, optional", "default": ""}, "sortby": {"description": "The field by which to sort the results (e.g., 'name', 'code').", "type": "str, optional", "default": ""}, "limit": {"description": "The maximum number of results to retrieve.", "type": "int, optional", "default": ""}, "country_code": {"description": "The code of the country to filter states by. Defaults to 'IN'.", "type": "str, optional", "default": "IN"}, "country_name": {"description": "The name of the country to filter states by.", "type": "str, optional", "default": ""}}}, {"name": "search", "description": "Performs a search query on the specified search engine using given parameters and returns the response as JSON or text.", "parameters": {"pageno": {"description": "The page number of the search results.", "type": "int", "default": "1"}, "country": {"description": "The country code for the search localization.", "type": "str", "default": "US"}, "lang": {"description": "The language code for the search localization.", "type": "str", "default": "en"}, "search": {"description": "The search string to query.", "type": "str", "default": "Hello"}, "perpage": {"description": "The number of results per page. Defaults to 10.", "type": "int, optional", "default": "10"}}}, {"name": "pagesjaunes", "description": "This function extracts data from the \"Pages Jaunes\" (Yellow Pages) for a given location and keyword.", "parameters": {"pjpage": {"description": "The page number to retrieve.", "type": "int", "default": "1"}, "pjlocation": {"description": "The location to search within \"Pages Jaunes\".", "type": "str", "default": "Paris"}, "pjkeyword": {"description": "The keyword to search for in \"Pages Jaunes\".", "type": "str", "default": "Restaurant"}}}]
I'm looking for states in Canada. Can you list them? Also, I need to find 'pet stores' in Berlin, can you assist?
user
assistant
[{"name": "states_list", "arguments": {"country_code": "CA"}}, {"name": "search", "arguments": {"pageno": 1, "country": "DE", "lang": "en", "search": "pet stores in Berlin"}}]