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': 'NOMIS Authority Search', 'api_description': 'Retrieves the URL for a supplied postcode NOMIS local authority.', 'required_parameters': [{'name': 'postcode', 'type': 'STRING', 'description': 'The postcode for which to retrieve the local authority.', 'default': 'SA34BX'}], 'optional_parameters': [{'name': 'redirect', 'type': 'BOOLEAN', 'description': 'Indicates whether to redirect to the URL.', 'default': 'false'}], 'method': 'GET'}], 'query': 'What’s the local authority URL for the postcode M1 1AE?', 'relevant_apis': [{'tool_name': 'UK Property', 'api_name': 'NOMIS Authority Search'}], 'query_id': 4, 'claude_score': 5, 'gemini_score': 5, 'translated_query': 'What’s the local authority URL for the postcode M1 1AE?'} The task is as follows: What’s the local authority URL for the postcode M1 1AE? You respond:Assistant:
- Assistantjson
{ "Thought": "The task requires retrieving the local authority URL for a specific postcode (M1 1AE). I will use the NOMIS Authority Search API, which is designed to provide such information for UK postcodes.", "Action": "NOMIS Authority Search(postcode='M1 1AE', redirect=false)" }