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', 'api_name': '火车票查询API', 'api_description': '查询火车票信息', 'required_parameters': [{'name': 'time', 'type': 'string', 'description': '出发时间,格式为YYYY-MM-DD', 'default': ''}, {'name': 'arrival', 'type': 'string', 'description': '到达城市', 'default': ''}, {'name': 'departure', 'type': 'string', 'description': '出发城市', 'default': ''}], 'optional_parameters': [], 'method': 'GET'}], 'query': '查询一下2023-11-15从济南出发去苏州的列车。', 'relevant_apis': [{'tool_name': '火车票查询API', 'api_name': '火车票查询API'}], 'query_id': 8, 'claude_score': 5, 'gemini_score': 5, 'human_score': 5, 'translated_query': '查询一下2023年11月15日济南到苏州的火车。\n'} The task is as follows: 查询一下2023年11月15日济南到苏州的火车。 You respond:Assistant:
- Assistantjson
{ "Thought": "The task requires querying train information for travel from Jinan to Suzhou on November 15, 2023. I will use the `火车票查询API` because it is specifically designed to query train ticket information.", "Action": "火车票查询API(time='2023-11-15', arrival='苏州', departure='济南')" }