shamiimuhammad/NexGen-Support-Hero
0
1from langchain_core.tools import tool2 3@tool4def check_order_status(order_id: str):5 """Use this to check the status of a customer's order in the database."""6 # Logic: In a real app, this would be a SQL query.7 mock_db = {8 "12345": "Shipped - Arriving Friday",9 "67890": "Processing - Shipping tomorrow",10 "ABCDE": "Delivered - Signed by Reception"11 }12 return mock_db.get(order_id, "Order ID not found. Please verify the number.")