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': 'Uganda', 'api_name': [{'tool_name': 'Uganda 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': 'end_lat', 'type': 'NUMBER', 'description': 'Latitude of the ending point (required)', 'default': '0.32493795000000003'}, {'name': 'start_lat', 'type': 'NUMBER', 'description': 'Latitude of the starting point (required)', 'default': '0.365816'}, {'name': 'end_lon', 'type': 'NUMBER', 'description': 'Longitude of the ending point (required)', 'default': '32.57523607707668'}, {'name': 'start_lon', 'type': 'NUMBER', 'description': 'Longitude of the starting point (required)', 'default': '32.529226'}], 'optional_parameters': [{'name': 'distance_unit', 'type': 'STRING', 'description': 'Unit of distance measurement, valid options are km (default) and mi.', 'default': 'km'}], 'method': 'GET'}], 'query': 'Please find the route from Kisoro to Kabale and let me know if it’s a scenic drive.', 'relevant_apis': [{'tool_name': 'Uganda API', 'api_name': 'Directions Between 2 Locations'}], 'query_id': 7, 'claude_score': 4, 'gemini_score': 4, 'translated_query': 'Nyamba osanga ekitundu okuva Kisoro okutuuka Kabale era nze nzija kukuwandiikira singa kyekirungi okukozesa.'} The task is as follows: Nyamba osanga ekitundu okuva Kisoro okutuuka Kabale era nze nzija kukuwandiikira singa kyekirungi okukozesa. You respond:Assistant:
- Assistant
{ "Thought": "To complete the task, I need to determine the route between Kisoro and Kabale and assess if it is a scenic drive. I will use the 'Directions Between 2 Locations' API from the Uganda API, providing the required parameters for the coordinates of Kisoro and Kabale.", "Action": "Directions_Between_2_Locations(start_lat=\"-1.2851\", start_lon=\"29.6847\", end_lat=\"-1.3262\", end_lon=\"29.9883\", distance_unit=\"km\")" }