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': 'Restaurants near me USA', 'api_name': 'GET all Restaurant locations by state', 'api_description': 'Fetches restaurant locations based on a specified state.', 'required_parameters': [{'name': 'state', 'type': 'string', 'description': 'The state to search for restaurants.', 'default': 'AZ'}, {'name': 'page', 'type': 'NUMBER', 'description': 'The page number for pagination.', 'default': '0'}], 'optional_parameters': [], 'method': 'GET'}], 'query': 'I’d love to explore some vegan dining options in California; could you list a few?', 'relevant_apis': [{'tool_name': 'Restaurants near me USA', 'api_name': 'GET all Restaurant locations by state'}], 'query_id': 2, 'claude_score': 4, 'gemini_score': 4, 'translated_query': 'I’d love to explore some vegan dining options in California; could you list a few?'} The task is as follows: I’d love to explore some vegan dining options in California; could you list a few? You respond:Assistant:
- Assistant
{ "Thought": "The task requires listing vegan dining options in California, and the provided API can fetch restaurant locations by state. Since California is a state in the USA, I can use this API to get restaurant information.", "Action": "GET all Restaurant locations by state(state='CA', page=0)" }