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': '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': 'Fetch the full address options that start with "505 Walnut Drive."', 'relevant_apis': [{'tool_name': 'autocomplete usa', 'api_name': 'Autocomplete Addresses'}], 'query_id': 8, 'claude_score': 5, 'gemini_score': 5, 'translated_query': 'Retrieve the full address options that begin with "505 Walnut Drive."'} The task is as follows: Retrieve the full address options that begin with "505 Walnut Drive." You respond:Assistant:
- Assistantjson
{ "Thought": "The task requires fetching address suggestions that begin with '505 Walnut Drive' in the USA. The available API, 'Autocomplete Addresses', is suitable for this task as it provides autocomplete suggestions for USA addresses.", "Action": "Autocomplete Addresses(address='505 Walnut Drive')" }