Dynamic-Function-Calling-Agent / tool_pairs.jsonl
jlov7's picture
feat: Multi-tool selection and robustness testing
6639f75
{"prompt": "<|im_start|>system\nYou are a helpful assistant that calls functions by responding with valid JSON when given a schema. Always respond with JSON function calls only, never prose.<|im_end|>\n\n<schema>\n{\n \"name\": \"get_stock_price\",\n \"description\": \"Return the latest price for a given ticker symbol.\",\n \"parameters\": {\n \"type\": \"object\",\n \"properties\": {\n \"ticker\": {\"type\": \"string\"}\n },\n \"required\": [\"ticker\"]\n }\n}\n</schema>\n\n<|im_start|>user\nWhat's Apple trading at right now?<|im_end|>\n<|im_start|>assistant\n", "chosen": "{\"name\": \"get_stock_price\", \"arguments\": {\"ticker\": \"AAPL\"}}", "rejected": "I'll help you check Apple's current stock price. Let me look that up for you using the stock price function."}
{"prompt": "<|im_start|>system\nYou are a helpful assistant that calls functions by responding with valid JSON when given a schema. Always respond with JSON function calls only, never prose.<|im_end|>\n\n<schema>\n{\n \"name\": \"send_email\",\n \"description\": \"Send an email to a recipient.\",\n \"parameters\": {\n \"type\": \"object\",\n \"properties\": {\n \"to\": {\"type\": \"string\"},\n \"subject\": {\"type\": \"string\"},\n \"body\": {\"type\": \"string\"}\n },\n \"required\": [\"to\", \"subject\", \"body\"]\n }\n}\n</schema>\n\n<|im_start|>user\nSend John an email about the meeting tomorrow at 2pm<|im_end|>\n<|im_start|>assistant\n", "chosen": "{\"name\": \"send_email\", \"arguments\": {\"to\": \"[email protected]\", \"subject\": \"Meeting Tomorrow at 2pm\", \"body\": \"Hi John, just wanted to remind you about our meeting scheduled for tomorrow at 2pm. Looking forward to speaking with you.\"}}", "rejected": "I'll send John an email about the meeting. I'll compose a professional message mentioning the 2pm meeting time tomorrow and send it to him."}
{"prompt": "<|im_start|>system\nYou are a helpful assistant that calls functions by responding with valid JSON when given a schema. Always respond with JSON function calls only, never prose.<|im_end|>\n\n<schema>\n{\n \"name\": \"get_weather\",\n \"description\": \"Get current weather for a location.\",\n \"parameters\": {\n \"type\": \"object\",\n \"properties\": {\n \"location\": {\"type\": \"string\"},\n \"units\": {\"type\": \"string\", \"enum\": [\"celsius\", \"fahrenheit\"]}\n },\n \"required\": [\"location\"]\n }\n}\n</schema>\n\n<|im_start|>user\nHow's the weather in New York?<|im_end|>\n<|im_start|>assistant\n", "chosen": "{\"name\": \"get_weather\", \"arguments\": {\"location\": \"New York\"}}", "rejected": "Let me check the current weather conditions in New York for you. I'll get the latest weather information from the weather service."}
{"prompt": "<|im_start|>system\nYou are a helpful assistant that calls functions by responding with valid JSON when given a schema. Always respond with JSON function calls only, never prose.<|im_end|>\n\n<schema>\n{\n \"name\": \"calculate_tip\",\n \"description\": \"Calculate tip amount for a bill.\",\n \"parameters\": {\n \"type\": \"object\",\n \"properties\": {\n \"bill_amount\": {\"type\": \"number\"},\n \"tip_percentage\": {\"type\": \"number\"}\n },\n \"required\": [\"bill_amount\", \"tip_percentage\"]\n }\n}\n</schema>\n\n<|im_start|>user\nWhat's a 20% tip on a $45 bill?<|im_end|>\n<|im_start|>assistant\n", "chosen": "{\"name\": \"calculate_tip\", \"arguments\": {\"bill_amount\": 45, \"tip_percentage\": 20}}", "rejected": "I can help you calculate that tip! For a $45 bill with a 20% tip rate, let me do the math for you."}
{"prompt": "<|im_start|>system\nYou are a helpful assistant that calls functions by responding with valid JSON when given a schema. Always respond with JSON function calls only, never prose.<|im_end|>\n\n<schema>\n{\n \"name\": \"search_products\",\n \"description\": \"Search for products in an online store.\",\n \"parameters\": {\n \"type\": \"object\",\n \"properties\": {\n \"query\": {\"type\": \"string\"},\n \"category\": {\"type\": \"string\"},\n \"max_price\": {\"type\": \"number\"}\n },\n \"required\": [\"query\"]\n }\n}\n</schema>\n\n<|im_start|>user\nFind me wireless headphones under $100<|im_end|>\n<|im_start|>assistant\n", "chosen": "{\"name\": \"search_products\", \"arguments\": {\"query\": \"wireless headphones\", \"max_price\": 100}}", "rejected": "I'll search for wireless headphones that are priced under $100. Let me look through our product catalog to find the best options for you."}
{"prompt": "<|im_start|>system\nYou are a helpful assistant that calls functions by responding with valid JSON when given a schema. Always respond with JSON function calls only, never prose.<|im_end|>\n\n<schema>\n{\n \"name\": \"book_appointment\",\n \"description\": \"Book an appointment with a service provider.\",\n \"parameters\": {\n \"type\": \"object\",\n \"properties\": {\n \"service\": {\"type\": \"string\"},\n \"date\": {\"type\": \"string\"},\n \"time\": {\"type\": \"string\"},\n \"provider\": {\"type\": \"string\"}\n },\n \"required\": [\"service\", \"date\", \"time\"]\n }\n}\n</schema>\n\n<|im_start|>user\nBook me a haircut for next Friday at 3pm<|im_end|>\n<|im_start|>assistant\n", "chosen": "{\"name\": \"book_appointment\", \"arguments\": {\"service\": \"haircut\", \"date\": \"next Friday\", \"time\": \"3pm\"}}", "rejected": "I'll help you book a haircut appointment for next Friday at 3pm. Let me check the available slots and schedule that for you."}
{"prompt": "<|im_start|>system\nYou are a helpful assistant that calls functions by responding with valid JSON when given a schema. Always respond with JSON function calls only, never prose.<|im_end|>\n\n<schema>\n{\n \"name\": \"translate_text\",\n \"description\": \"Translate text from one language to another.\",\n \"parameters\": {\n \"type\": \"object\",\n \"properties\": {\n \"text\": {\"type\": \"string\"},\n \"source_language\": {\"type\": \"string\"},\n \"target_language\": {\"type\": \"string\"}\n },\n \"required\": [\"text\", \"target_language\"]\n }\n}\n</schema>\n\n<|im_start|>user\nTranslate 'Hello, how are you?' to Spanish<|im_end|>\n<|im_start|>assistant\n", "chosen": "{\"name\": \"translate_text\", \"arguments\": {\"text\": \"Hello, how are you?\", \"target_language\": \"Spanish\"}}", "rejected": "I'll translate that phrase to Spanish for you. 'Hello, how are you?' is a common greeting that should translate nicely."}
{"prompt": "<|im_start|>system\nYou are a helpful assistant that calls functions by responding with valid JSON when given a schema. Always respond with JSON function calls only, never prose.<|im_end|>\n\n<schema>\n{\n \"name\": \"create_reminder\",\n \"description\": \"Create a reminder for a specific date and time.\",\n \"parameters\": {\n \"type\": \"object\",\n \"properties\": {\n \"title\": {\"type\": \"string\"},\n \"description\": {\"type\": \"string\"},\n \"date\": {\"type\": \"string\"},\n \"time\": {\"type\": \"string\"}\n },\n \"required\": [\"title\", \"date\", \"time\"]\n }\n}\n</schema>\n\n<|im_start|>user\nRemind me to call mom tomorrow at 6pm<|im_end|>\n<|im_start|>assistant\n", "chosen": "{\"name\": \"create_reminder\", \"arguments\": {\"title\": \"Call mom\", \"date\": \"tomorrow\", \"time\": \"6pm\"}}", "rejected": "I'll set up a reminder for you to call your mom tomorrow at 6pm. That's a nice way to stay in touch with family!"}