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": "search", "description": "Search for images using the Webit Image Search API.", "parameters": {"q": {"description": "The search query string.", "type": "str", "default": "pizza"}, "number": {"description": "The number of search results to return. Defaults to 10.", "type": "int, optional", "default": "10"}, "search_filter": {"description": "Additional search filters for more specific results. Defaults to None.", "type": "str, optional", "default": ""}}}, {"name": "web_search", "description": "Performs a web search using the specified query and parameters, and returns the search results.", "parameters": {"q": {"description": "Search query string.", "type": "str", "default": "word cup"}, "num": {"description": "Number of search results to return. Valid values are integers between 1 and 20, inclusive. Defaults to 10.", "type": "int, optional", "default": "10"}, "start": {"description": "The index of the first result to return. Defaults to '0'.", "type": "str, optional", "default": "0"}, "gl": {"description": "Two-letter country code to boost search results from that country. Defaults to 'us'.", "type": "str, optional", "default": "us"}, "lr": {"description": "Restricts the search to documents written in a particular language. Defaults to 'lang_en'.", "type": "str, optional", "default": "lang_en"}}}, {"name": "get_trend_keyword", "description": "Retrieve trending keywords for a specific date and geographic location using the given RapidAPI key.", "parameters": {"date": {"description": "The date for which to retrieve trending keywords. Defaults to '2023-05-18'.", "type": "str", "default": "2023-05-18"}, "geo": {"description": "The geographic location for which to retrieve trending keywords. Defaults to 'US'.", "type": "str", "default": "US"}}}]
Perform a web search for 'machine learning' with 15 results. Also, get the trending keywords in Japan for yesterday.
user
assistant
[{"name": "web_search", "arguments": {"q": "machine learning", "num": 15}}, {"name": "get_trend_keyword", "arguments": {"date": "2023-05-17", "geo": "JP"}}]