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': 'UK', 'api_name': [{'tool_name': 'Find By PostCode', 'api_name': 'Find By PostCode', 'api_description': 'This API allows users to search for UK addresses based on a given postcode.', 'required_parameters': [{'name': 'postcode', 'type': 'string', 'description': 'The UK postcode for which addresses are to be retrieved.', 'default': 'PL11DN'}], 'optional_parameters': [], 'method': 'GET'}], 'query': 'Can you help me find the addresses associated with the postcode SW1A 1AA?', 'relevant_apis': [{'tool_name': 'Find By PostCode', 'api_name': 'Find By PostCode'}], 'query_id': 1, 'claude_score': 5, 'gemini_score': 5, 'translated_query': 'Can you assist me in finding the addresses related to the postcode SW1A 1AA?'} The task is as follows: Can you assist me in finding the addresses related to the postcode SW1A 1AA? You respond:Assistant:
- Assistantjson
{ "Thought": "The task requires retrieving addresses based on a specific UK postcode. The provided API information includes a suitable tool for this purpose, specifically the 'Find By PostCode' API. This API is designed to find addresses when given a UK postcode.", "Action": "Find By PostCode(postcode=\"SW1A 1AA\")" }