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': 5, 'claude_score': 5, 'gemini_score': 5, 'translated_query': '我需要从成都双流机场到春熙路的驾车路线,能否设置出发时间为下午三点?'} The task is as follows: 我需要从成都双流机场到春熙路的驾车路线,能否设置出发时间为下午三点? You respond:Assistant:
- Assistant
{ "Thought": "The task requires planning a driving route from Chengdu Shuangliu Airport to Chunxi Road with a specific departure time of 3 PM. I need to use the '驾车路线规划' API and set the required parameters including 'origin' and 'destination' with their respective coordinates, as well as the optional 'departure_time' parameter for 3 PM.", "Action": "驾车路线规划(origin='30.5723,104.0665', destination='30.6570,104.0657', ak='YOUR_API_KEY', departure_time='15:00')" }