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': 'US Zipcodes', 'api_name': 'code_get', 'api_description': 'Return detailed information about a specific zip code.', 'required_parameters': [{'name': 'code', 'type': 'STRING', 'description': 'Zip code to retrieve details for.', 'default': '5033'}], 'optional_parameters': [], 'method': 'GET'}], 'query': 'I’d like to know the city and state associated with the zip code 10001, please.', 'relevant_apis': [{'tool_name': 'US Zipcodes', 'api_name': 'code_get'}], 'query_id': 2, 'claude_score': 5, 'gemini_score': 5, 'translated_query': 'New York, New York'} The task is as follows: New York, New York You respond:Assistant:
- Assistantjson
{ "Thought": "The task is to find out the city and state associated with the zip code 10001. Given the API information, I can use the 'US Zipcodes' API with the 'code_get' method to retrieve this data by supplying the required parameter 'code' with the value '10001'.", "Action": "code_get(code=\"10001\")" }