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', 'api_name': '距离计算', 'api_description': '计算单起点到多终点或多起点到单终点的路线距离', 'required_parameters': [{'name': 'key', 'type': 'string', 'description': 'api_key', 'default': '6LDBZ-BF4HK-G2ZJA-ABCNH-3A44S-7OFZI'}, {'name': 'mode', 'type': 'string', 'description': '计算方式:driving(驾车)、walking(步行)。默认:driving', 'default': 'driving'}, {'name': 'from', 'type': 'string', 'description': '起点坐标,格式:lat,lng;lat,lng...(经度与纬度用英文逗号分隔,坐标间用英文分号分隔)', 'default': ''}, {'name': 'to', 'type': 'string', 'description': '终点坐标,格式:lat,lng;lat,lng...(经度与纬度用英文逗号分隔,坐标间用英文分号分隔)', 'default': ''}], 'optional_parameters': [{'name': 'output', 'type': 'string', 'description': '返回格式', 'default': ''}, {'name': 'callback', 'type': 'string', 'description': 'JSONP方式回调函数', 'default': ''}], 'method': 'GET'}], 'query': '我需要知道从武汉到长沙的驾车路线距离。', 'relevant_apis': [{'tool_name': '距离计算API', 'api_name': '距离计算'}], 'query_id': 5, 'claude_score': 4, 'gemini_score': 4, 'translated_query': '我需要知道从武汉到长沙的驾车路线距离。'} The task is as follows: 我需要知道从武汉到长沙的驾车路线距离。 You respond:Assistant:
- Assistantjson
{ "Thought": "The task requires calculating the driving distance from Wuhan to Changsha. According to the available API information, the '距离计算API' can be used to perform this task by specifying the start and end coordinates.", "Action": "距离计算(key='6LDBZ-BF4HK-G2ZJA-ABCNH-3A44S-7OFZI', mode='driving', from='30.5931,114.3054', to='28.2282,112.9388')" }