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': 6, 'claude_score': 4, 'gemini_score': 4, 'translated_query': 'Can you tell me if the steamed bun bag is recyclable waste?'} The task is as follows: Can you tell me if the steamed bun bag is recyclable waste? You respond:Assistant:
- Assistantjson
{ "Thought": "To determine if a 'steamed bun bag' is recyclable waste, I should use the '垃圾分类' API to search for its waste classification information. The 'word' parameter should be set to the term representing the item in question.", "Action": "垃圾分类(word='馒头袋', mode='1')" }