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': 'ak', 'type': 'string', 'description': 'api_key', 'default': 'hy8VOY8ik4LPjgHHfPFdbA9pE5rzWUwV'}, {'name': 'road_name', 'type': 'string', 'description': '道路名称,例如东二环', 'default': ''}, {'name': 'city', 'type': 'string', 'description': '所在城市,例如北京市', 'default': ''}], 'optional_parameters': [{'name': 'sn', 'type': 'string', 'description': '若用户所用AK的校验方式为SN校验时该参数必须', 'default': ''}], 'method': 'GET'}], 'query': '¿Me podrías informar sobre el estado del tráfico en la Ruta 10 de Shanghai?', 'relevant_apis': [{'tool_name': '道路实时路况查询API', 'api_name': '道路实时路况查询'}], 'query_id': 3, 'claude_score': 5, 'gemini_score': 4, 'translated_query': '你能告诉我上海10号公路的交通状况吗?'} The task is as follows: 你能告诉我上海10号公路的交通状况吗? You respond:Assistant:
- Assistant
{ "Thought": "I need to find the traffic status on Route 10 in Shanghai using the available API. I will use the '道路实时路况查询' API and specify the required parameters: ak, road_name, and city.", "Action": "道路实时路况查询(ak='hy8VOY8ik4LPjgHHfPFdbA9pE5rzWUwV', road_name='10号公路', city='上海市')" }