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': 'UK Property', 'api_name': 'Domestic EPC Certificate', 'api_description': "Retrieves the URL for a specified property's EPC rating.", 'required_parameters': [{'name': 'postcode', 'type': 'STRING', 'description': 'The postcode of the property for which to retrieve the EPC rating.', 'default': 'SA34BX'}], 'optional_parameters': [{'name': 'redirect', 'type': 'BOOLEAN', 'description': 'Indicates whether to redirect to the URL.', 'default': 'false'}, {'name': 'houseNumber', 'type': 'STRING', 'description': 'The house number of the property for which to retrieve the EPC rating.', 'default': '488'}], 'method': 'GET'}], 'query': 'What’s the energy performance rating for the house at 45 Green Lane, M1 1AE?', 'relevant_apis': [{'tool_name': 'UK Property', 'api_name': 'Domestic EPC Certificate'}], 'query_id': 4, 'claude_score': 5, 'gemini_score': 5, 'translated_query': 'What is the energy performance rating for the house at 45 Green Lane, M1 1AE?'} The task is as follows: What is the energy performance rating for the house at 45 Green Lane, M1 1AE? You respond:Assistant:
- Assistantjson
{ "Thought": "To find the energy performance rating for the specified property, I need to use the 'Domestic EPC Certificate' API. The parameters required are the postcode and the house number. I will use M1 1AE as the postcode and 45 as the house number.", "Action": "Domestic EPC Certificate(postcode='M1 1AE', houseNumber='45')" }