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': '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': 'Can you grab a quick summary of the ZIP code 30301 in Atlanta for me?', 'relevant_apis': [{'tool_name': 'Zip Code Master', 'api_name': 'Get ZIP code summary'}], 'query_id': 1, 'claude_score': 4, 'gemini_score': 4, 'translated_query': 'Can you get a quick summary of ZIP code 30301 in Atlanta for me?'} The task is as follows: Can you get a quick summary of ZIP code 30301 in Atlanta for me? You respond:Assistant:
- Assistantjson
{ "Thought": "The task is to retrieve a summary of a specific ZIP code, and based on the information provided, the relevant API is the 'Get ZIP code summary' from 'Zip Code Master'. The required parameter is the ZIP code itself.", "Action": "Get ZIP code summary(zip='30301')" }