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': 'Facilities Lookup', 'api_description': 'This endpoint allows you to get facilities in Senegal like hospital, bank, college, etc. by providing optional query parameters for facility type, region, and city. It returns a list of facilities that match the query parameters.', 'required_parameters': [{'name': 'region', 'type': 'STRING', 'description': 'The region where the facility is located', 'default': 'Dakar'}, {'name': 'type', 'type': 'STRING', 'description': 'The type of amenity facility to search for (default: hospital). Options include aerodrome, bar, cafe, fast_food, pub, restaurant, college, driving_school, school, university, bank, atm, pharmacy, etc.', 'default': 'hospital'}], 'optional_parameters': [{'name': 'city', 'type': 'STRING', 'description': 'The city where the facility is located', 'default': 'Touba'}, {'name': 'limit', 'type': 'STRING', 'description': 'The number of facilities to query.', 'default': '10'}], 'method': 'GET'}], 'query': 'Please look up colleges in Saint-Louis; I’m considering enrolling in a program there.', 'relevant_apis': [{'tool_name': 'Senegal API', 'api_name': 'Facilities Lookup'}], 'query_id': 2, 'claude_score': 4, 'gemini_score': 5, 'translated_query': "Veuillez rechercher des universités à Saint-Louis ; j'envisage de m'inscrire à un programme là-bas."} The task is as follows: Veuillez rechercher des universités à Saint-Louis ; j'envisage de m'inscrire à un programme là-bas. You respond: - Assistantjson
{ "Thought": "I need to find colleges in the city of Saint-Louis, Senegal, using the Facilities Lookup API. The relevant parameters to use are the type of facility, which should be 'college', and the city, which should be 'Saint-Louis'. I will set the region to its default since it's not specified.", "Action": "Facilities Lookup(region='Dakar', type='college', city='Saint-Louis', limit='10')" }