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': 'G - Finance', 'api_name': 'search', 'api_description': 'Searches for stocks based on a query string.', 'required_parameters': [{'name': 'q', 'type': 'STRING', 'description': 'Search query.', 'default': 'Airbnb'}], 'optional_parameters': [{'name': 'gl', 'type': 'STRING', 'description': 'Geolocation. Specify the country code.', 'default': 'US'}, {'name': 'hl', 'type': 'STRING', 'description': 'Language code for the response.', 'default': 'en'}], 'method': 'GET'}], 'query': 'Please find the stock details for Google using geolocation US.', 'relevant_apis': [{'tool_name': 'G - Finance', 'api_name': 'search'}], 'query_id': 6, 'claude_score': 4, 'gemini_score': 4, 'translated_query': 'Please find the stock details for Google using US geolocation.'} The task is as follows: Please find the stock details for Google using US geolocation. You respond:Assistant:
- Assistant
{ "Thought": "I need to find the stock details for Google, using the given API which is G - Finance's search. The task specifies using US geolocation, so I'll use the default 'gl' parameter as 'US'.", "Action": "search(q=\"Google\", gl=\"US\", hl=\"en\")" }