Spaces:
Running
Running
| from agents import SQLiteSession | |
| import os | |
| def get_session(thread_id: str): | |
| db_path = os.path.join(os.path.dirname(__file__), "/tmp/conversations.db") | |
| return SQLiteSession(thread_id, db_path) | |