Move session-related responsibilities into a new application-layer AgentSessionService (and AgentSessionFeedbackResult dataclass), provide a bootstrap factory (get_agent_session_service), and update agent API routes to call the service instead of accessing ConversationStore directly. Routes now translate ValueError into 404 responses and use service methods for get/list/history/delete/feedback. Also update package exports and docs/READMEs to declare the backend architecture authority, enforce api -> application -> domain ports -> infrastructure boundaries, and call out legacy services/workflows as migration-only. These changes centralize session logic in the application layer and tighten architecture guidance for future backend work.
8 lines
315 B
Python
8 lines
315 B
Python
"""Initialize the app.application.agent package."""
|
|
|
|
from .services import AgentConversationService, AgentSessionFeedbackResult, AgentSessionService
|
|
# Keep package boundaries explicit so backend imports stay predictable.
|
|
|
|
|
|
__all__ = ["AgentConversationService", "AgentSessionFeedbackResult", "AgentSessionService"]
|