Spaces:
Sleeping
Sleeping
File size: 201 Bytes
6de4eea | 1 2 3 4 5 6 7 | 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)
|