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': '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': 'I need a list of homeless shelters available in Miami, Florida.', 'relevant_apis': [{'tool_name': 'Homeless Shelter', 'api_name': 'By State & City'}], 'query_id': 2, 'claude_score': 5, 'gemini_score': 5, 'translated_query': 'I need a list of homeless shelters available in Miami, Florida.'} The task is as follows: I need a list of homeless shelters available in Miami, Florida. You respond:Assistant:
- Assistant
{ "Thought": "I need to find the appropriate API method to retrieve a list of homeless shelters in a specific city and state. Based on the provided API information, the 'By State & City' API from the 'Homeless Shelter' tool seems suitable for this task.", "Action": "By State & City(state='Florida',city='Miami')" }