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': 'Search restaurants by town', 'api_description': 'Find all restaurants located within a specified town or city.', 'required_parameters': [{'name': 'town', 'type': 'string', 'description': 'The name of the town or city to search for restaurants.', 'default': 'hambleton'}], 'optional_parameters': [], 'method': 'GET'}], 'query': 'What are some good places to eat in Manchester?', 'relevant_apis': [{'tool_name': 'Wyre Data', 'api_name': 'Search restaurants by town'}], 'query_id': 3, 'claude_score': 4, 'gemini_score': 4, 'translated_query': 'What are some good places to eat in Manchester?'} The task is as follows: What are some good places to eat in Manchester? You respond:Assistant:
- Assistantjson
{ "Thought": "The task is to find eateries in Manchester. There's a relevant API, 'Search restaurants by town' from Wyre Data, which can be used to fulfill this task by providing the town name.", "Action": "Search restaurants by town(town='Manchester')" }