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': '39.12,116.83;30.21,115.43'}, {'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': 2, 'claude_score': 5, 'gemini_score': 4, 'translated_query': '我想知道从深圳市福田区到广州白云机场快速路的步行距离。'} The task is as follows: 我想知道从深圳市福田区到广州白云机场快速路的步行距离。 You respond:Assistant:
- Assistantjson
{ "Thought": "To determine the walking distance between two locations in China, we can use the '距离矩阵API' which calculates distances and estimated travel times. The task requires obtaining the walking distance from Shenzhen Futian District to Guangzhou Baiyun Airport Expressway.", "Action": "距离矩阵(key='6LDBZ-BF4HK-G2ZJA-ABCNH-3A44S-7OFZI', mode='walking', from='22.52,114.05', to='23.39,113.30')" }