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': 'Egypt', 'api_name': [{'tool_name': 'Egypt API', 'api_name': 'Directions Between 2 Locations', 'api_description': 'This endpoint returns information about the route between two locations, including distance, duration, and step-by-step directions.', 'required_parameters': [{'name': 'start_lat', 'type': 'NUMBER', 'description': 'Latitude of the starting point (required)', 'default': '31.1991806'}, {'name': 'end_lon', 'type': 'NUMBER', 'description': 'Longitude of the ending point (required)', 'default': '31.23788289124186'}, {'name': 'start_lon', 'type': 'NUMBER', 'description': 'Longitude of the starting point (required)', 'default': '29.8951716'}, {'name': 'end_lat', 'type': 'NUMBER', 'description': 'Latitude of the ending point (required)', 'default': '30.02313795'}], 'optional_parameters': [{'name': 'distance_unit', 'type': 'STRING', 'description': "Unit of distance measurement, valid options are 'km' (default) and 'mi'.", 'default': 'km'}], 'method': 'GET'}], 'query': 'I’m planning a trip to Alexandria. What’s the quickest way to get there from Cairo, and how far is it?', 'relevant_apis': [{'tool_name': 'Egypt API', 'api_name': 'Directions Between 2 Locations'}], 'query_id': 3, 'claude_score': 4, 'gemini_score': 4, 'translated_query': 'أنا أخطط لرحلة إلى الإسكندرية. ما هي أسرع طريقة للوصول إلى هناك من القاهرة، وكم تبعد؟'} The task is as follows: أنا أخطط لرحلة إلى الإسكندرية. ما هي أسرع طريقة للوصول إلى هناك من القاهرة، وكم تبعد؟ You respond: - Assistantjson
{ "Thought": "To determine the quickest way to get from Cairo to Alexandria and the distance between them, I should use the API that provides directions and information about the route between two locations in Egypt.", "Action": "Directions Between 2 Locations(start_lat=30.0444, start_lon=31.2357, end_lat=31.2156, end_lon=29.9553, distance_unit='km')" }