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': '¿Puedes ayudarme a encontrar la mejor ruta desde Dakar hasta Saint-Louis, incluyendo la distancia y el tiempo de viaje?', 'relevant_apis': [{'tool_name': 'Senegal API', 'api_name': 'Directions Between 2 Locations'}], 'query_id': 1, 'claude_score': 4, 'gemini_score': 5, 'translated_query': 'Puedes ayudarme a encontrar la mejor ruta desde Dakar hasta Saint-Louis, incluyendo la distancia y el tiempo de viaje?'} The task is as follows: Puedes ayudarme a encontrar la mejor ruta desde Dakar hasta Saint-Louis, incluyendo la distancia y el tiempo de viaje? You respond: - Assistantjson
{ "Thought": "The task requires finding the best route between Dakar and Saint-Louis in Senegal, including the distance and travel time. The relevant API provided is 'Directions Between 2 Locations' from the Senegal API.", "Action": "Directions Between 2 Locations(start_lon=-17.466675, start_lat=14.716677, end_lon=-16.465945, end_lat=16.032639, distance_unit='km')" }