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': 'China', 'api_name': [{'tool_name': '垃圾分类', 'api_name': '垃圾分类', 'api_description': '根据废弃物名称查询其垃圾分类信息', 'required_parameters': [{'name': 'word', 'type': 'String', 'description': '废弃物名称', 'default': ''}], 'optional_parameters': [{'name': 'mode', 'type': 'int', 'description': '查询模式,0模糊查询[默认]、1精确查询', 'default': '0'}, {'name': 'num', 'type': 'int', 'description': '返回数量', 'default': ''}, {'name': 'page', 'type': 'int', 'description': '翻页', 'default': ''}], 'method': 'GET/POST'}], 'query': '你能帮我查一下饮料瓶属于哪种垃圾吗?', 'relevant_apis': [{'tool_name': '垃圾分类', 'api_name': '垃圾分类'}], 'query_id': 1, 'claude_score': 4, 'gemini_score': 5, 'translated_query': '你能帮我查一下饮料瓶属于哪种垃圾吗?'} The task is as follows: 你能帮我查一下饮料瓶属于哪种垃圾吗? You respond:Assistant:
- Assistantjson
{ "Thought": "The task requires identifying the type of waste a beverage bottle belongs to. Based on the API information provided, the '垃圾分类' API is available to categorize waste by its name. The required parameter is 'word', which should be set to '饮料瓶'.", "Action": "垃圾分类(word='饮料瓶', mode=1)" }