mirror of
https://github.com/HKUDS/DeepTutor.git
synced 2026-12-02 03:09:49 +08:00
34 lines
895 B
Python
34 lines
895 B
Python
"""
|
|
Session Management Module
|
|
=========================
|
|
|
|
Provides unified session management for all agent modules.
|
|
|
|
Usage:
|
|
from deeptutor.services.session import BaseSessionManager
|
|
|
|
class MySessionManager(BaseSessionManager):
|
|
def __init__(self):
|
|
super().__init__("my_module")
|
|
|
|
def _get_session_id_prefix(self) -> str:
|
|
return "my_"
|
|
|
|
def _get_default_title(self) -> str:
|
|
return "New My Session"
|
|
|
|
# ... implement other abstract methods
|
|
"""
|
|
|
|
from .base_session_manager import BaseSessionManager
|
|
from .sqlite_store import SQLiteSessionStore, get_sqlite_session_store
|
|
from .turn_runtime import TurnRuntimeManager, get_turn_runtime_manager
|
|
|
|
__all__ = [
|
|
"BaseSessionManager",
|
|
"SQLiteSessionStore",
|
|
"TurnRuntimeManager",
|
|
"get_sqlite_session_store",
|
|
"get_turn_runtime_manager",
|
|
]
|