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="")", }The API information is as follows: {'country': 'USA', 'api_name': [{'tool_name': 'Forward & Reverse Geocoding', 'api_name': 'ForwardGeocoding', 'api_description': 'Turn an address into latitude and longitude (e.g. to display on a map) by schematic input.', 'required_parameters': [], 'optional_parameters': [{'name': 'json_callback', 'type': 'STRING', 'description': 'Use this with format=json to define a callback function for jsonp.', 'default': ''}, {'name': 'polygon_kml', 'type': 'ENUM', 'description': 'KML representation of a polygon.', 'default': ''}, {'name': 'bounded', 'type': 'ENUM', 'description': 'Used in conjunction with viewbox to search only in an area.', 'default': ''}, {'name': 'addressdetails', 'type': 'ENUM', 'description': 'Include additional address details in the response.', 'default': ''}, {'name': 'city', 'type': 'STRING', 'description': 'City name to search for.', 'default': 'New York City'}, {'name': 'namedetails', 'type': 'ENUM', 'description': 'Set this to 1 to receive different spellings in different languages of a returned place. Default is 0.', 'default': ''}, {'name': 'countrycodes', 'type': 'STRING', 'description': 'Two letter country code to restrict area to search in.', 'default': ''}, {'name': 'limit', 'type': 'ENUM', 'description': 'Limit the number of results returned.', 'default': ''}, {'name': 'accept-language', 'type': 'STRING', 'description': 'Set the query and response language.', 'default': 'en'}, {'name': 'format', 'type': 'ENUM', 'description': 'Response format.', 'default': ''}, {'name': 'postalcode', 'type': 'STRING', 'description': 'Postal code to search for.', 'default': '10011'}, {'name': 'country', 'type': 'STRING', 'description': 'Country name to search in.', 'default': 'USA'}, {'name': 'county', 'type': 'STRING', 'description': 'County name to search in.', 'default': ''}, {'name': 'state', 'type': 'STRING', 'description': 'State name to search in.', 'default': 'NY'}, {'name': 'street', 'type': 'STRING', 'description': 'Street name to search for.', 'default': '34 West 13th Street'}, {'name': 'viewbox', 'type': 'STRING', 'description': 'Restrict search area to a bounded box defined by two coordinates.', 'default': ''}, {'name': 'polygon_text', 'type': 'ENUM', 'description': 'Text representation of a polygon.', 'default': ''}, {'name': 'polygon_geojson', 'type': 'ENUM', 'description': 'GeoJSON representation of a polygon.', 'default': ''}, {'name': 'polygon_threshold', 'type': 'NUMBER', 'description': 'Threshold for polygon matching.', 'default': '0.0'}, {'name': 'polygon_svg', 'type': 'ENUM', 'description': 'SVG representation of a polygon.', 'default': ''}], 'method': 'GET'}], 'query': 'Please check the coordinates for 1600 Amphitheatre Parkway, Mountain View, CA, and include any relevant details.', 'relevant_apis': [{'tool_name': 'Forward & Reverse Geocoding', 'api_name': 'ForwardGeocoding'}], 'query_id': 8, 'claude_score': 4, 'gemini_score': 5, 'translated_query': 'Please check the coordinates for 1600 Amphitheatre Parkway, Mountain View, CA, and include any relevant details.'} The task is as follows: Please check the coordinates for 1600 Amphitheatre Parkway, Mountain View, CA, and include any relevant details. You respond:Assistant:
- Assistant
{ "Thought": "To obtain the coordinates and relevant details for the specified address, I will use the ForwardGeocoding API. This API can convert the address into latitude and longitude and provide additional details. The parameters needed include the street address, city, state, and possibly setting address details to ensure comprehensive information. The country parameter will be set to USA, and address details will be included for thoroughness.", "Action": "ForwardGeocoding(street='1600 Amphitheatre Parkway', city='Mountain View', state='CA', country='USA', addressdetails='1', format='json')" }