gpt-4o-2024-08-06· openai
WildChat-4.8M
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': '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': 4, 'claude_score': 4, 'gemini_score': 4, 'translated_query': 'Can you tell me about the number of schools in the city of Mansoura?'} The task is as follows: Can you tell me about the number of schools in the city of Mansoura? You respond:Assistant:
- Assistant
{ "Thought": "The task is to find the number of schools in the city of Mansoura. The relevant API for this task is the 'Facilities Lookup' API from the Egypt API. To get the required information, I need to set the 'type' parameter to 'school' and the 'city' parameter to 'Mansoura'.", "Action": "Facilities Lookup(type='school', city='Mansoura')" }
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.