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': 'Senegal', 'api_name': [{'tool_name': 'Senegal API', 'api_name': 'Directions Between 2 Locations', 'api_description': 'This endpoint returns information about the route between two locations in terms of distance, duration, and steps.', 'required_parameters': [{'name': 'start_lon', 'type': 'NUMBER', 'description': 'Longitude of the starting point (required)', 'default': '-16.0755888102153'}, {'name': 'end_lon', 'type': 'NUMBER', 'description': 'Longitude of the ending point (required)', 'default': '-17.447938'}, {'name': 'end_lat', 'type': 'NUMBER', 'description': 'Latitude of the ending point (required)', 'default': '14.693425'}, {'name': 'start_lat', 'type': 'NUMBER', 'description': 'Latitude of the starting point (required)', 'default': '14.14129815'}], 'optional_parameters': [{'name': 'distance_unit', 'type': 'STRING', 'description': 'Unit of distance measurement, valid options are km (default) and mi.', 'default': 'km'}], 'method': 'GET'}], 'query': 'Ayúdame a encontrar la ruta más rápida desde Banjul a Dakar; ¿puedes darme los detalles del viaje?', 'relevant_apis': [{'tool_name': 'Senegal API', 'api_name': 'Directions Between 2 Locations'}], 'query_id': 10, 'claude_score': 4, 'gemini_score': 4, 'translated_query': "Aidez-moi à trouver l'itinéraire le plus rapide de Banjul à Dakar ; pouvez-vous me donner les détails du voyage ?"} The task is as follows: Aidez-moi à trouver l'itinéraire le plus rapide de Banjul à Dakar ; pouvez-vous me donner les détails du voyage ? You respond: - Assistantjson
{ "Thought": "I need to use the 'Directions Between 2 Locations' API from the 'Senegal API' to find the fastest route between Banjul and Dakar. I will set the starting location to Banjul's coordinates and the ending location to Dakar's coordinates.", "Action": "Senegal API: Directions Between 2 Locations(start_lon='-16.581', start_lat='13.4549', end_lon='-17.447938', end_lat='14.693425', distance_unit='km')" }