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': 'What is the boarding station for my train with PNR 8531575878?', 'relevant_apis': [{'tool_name': 'PNR STATUS - INDIAN RAILWAY', 'api_name': 'PNR number'}], 'query_id': 4, 'claude_score': 5, 'gemini_score': 4, 'human_score': 4, 'translated_query': 'किसीम पBITS के स्टेशन बोर्डिंग के लिए मेरे ट्रेन की जोड़ HAFInitializeook के साथ PNR 8531575878'} The task is as follows: किसीम पBITS के स्टेशन बोर्डिंग के लिए मेरे ट्रेन की जोड़ HAFInitializeook के साथ PNR 8531575878 You respond:Assistant:
- Assistantjson
{ "Thought": "The task is asking for the boarding station of a train using a specific PNR number. The relevant API to use here is the 'PNR STATUS - INDIAN RAILWAY' API, which checks the PNR status and passenger information.", "Action": "PNR number(PNR='8531575878')" }