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': 'autocomplete usa', 'api_name': 'Autocomplete Addresses', 'api_description': 'Provides autocomplete suggestions for USA addresses.', 'required_parameters': [{'name': 'address', 'type': 'string', 'description': 'The address to autocomplete.', 'default': '48 sunrise dr'}], 'optional_parameters': [], 'method': 'GET'}], 'query': 'I’m looking for an address that starts with "202 Birch Lane"; can you help?', 'relevant_apis': [{'tool_name': 'autocomplete usa', 'api_name': 'Autocomplete Addresses'}], 'query_id': 5, 'claude_score': 4, 'gemini_score': 4, 'translated_query': 'I\'m looking for an address that starts with "202 Birch Lane"; can you help?'} The task is as follows: I'm looking for an address that starts with "202 Birch Lane"; can you help? You respond:Assistant:
- Assistant
{ "Thought": "The task is to find an autocomplete suggestion for an address that starts with '202 Birch Lane'. Given that the task is related to an address in the USA, I should use the 'Autocomplete Addresses' API, which provides autocomplete suggestions for USA addresses.", "Action": "Autocomplete Addresses(address='202 Birch Lane')" }