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="")", }The API information is as follows: {'country': 'USA', 'api_name': [{'tool_name': 'Epic Store Games', 'api_name': 'Search On Sale Games', 'api_description': 'Retrieve a list of games currently on sale based on search criteria.', 'required_parameters': [{'name': 'searchWords', 'type': 'STRING', 'description': 'Keywords to search for games on sale.', 'default': 'Mount'}], 'optional_parameters': [{'name': 'locale', 'type': 'STRING', 'description': "Specify the language for the response. Default is 'us'.", 'default': 'us'}, {'name': 'country', 'type': 'STRING', 'description': "Specify the country for pricing information. Default is 'us'.", 'default': 'us'}, {'name': 'categories', 'type': 'ENUM', 'description': "Filter results by game categories. Default is 'Games'.", 'default': ''}], 'method': 'GET'}], 'query': 'Show me all games currently on sale that match the keyword "Survival."', 'relevant_apis': [{'tool_name': 'Epic Store Games', 'api_name': 'Search On Sale Games'}], 'query_id': 4, 'claude_score': 4, 'gemini_score': 4, 'translated_query': 'Show me all games currently on sale that match the keyword "Survival."'} The task is as follows: Show me all games currently on sale that match the keyword "Survival." You respond:Assistant:
- Assistant
{ "Thought": "I need to find games on sale that match the keyword 'Survival'. The relevant API for this task is 'Search On Sale Games' provided by Epic Store Games.", "Action": "Search On Sale Games(searchWords='Survival', locale='us', country='us')" }