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 PostCode', 'api_name': 'Find By PostCode', 'api_description': 'This API allows users to search for UK addresses based on a given postcode.', 'required_parameters': [{'name': 'postcode', 'type': 'string', 'description': 'The UK postcode for which addresses are to be retrieved.', 'default': 'PL11DN'}], 'optional_parameters': [], 'method': 'GET'}], 'query': 'Can you find out what addresses correspond to the postcode L1 8JQ? I want to plan a visit.', 'relevant_apis': [{'tool_name': 'Find By PostCode', 'api_name': 'Find By PostCode'}], 'query_id': 8, 'claude_score': 4, 'gemini_score': 5, 'translated_query': 'Can you find out what addresses correspond to the postcode L1 8JQ? I want to plan a visit.'} The task is as follows: Can you find out what addresses correspond to the postcode L1 8JQ? I want to plan a visit. You respond:Assistant:
- Assistant
{ "Thought": "The task requires finding addresses associated with the postcode L1 8JQ in the UK. Given the information about available APIs, the most suitable option is the 'Find By PostCode' API, which allows users to search for UK addresses based on a given postcode.", "Action": "Find By PostCode(postcode='L1 8JQ')" }