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': 6, 'claude_score': 5, 'gemini_score': 4, 'translated_query': '能帮我找到从杭州西湖到灵隐寺的驾车路线吗?我希望能看到不同的路线选择。'} The task is as follows: 能帮我找到从杭州西湖到灵隐寺的驾车路线吗?我希望能看到不同的路线选择。 You respond:Assistant:
- Assistant
{ "Thought": "The task is to find driving routes from Hangzhou West Lake to Lingyin Temple and show alternative routes if available. The relevant API is '驾车路线规划' from 百度地图, which provides driving route planning services. The key parameters are 'origin' and 'destination' for the starting and ending points, and 'alternatives' to show different route choices.", "Action": "驾车路线规划(origin='120.1551,30.2741', destination='120.1035,30.2636', ak='your_api_key', alternatives='1')" }