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': 'UK', 'api_name': [{'tool_name': 'UK Postcode', 'api_name': '/getpostcode', 'api_description': 'Find an exact match for a given postcode.', 'required_parameters': [{'name': 'postcode', 'type': 'STRING', 'description': 'An exact match for the postcode to be queried.', 'default': 'SW1A2AA'}], 'optional_parameters': [], 'method': 'GET'}], 'query': 'Please provide the trimmed version of the postcode SE17QA, with no spaces.', 'relevant_apis': [{'tool_name': 'UK Postcode', 'api_name': '/getpostcode'}], 'query_id': 7, 'claude_score': 5, 'gemini_score': 4, 'translated_query': 'SE17QA'} The task is as follows: SE17QA You respond:Assistant:
- Assistant
{ "Thought": "The task requires validating or processing the postcode SE17QA using an appropriate API. Based on the available information, the UK Postcode API is suitable for this purpose as it provides a way to find an exact match for a given postcode.", "Action": "UK Postcode /getpostcode(postcode=\"SE17QA\")" }