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': 'Uganda', 'api_name': [{'tool_name': 'Uganda API', 'api_name': 'Geocode', 'api_description': 'This endpoint allows you to lookup locations in Uganda by providing an address, returning the latitude, longitude, and city name.', 'required_parameters': [{'name': 'address', 'type': 'STRING', 'description': 'Name of the address.', 'default': 'Nansana'}], 'optional_parameters': [], 'method': 'GET'}], 'query': 'Can you help me find the latitude and longitude for the address "Nansana" in Uganda?', 'relevant_apis': [{'tool_name': 'Uganda API', 'api_name': 'Geocode'}], 'query_id': 1, 'claude_score': 5, 'gemini_score': 5, 'translated_query': 'Oli muwandiisi omukwano, nnoonyereza ku bukiika n\'obutonde bw\'ekifo "Nansana" mu Uganda?'} The task is as follows: Oli muwandiisi omukwano, nnoonyereza ku bukiika n'obutonde bw'ekifo "Nansana" mu Uganda? You respond:Assistant:
- Assistant
{ "Thought": "The task is requesting the geographical coordinates for the address 'Nansana' in Uganda. The relevant API provided is the 'Uganda API' with the 'Geocode' endpoint, which is specifically designed to return the latitude, longitude, and city name for a given address.", "Action": "Geocode(address='Nansana')" }
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.