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': 'Realtime Stock Data', 'api_name': 'esg-score', 'api_description': "Measures a company's exposure to long-term environmental, social, and governance risks.", 'required_parameters': [{'name': 'symb', 'type': 'string', 'description': 'The stock symbol of the asset.', 'default': 'aapl'}], 'optional_parameters': [], 'method': 'GET'}], 'query': 'I’d like to know how environmentally responsible Tesla is; please find the ESG score for TSLA.', 'relevant_apis': [{'tool_name': 'Realtime Stock Data', 'api_name': 'esg-score'}], 'query_id': 2, 'claude_score': 5, 'gemini_score': 5, 'translated_query': 'I’d like to know how environmentally responsible Tesla is; please find the ESG score for TSLA.'} The task is as follows: I’d like to know how environmentally responsible Tesla is; please find the ESG score for TSLA. You respond:Assistant:
- Assistantjson
{ "Thought": "I need to find the environmental, social, and governance (ESG) score for Tesla to determine how environmentally responsible the company is. The relevant API for this task is 'esg-score'.", "Action": "esg-score(symb='TSLA')" }