import asyncio from app.services.llm_service import llm_service from app.services.reminder_service import reminder_service async def test_router(): print("--- Testing Router ---") tests = [ "Who is Emraan?", "Remind me to take my medicine at 8pm", "What reminders do I have?", "Show me photos of the trip", "Hi, how are you?" ] for t in tests: print(f"\nUser: {t}") intent = llm_service.classify_intent(t, []) print(f"Action: {intent.action} | Query: {intent.query}") async def test_reminders(): print("\n--- Testing Reminders ---") print("Adding reminder...") res = reminder_service.add_reminder("Take heart pill", "8:00 PM") print(f"Added: {res}") print("Fetching reminders...") reminders = reminder_service.get_reminders() print(f"Found {len(reminders)} reminders:") for r in reminders: print(f"- {r['text']} (Status: {r['status']})") if __name__ == "__main__": # Test Sync Router (it uses blocking API for now) # Note: classify_intent is synchronous in llm_service asyncio.run(test_router()) # Test Sync Reminder Service # usage is synchronous in wrapper but inside it uses sync Qdrant asyncio.run(test_reminders())