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': 'Canada', 'api_name': [{'tool_name': 'ca.boundaries.io', 'api_name': 'Query for City names by province/territory name', 'api_description': 'Retrieve city names based on the specified province or territory.', 'required_parameters': [{'name': 'province', 'type': 'STRING', 'description': 'The province or territory to query.', 'default': 'alberta'}], 'optional_parameters': [], 'method': 'GET'}], 'query': 'What cities can I find in Quebec?', 'relevant_apis': [{'tool_name': 'ca.boundaries.io', 'api_name': 'Query for City names by province/territory name'}], 'query_id': 4, 'claude_score': 5, 'gemini_score': 5, 'translated_query': 'Quelles villes puis-je trouver au Québec ?'} The task is as follows: Quelles villes puis-je trouver au Québec ? You respond:Assistant:
- Assistantjson
{ "Thought": "I need to retrieve city names in the province of Quebec using the provided API.", "Action": "Query for City names by province/territory name(province=\"quebec\")" }