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': 'keyword', 'type': 'string', 'description': '要检索的地名', 'default': ''}], 'optional_parameters': [{'name': 'city', 'type': 'string', 'description': '城市名,如果未指定,默认返回全国范围内结果', 'default': ''}, {'name': 'region', 'type': 'string', 'description': '区域名,用于缩小检索范围,如果未指定,默认返回城市范围内结果', 'default': ''}, {'name': 'scope', 'type': 'int', 'description': '检索结果的精确度,1为全国,2为省份,3为城市,4为区县,默认为1', 'default': '1'}, {'name': 'page_size', 'type': 'int', 'description': '每页返回的结果数量,默认为10', 'default': '10'}, {'name': 'page_num', 'type': 'int', 'description': '当前页码,默认为1', 'default': '1'}], 'method': 'GET'}], 'query': '能帮我查找“故宫”的地址和开放时间吗?', 'relevant_apis': [{'tool_name': '百度地图地名检索API', 'api_name': '百度地图地名检索'}], 'query_id': 3, 'claude_score': 4, 'gemini_score': 5, 'translated_query': '能帮我查找“故宫”的地址和开放时间吗?'} The task is as follows: 能帮我查找“故宫”的地址和开放时间吗? You respond:Assistant:
- Assistant
{ "Thought": "To complete the task, I need to find information about the location and opening hours of '故宫' (the Forbidden City). The API available for this task is the 百度地图地名检索API which can search for a place and provide basic information about it.", "Action": "百度地图地名检索(keyword='故宫', city='', region='', scope='3', page_size='1', page_num='1')" }