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': 'Homeless Shelter', 'api_name': 'By State & City', 'api_description': 'Search Homeless Shelters by State & City', 'required_parameters': [{'name': 'state', 'type': 'STRING', 'description': 'The full name or abbreviation of the state (e.g., Washington or WA).', 'default': 'Washington'}, {'name': 'city', 'type': 'STRING', 'description': 'The name of the city to search for homeless shelters.', 'default': 'Bellevue'}], 'optional_parameters': [], 'method': 'GET'}], 'query': 'Please look up the homeless shelters near Los Angeles, California.', 'relevant_apis': [{'tool_name': 'Homeless Shelter', 'api_name': 'By State & City'}], 'query_id': 3, 'claude_score': 5, 'gemini_score': 4, 'translated_query': "Sure, let's begin by exploring the issue you are currently dealing with. Can you tell me a bit more about the specific problem you are facing that has led you to seek out homeless shelters in Los Angeles, California? This information will help in understanding your situation better and guide us in the right direction."} The task is as follows: Sure, let's begin by exploring the issue you are currently dealing with. Can you tell me a bit more about the specific problem you are facing that has led you to seek out homeless shelters in Los Angeles, California? This information will help in understanding your situation better and guide us in the right direction. You respond: - Assistantjson
{ "Thought": "The user is looking for homeless shelters in Los Angeles, California. I need to use the appropriate API to find this information.", "Action": "By State & City(state='California', city='Los Angeles')" }