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': ''}, {'name': 'page', 'type': 'String', 'description': '翻页', 'default': ''}], 'optional_parameters': [{'name': 'num', 'type': 'String', 'description': '返回数量', 'default': ''}], 'method': 'GET/POST'}], 'query': '知道哪些以三文鱼为主料的菜式吗?请提供相关菜谱。', 'relevant_apis': [{'tool_name': '菜谱查询', 'api_name': '菜谱查询'}], 'query_id': 5, 'claude_score': 4, 'gemini_score': 5, 'translated_query': '知道哪些以三文鱼为主料的菜式吗?请提供相关菜谱。'} The task is as follows: 知道哪些以三文鱼为主料的菜式吗?请提供相关菜谱。 You respond:Assistant:
- Assistantjson
{ "Thought": "To find recipes that use salmon as the main ingredient, I need to use the '菜谱查询' API with the 'word' parameter set to '三文鱼'.", "Action": "菜谱查询(word='三文鱼', page='1')" }