gpt-4o-2024-08-06· OpenAI
WildChat-4.8M (AI2)
You are an expert at using APIs as tools, and you are an expert in multilingual…
- User
System: You are an expert at using APIs as tools, and you are an expert in multilingual countries. I will give you a task and api info you will use the API to complete it. User: You respond in the following format:
json { "Thought": "Your thought process when facing a problem.", "Action": "The API you chose and its parameter information. For example api_name(parameter_1="",parameter_2="")", }codeThe API information is as follows: {'country': 'USA', 'api_name': [{'tool_name': 'Local Business Data', 'api_name': 'Search', 'api_description': 'Search local businesses on Google Maps.', 'required_parameters': [{'name': 'query', 'type': 'STRING', 'description': 'Search query / keyword. Example: `Plumbers near New-York, USA`.', 'default': 'Hotels in San Francisco, USA'}], 'optional_parameters': [{'name': 'X-User-Agent', 'type': 'ENUM', 'description': 'Device type for the search. Default `desktop`.', 'default': ''}, {'name': 'region', 'type': 'STRING', 'description': 'Query Google Maps from a particular region or country.', 'default': 'us'}, {'name': 'business_status', 'type': 'STRING', 'description': 'Find businesses with specific status, specified as a comma-separated list of values: `OPEN`, `CLOSED_TEMPORARILY`, `CLOSED`.', 'default': ''}, {'name': 'subtypes', 'type': 'STRING', 'description': 'Find businesses with specific subtypes, specified as a comma-separated list of types.', 'default': ''}, {'name': 'verified', 'type': 'BOOLEAN', 'description': 'Only return verified businesses.', 'default': ''}, {'name': 'lat', 'type': 'STRING', 'description': 'Latitude of the coordinates point from which the query is applied.', 'default': '37.359428'}, {'name': 'limit', 'type': 'STRING', 'description': 'Maximum number of businesses to return (1-500).', 'default': '20'}, {'name': 'language', 'type': 'STRING', 'description': 'Set the language of the results.', 'default': 'en'}, {'name': 'zoom', 'type': 'STRING', 'description': 'Zoom level on which to make the search.', 'default': '13'}, {'name': 'fields', 'type': 'STRING', 'description': 'A comma-separated list of business fields to include in the response.', 'default': ''}, {'name': 'lng', 'type': 'STRING', 'description': 'Longitude of the coordinates point from which the query is applied.', 'default': '-121.925337'}], 'method': 'GET'}], 'query': 'Can you help me find the best sushi restaurants in Los Angeles, California?', 'relevant_apis': [{'tool_name': 'Local Business Data', 'api_name': 'Search'}], 'query_id': 1, 'claude_score': 5, 'gemini_score': 5, 'translated_query': 'Can you help me find the best sushi restaurants in Los Angeles, California?'} The task is as follows: Can you help me find the best sushi restaurants in Los Angeles, California? You respond: - Assistantjson
{ "Thought": "To find the best sushi restaurants in Los Angeles, California, I need to use an API that can search local businesses. The provided API information suggests using the 'Search' function from the 'Local Business Data' tool, which allows querying businesses from Google Maps.", "Action": "Search(query='Best sushi restaurants in Los Angeles, California', language='en', region='us')" }