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': 'UK', 'api_name': [{'tool_name': 'Wyre Data', 'api_name': 'Get ratings by restaurant', 'api_description': 'Retrieve the Food Hygiene Rating for a specified restaurant.', 'required_parameters': [{'name': 'restaurant', 'type': 'string', 'description': 'The name of the restaurant for which to retrieve the hygiene rating.', 'default': 'Shovels Inn'}], 'optional_parameters': [], 'method': 'GET'}], 'query': 'What’s the hygiene rating for Dishoom? I want to make sure it’s safe to dine there.', 'relevant_apis': [{'tool_name': 'Wyre Data', 'api_name': 'Get ratings by restaurant'}], 'query_id': 4, 'claude_score': 5, 'gemini_score': 5, 'translated_query': 'What’s the hygiene rating for Dishoom? I want to make sure it’s safe to eat there.'} The task is as follows: What’s the hygiene rating for Dishoom? I want to make sure it’s safe to eat there. You respond:Assistant:
- Assistantjson
{ "Thought": "To find out if Dishoom is safe to eat at, I need to get its hygiene rating. The API 'Get ratings by restaurant' from Wyre Data is suitable for retrieving this information.", "Action": "Get ratings by restaurant(restaurant='Dishoom')" }