AskRoss-Chatbot / session.py
Shakeel401's picture
Create session.py
6de4eea verified
raw
history blame contribute delete
201 Bytes
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)