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': 'I want to know the area where the postcode NW1A2B is located.', 'relevant_apis': [{'tool_name': 'UK Postcode', 'api_name': '/getpostcode'}], 'query_id': 8, 'claude_score': 5, 'gemini_score': 5, 'translated_query': 'I want to know the area where postcode NW1A 2B is located.'} The task is as follows: I want to know the area where postcode NW1A 2B is located. You respond:Assistant:
- Assistant
{ "Thought": "The task is to find the area associated with the postcode NW1A 2B in the UK. The provided API info includes an API specifically for looking up UK postcodes, which should return the desired information.", "Action": "UK Postcode API /getpostcode(postcode=\"NW1A2B\")" }