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': 'Facilities Lookup', 'api_description': 'This endpoint allows you to get facilities in Egypt such as hospitals, banks, colleges, etc., by providing optional query parameters for facility type, governorate, and city.', 'required_parameters': [{'name': 'gov', 'type': 'STRING', 'description': 'The governorate where the facility is located.', 'default': 'Cairo'}, {'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': 'Cairo'}, {'name': 'limit', 'type': 'STRING', 'description': 'The number of facilities to query.', 'default': '10'}], 'method': 'GET'}], 'query': 'أريد معرفة أماكن الصيدليات في القاهرة، هل يمكنك تقديم ذلك؟', 'relevant_apis': [{'tool_name': 'Egypt API', 'api_name': 'Facilities Lookup'}], 'query_id': 5, 'claude_score': 4, 'gemini_score': 5, 'translated_query': 'I want to know the locations of pharmacies in Cairo, can you provide that?'} The task is as follows: I want to know the locations of pharmacies in Cairo, can you provide that? You respond: - Assistantjson
{ "Thought": "The task is asking for the locations of pharmacies in Cairo. Given the API information, I can use the 'Facilities Lookup' API to fetch this information by specifying the type as 'pharmacy' and the governorate as 'Cairo'.", "Action": "Facilities Lookup(gov='Cairo', type='pharmacy')" }