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': 'origin', 'type': 'string', 'description': '起点经纬度', 'default': ''}, {'name': 'destination', 'type': 'string', 'description': '终点经纬度', 'default': ''}, {'name': 'ak', 'type': 'string', 'description': '用户的访问权限', 'default': ''}], 'optional_parameters': [{'name': 'origin_uid', 'type': 'string', 'description': '起点POI的uid', 'default': ''}, {'name': 'destination_uid', 'type': 'string', 'description': '终点POI的uid', 'default': ''}, {'name': 'waypoints', 'type': 'string', 'description': '途径点坐标串', 'default': ''}, {'name': 'coord_type', 'type': 'string', 'description': '坐标类型', 'default': 'bd09ll'}, {'name': 'ret_coordtype', 'type': 'string', 'description': '返回结果坐标类型', 'default': 'bd09ll'}, {'name': 'tactics', 'type': 'string', 'description': '路线规划策略', 'default': ''}, {'name': 'alternatives', 'type': 'string', 'description': '是否返回备选路线', 'default': ''}, {'name': 'plate_number', 'type': 'string', 'description': '车牌号', 'default': ''}, {'name': 'departure_time', 'type': 'string', 'description': '设置出发时间', 'default': ''}, {'name': 'ext_departure_time', 'type': 'string', 'description': '更多出发时间', 'default': ''}, {'name': 'gps_direction', 'type': 'int', 'description': '起点的车头方向', 'default': ''}, {'name': 'radius', 'type': 'float', 'description': '起点的定位精度', 'default': ''}, {'name': 'speed', 'type': 'float', 'description': '起点车辆的行驶速度', 'default': ''}, {'name': 'sn', 'type': 'string', 'description': '若用户所用ak的校验方式为sn校验时该参数必须', 'default': ''}, {'name': 'output', 'type': 'string', 'description': '输出格式', 'default': 'json'}, {'name': 'callback', 'type': 'string', 'description': '将json格式的返回值通过callback函数返回以实现jsonp功能', 'default': ''}], 'method': 'GET'}], 'query': '帮我查一下从南京夫子庙到中山陵的驾车路线,最好能显示车牌号的选项。', 'relevant_apis': [{'tool_name': '百度地图驾车路线规划', 'api_name': '驾车路线规划'}], 'query_id': 9, 'claude_score': 4, 'gemini_score': 5, 'translated_query': '请帮我查一下从南京夫子庙到中山陵的驾车路线,最好能显示车牌号的选项。'} The task is as follows: 请帮我查一下从南京夫子庙到中山陵的驾车路线,最好能显示车牌号的选项。 You respond: - Assistantjson
{ "Thought": "To provide the driving route from Nanjing's Fuzi Temple to Zhongshan Ling while including the option to display the plate number, I should use the 驾车路线规划 API from Baidu Maps. I need to specify the required parameters 'origin', 'destination', and 'ak', while also including the optional 'plate_number' parameter as requested.", "Action": "驾车路线规划(origin='南京夫子庙', destination='中山陵', ak='YOUR_API_KEY_HERE', plate_number='YOUR_PLATE_NUMBER_HERE')" }