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': 'city', 'type': 'string', 'description': '需要查询天气的城市名称', 'default': ''}], 'optional_parameters': [], 'method': 'GET'}], 'query': '我想知道广州明天的天气预报,有雨吗?', 'relevant_apis': [{'tool_name': '天气查询API', 'api_name': '天气查询接口'}], 'query_id': 3, 'claude_score': 4, 'gemini_score': 4, 'translated_query': '我想知道广州明天的天气预报,有雨吗?'} The task is as follows: 我想知道广州明天的天气预报,有雨吗? You respond:Assistant:
- Assistant
{ "Thought": "To determine if it will rain tomorrow in Guangzhou, I need to use the weather query API, which provides real-time weather forecast services. I will pass the name of the city, 'Guangzhou', as a parameter to the API.", "Action": "天气查询接口(city='Guangzhou')" }