fix(task0): align SessionService internal API with AgentHub expectations
- Add SessionInfo model to schema/session.py for AgentHub contract - Add 6 AgentHub internal methods to SessionService (KV-based, no DB) - Update _ActiveSessionPayload with room_id and current_agent_code - Fix AgentHub to use dict-based message access and session_id param - Fix route conflict: rename routing /chat/completions to /routing/completions - Fix response_model on agent_hub endpoint - Add db_session fixture to conftest.py - Move SessionService internal method tests to new test file - Fix test_agent_hub.py imports (SessionMessage→ConversationHistory) - All 22 Task-0-relevant tests pass (61 including existing coverage) Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Showing
8 changed files
with
258 additions
and
158 deletions
-
Please register or sign in to post a comment