Refactor code structure for improved readability and maintainability
This commit is contained in:
@@ -1,7 +1,6 @@
|
||||
# src/services/agent/__init__.py
|
||||
"""Agent服务模块"""
|
||||
|
||||
from .qa_agent import QAAgent, ask_compliance_question
|
||||
from .session_manager import SessionManager, ChatSession
|
||||
|
||||
__all__ = ["QAAgent", "ask_compliance_question", "SessionManager", "ChatSession"]
|
||||
__all__ = ["QAAgent", "ask_compliance_question", "SessionManager", "ChatSession"]
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
# src/services/agent/qa_agent.py
|
||||
"""RAG问答Agent - 合规智能问答核心实现"""
|
||||
|
||||
import time
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
# src/services/agent/session_manager.py
|
||||
"""多轮对话会话管理"""
|
||||
|
||||
import time
|
||||
@@ -244,4 +243,4 @@ class SessionManager:
|
||||
def clear_all_sessions(self):
|
||||
"""清空所有会话"""
|
||||
self._sessions.clear()
|
||||
logger.info("所有会话已清空")
|
||||
logger.info("所有会话已清空")
|
||||
|
||||
Reference in New Issue
Block a user