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_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': 1, 'claude_score': 5, 'gemini_score': 5, 'translated_query': '请告诉我从北京市中心到长城的驾车路线,确保我能看到最佳路线和备选路线。'} The task is as follows: 请告诉我从北京市中心到长城的驾车路线,确保我能看到最佳路线和备选路线。 You respond:Assistant:
- Assistant
{ "Thought": "To provide driving directions from the center of Beijing to the Great Wall while ensuring the best route and alternative routes are shown, I need to determine the coordinates for both the starting point and destination. Then, I will use the '驾车路线规划' API with specified parameters, including options for alternative routes.", "Action": "驾车路线规划(origin='39.9042,116.4074', destination='40.4319,116.5704', ak='your_api_key', alternatives='true')" }