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_description': '将地址转换为坐标', 'required_parameters': [{'name': 'key', 'type': 'string', 'description': 'api_key', 'default': '6LDBZ-BF4HK-G2ZJA-ABCNH-3A44S-7OFZI'}, {'name': 'address', 'type': 'string', 'description': '地址', 'default': ''}], 'optional_parameters': [{'name': 'region', 'type': 'string', 'description': '指定地址所属城市', 'default': ''}, {'name': 'output', 'type': 'string', 'description': '返回格式:支持JSON/JSONP,默认JSON', 'default': ''}, {'name': 'callback', 'type': 'string', 'description': 'JSONP方式回调函数', 'default': ''}], 'method': 'GET'}], 'query': '请将“广州市天河区体育西路”的地址用地理坐标表示出来。', 'relevant_apis': [{'tool_name': '地址转坐标API', 'api_name': '地址转坐标'}], 'query_id': 3, 'claude_score': 5, 'gemini_score': 4, 'translated_query': '请将“广州市天河区体育西路”的地址用地理坐标表示出来。'} The task is as follows: 请将“广州市天河区体育西路”的地址用地理坐标表示出来。 You respond:Assistant:
- Assistantjson
{ "Thought": "The task is to convert the address of '广州市天河区体育西路' into geographical coordinates. The provided API information suggests using the '地址转坐标' API which is specifically designed for this purpose.", "Action": "地址转坐标(key='6LDBZ-BF4HK-G2ZJA-ABCNH-3A44S-7OFZI', address='广州市天河区体育西路')" }