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': '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': 'What’s the address for the UDPRN 45678901? I’d like to know where it leads.', 'relevant_apis': [{'tool_name': 'Find By UDPRN', 'api_name': 'Find By UDPRN'}], 'query_id': 5, 'claude_score': 5, 'gemini_score': 4, 'translated_query': 'What’s the address for the UDPRN 45678901? I’d like to know where it leads.'} The task is as follows: What’s the address for the UDPRN 45678901? I’d like to know where it leads. You respond:Assistant:
- Assistant
{ "Thought": "I need to find the address associated with the provided UDPRN number 45678901. The 'Find By UDPRN' API is appropriate as it is specifically designed to retrieve addresses using a UDPRN.", "Action": "Find By UDPRN(udprn='45678901')" }