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': 'I need to locate the delivery point for the UDPRN 12345678; could you look that up for me?', 'relevant_apis': [{'tool_name': 'Find By UDPRN', 'api_name': 'Find By UDPRN'}], 'query_id': 2, 'claude_score': 4, 'gemini_score': 4, 'translated_query': 'I need to locate the delivery point for the UDPRN 12345678; could you look that up for me?'} The task is as follows: I need to locate the delivery point for the UDPRN 12345678; could you look that up for me? You respond:Assistant:
- Assistantjson
{ "Thought": "The task requires retrieving the address associated with a specific UDPRN in the UK. The relevant API for this task is 'Find By UDPRN', which is designed to retrieve the address based on the UDPRN provided. The required parameter for this API is the 'udprn' value, which we have as '12345678'.", "Action": "Find By UDPRN(udprn=\"12345678\")" }