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 UDPRN', 'api_name': 'Find By UDPRN', 'api_description': '“Find By UDPRN” API gets address for the specified UDPRN. UDPRN stands for ‘Unique Delivery Point Reference Number.', 'required_parameters': [{'name': 'udprn', 'type': 'string', 'description': 'Unique numeric code for any premise on the Postcode Address File.', 'default': '18920084'}], 'optional_parameters': [], 'method': 'GET'}], 'query': 'Can you check the details for the UDPRN 32109876 and tell me the corresponding address?', 'relevant_apis': [{'tool_name': 'Find By UDPRN', 'api_name': 'Find By UDPRN'}], 'query_id': 6, 'claude_score': 4, 'gemini_score': 5, 'translated_query': 'Can you check the details for the UDPRN 32109876 and tell me the corresponding address?'} The task is as follows: Can you check the details for the UDPRN 32109876 and tell me the corresponding address? You respond:Assistant:
- Assistantjson
{ "Thought": "The task requires retrieving the address corresponding to the given UDPRN. The 'Find By UDPRN' API is suitable for this task since it provides address details based on UDPRN.", "Action": "Find By UDPRN(udprn='32109876')" }