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': 'GeocodingSearch', 'api_description': 'Free-form query forward geocoding.', 'required_parameters': [{'name': 'q', 'type': 'STRING', 'description': 'Search query for geocoding.', 'default': 'New York City NY USA'}], 'optional_parameters': [{'name': 'countrycodes', 'type': 'STRING', 'description': 'Two-letter country code to restrict search to a country.', 'default': ''}, {'name': 'json_callback', 'type': 'STRING', 'description': 'Name of json callback function for jsonp calls.', 'default': ''}, {'name': 'polygon_text', 'type': 'ENUM', 'description': 'Text representation of a polygon.', 'default': ''}, {'name': 'namedetails', 'type': 'ENUM', 'description': 'Include different spellings in different languages.', 'default': ''}, {'name': 'limit', 'type': 'ENUM', 'description': 'Limit the number of results returned.', 'default': ''}, {'name': 'viewbox', 'type': 'STRING', 'description': 'Restrict search area to a bounded box defined by two coordinates.', 'default': ''}, {'name': 'format', 'type': 'ENUM', 'description': 'Response format.', 'default': ''}, {'name': 'polygon_geojson', 'type': 'ENUM', 'description': 'GeoJSON representation of a polygon.', 'default': ''}, {'name': 'bounded', 'type': 'ENUM', 'description': 'Use bounded=1 in conjunction with viewbox to restrict search area.', 'default': ''}, {'name': 'polygon_svg', 'type': 'ENUM', 'description': 'SVG representation of a polygon.', 'default': ''}, {'name': 'polygon_threshold', 'type': 'NUMBER', 'description': 'Threshold for polygon matching.', 'default': '0.0'}, {'name': 'accept-language', 'type': 'STRING', 'description': 'Set the query and response language.', 'default': 'en'}, {'name': 'addressdetails', 'type': 'ENUM', 'description': 'Include additional address details in the response.', 'default': ''}], 'method': 'GET'}], 'query': 'I’d like to know the latitude and longitude of the White House in Washington, D.C.', 'relevant_apis': [{'tool_name': 'Forward & Reverse Geocoding', 'api_name': 'GeocodingSearch'}], 'query_id': 9, 'claude_score': 5, 'gemini_score': 5, 'translated_query': 'I’d like to know the latitude and longitude of the White House in Washington, D.C.'} The task is as follows: I’d like to know the latitude and longitude of the White House in Washington, D.C. You respond:Assistant:
- Assistant
{ "Thought": "I need to find the geographical coordinates of the White House in Washington, D.C. using a forward geocoding tool. The GeocodingSearch API is suitable for this task as it can convert a place name into geographic coordinates.", "Action": "GeocodingSearch(q='White House, Washington, D.C.', countrycodes='us', limit='1', accept-language='en')" }
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.