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 Nearby', 'api_description': 'Search businesses nearby specific geographic coordinates.', 'required_parameters': [{'name': 'query', 'type': 'STRING', 'description': 'Search query / keyword. Example: `Bars and pubs`.', 'default': 'plumbers'}, {'name': 'lng', 'type': 'NUMBER', 'description': 'Longitude of the geographic coordinates to search nearby.', 'default': '-121.925337'}, {'name': 'lat', 'type': 'NUMBER', 'description': 'Latitude of the geographic coordinates to search nearby.', 'default': '37.359428'}], 'optional_parameters': [{'name': 'X-User-Agent', 'type': 'ENUM', 'description': 'Device type for the search. Default `desktop`.', 'default': ''}, {'name': 'language', 'type': 'STRING', 'description': 'Set the language of the results.', 'default': 'en'}, {'name': 'subtypes', 'type': 'STRING', 'description': 'Find businesses with specific subtypes.', 'default': ''}, {'name': 'fields', 'type': 'STRING', 'description': 'A comma-separated list of business fields to include in the response.', 'default': ''}, {'name': 'limit', 'type': 'STRING', 'description': 'Maximum number of businesses to return (1-500).', 'default': '20'}, {'name': 'region', 'type': 'STRING', 'description': 'Query Google Maps from a particular region or country.', 'default': 'us'}], 'method': 'GET'}], 'query': 'What are the top-rated auto repair shops near me in Dallas? I need to get my car serviced soon.', 'relevant_apis': [{'tool_name': 'Local Business Data', 'api_name': 'Search Nearby'}], 'query_id': 10, 'claude_score': 4, 'gemini_score': 4, 'translated_query': 'What are the top-rated auto repair shops near me in Dallas? I need to get my car serviced soon.'} The task is as follows: What are the top-rated auto repair shops near me in Dallas? I need to get my car serviced soon. You respond: - Assistantjson
{ "Thought": "To find the top-rated auto repair shops in Dallas, I need to use the 'Search Nearby' API from the 'Local Business Data' tool. This will allow me to search for businesses related to 'auto repair' by providing the geographic coordinates for Dallas. I should ensure to specify the query for 'auto repair' and set an appropriate number of results to fetch.", "Action": "Search Nearby(query='auto repair', lng='-96.7970', lat='32.7767', limit='10', language='en', region='us')" }