shieldx / app /utils.py
Nagraj23's picture
Upload 11 files
e8a202b verified
Raw History Blame Contribute Delete
417 Bytes
import datetime
# --- Fixtures in app/utils.py ---
# 1. Log Query Function:
# This 'fixture' is a utility function designed for logging interactions.
# It can be used to record user inputs and corresponding bot responses for
# debugging, monitoring, or analytics purposes.
def log_query(user_input: str, response: str):
print(f"[{datetime.datetime.now()}] INPUT: {user_input} → OUTPUT: {response}")