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': 'USA', 'api_name': [{'tool_name': 'Local Businesses by Outscraper', 'api_name': 'Search Places', 'api_description': 'Returns places from Places Maps based on a given search query (or many queries). The results from searches are the same as you would see by visiting a regular Maps site. It is recommended to use specific locations in queries to improve accuracy.', 'required_parameters': [{'name': 'query', 'type': 'STRING', 'description': 'The parameter defines the query you want to search. You can use anything that you would use on a regular Maps site, including feature_id, place_id, or CID. Supports batching by sending arrays with up to 25 queries.', 'default': 'bars, NY, USA'}], 'optional_parameters': [{'name': 'fields', 'type': 'STRING', 'description': 'The parameter defines which fields you want to include with each item returned in the response. By default, it returns all fields.', 'default': ''}, {'name': 'region', 'type': 'STRING', 'description': 'The parameter specifies the country to use. Available countries include US, CA, GB, etc.', 'default': 'US'}, {'name': 'language', 'type': 'STRING', 'description': 'The parameter specifies the language to use for the response.', 'default': 'en'}, {'name': 'skipPlaces', 'type': 'NUMBER', 'description': 'Skip first N places, where N should be a multiple of 20, commonly used in pagination.', 'default': '0'}, {'name': 'limit', 'type': 'NUMBER', 'description': 'The parameter specifies the limit of organizations to take from one query search. There are no more than 500 places per one query search.', 'default': '20'}], 'method': 'GET'}], 'query': 'Can you help me find the best coffee shops in Seattle, Washington? I’m looking for places with great reviews.', 'relevant_apis': [{'tool_name': 'Local Businesses by Outscraper', 'api_name': 'Search Places'}], 'query_id': 1, 'claude_score': 4, 'gemini_score': 5, 'translated_query': 'Can you help me find the best coffee shops in Seattle, Washington? I’m looking for places with great reviews.'} The task is as follows: Can you help me find the best coffee shops in Seattle, Washington? I’m looking for places with great reviews. You respond:Assistant:
- Assistant
{ "Thought": "To find the best coffee shops in Seattle with great reviews, I will use the 'Search Places' API provided by the 'Local Businesses by Outscraper' tool. I'll specify Seattle, Washington as the query and aim to get results with high ratings.", "Action": "Search Places(query='coffee shops, Seattle, WA, USA', fields='reviews,rating', region='US', language='en', limit='20')" }