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': 'USA', 'api_name': [{'tool_name': 'Zip Code Master', 'api_name': 'Get ZIP code summary', 'api_description': 'Retrieve a summary profile for the provided ZIP code.', 'required_parameters': [{'name': 'zip', 'type': 'string', 'description': 'The ZIP code for which to retrieve the summary.', 'default': '90210'}], 'optional_parameters': [], 'method': 'GET'}], 'query': 'Fetch the public school racial majority information for ZIP code 10001 in New York City.', 'relevant_apis': [{'tool_name': 'Zip Code Master', 'api_name': 'Get ZIP code summary'}], 'query_id': 6, 'claude_score': 5, 'gemini_score': 5, 'translated_query': 'Get the public school racial majority information for ZIP code 10001 in New York City.'} The task is as follows: Get the public school racial majority information for ZIP code 10001 in New York City. You respond:Assistant:
- Assistant
{ "Thought": "To find the public school racial majority for the specified area, I should retrieve the summary information for ZIP code 10001 using the available API.", "Action": "Get ZIP code summary(zip='10001')" }