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': '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': 9, 'claude_score': 5, 'gemini_score': 4, 'translated_query': '如果我想步行从西安钟楼到大雁塔,会耗时多久?'} The task is as follows: 如果我想步行从西安钟楼到大雁塔,会耗时多久? You respond:Assistant:
- Assistant
{ "Thought": "To determine the walking time from Xi'an Bell Tower to the Giant Wild Goose Pagoda, I should use the 距离矩阵 API to calculate the distance and estimated travel time. I need to set the mode to 'walking' and provide the coordinates for both locations.", "Action": "距离矩阵(key='6LDBZ-BF4HK-G2ZJA-ABCNH-3A44S-7OFZI', mode='walking', from='34.2604,108.9470', to='34.2231,108.9691')" }