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': 'India', 'api_name': [{'tool_name': 'PNR STATUS - INDIAN RAILWAY', 'api_name': 'PNR number', 'api_description': 'Check PNR status and passenger info. Returns information if the PNR is valid or not expired.', 'required_parameters': [{'name': 'PNR', 'type': 'string', 'description': 'Passenger Name Record number', 'default': '8531575878'}], 'optional_parameters': [], 'method': 'GET'}], 'query': 'I need to know the arrival time for my train; can you find that using my PNR number?', 'relevant_apis': [{'tool_name': 'PNR STATUS - INDIAN RAILWAY', 'api_name': 'PNR number'}], 'query_id': 3, 'claude_score': 5, 'gemini_score': 4, 'human_score': 3, 'translated_query': 'मुझे अपनी ट्रेन का आगमन समय जानना है; क्या आप मेरा PNR नंबर उपयोग करके यह पता कर सकते हैं?'} The task is as follows: मुझे अपनी ट्रेन का आगमन समय जानना है; क्या आप मेरा PNR नंबर उपयोग करके यह पता कर सकते हैं? You respond:Assistant:
- Assistantjson
{ "Thought": "To find the arrival time for the user's train, I need to use the PNR STATUS - INDIAN RAILWAY API, which provides information based on the PNR number. The task requires fetching data using the provided PNR number.", "Action": "PNR number(PNR='8531575878')" }