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': 'China', 'api_name': [{'tool_name': '王者荣耀英雄图集API', 'api_name': '英雄皮肤图片获取接口', 'api_description': '通过英雄名称获取对应的英雄皮肤图片', 'required_parameters': [{'name': 'hero', 'type': 'string', 'description': '英雄名称,用于查询特定英雄的皮肤图片', 'default': '无'}], 'optional_parameters': [{'name': 'page', 'type': 'int', 'description': '分页参数,默认为1,用于获取特定页的皮肤图片', 'default': '1'}, {'name': 'limit', 'type': 'int', 'description': '每页返回的图片数量,默认为10', 'default': '10'}], 'method': 'GET'}], 'query': '我想查看“阿轲”的皮肤,能帮我获取第一页的图片吗?', 'relevant_apis': [{'tool_name': '王者荣耀英雄图集API', 'api_name': '英雄皮肤图片获取接口'}], 'query_id': 8, 'claude_score': 5, 'gemini_score': 4, 'translated_query': '我想查看“阿轲”的皮肤,能帮我获取第一页的图片吗?'} The task is as follows: 我想查看“阿轲”的皮肤,能帮我获取第一页的图片吗? You respond:Assistant:
- Assistant
{ "Thought": "The user wants to view the skins for the hero '阿轲'. There is an API available called '英雄皮肤图片获取接口' that can fulfill this request by fetching images of the hero's skins. The required parameter is 'hero', which will be set to '阿轲'. Additionally, to fetch the first page, I will set the 'page' parameter to its default value of 1.", "Action": "英雄皮肤图片获取接口(hero='阿轲', page=1)" }