anderson-ufrj commited on
Commit
4be0d27
·
1 Parent(s): 1e687be

fix: add missing MasterAgent import in chat.py

Browse files

- Import MasterAgent from src.agents.abaporu
- Fixes NameError when initializing master_agent at line 35
- The error was misleadingly reported as Drummond initialization failure

This was the real cause of the module-level error at line 33

Files changed (1) hide show
  1. src/api/routes/chat.py +1 -0
src/api/routes/chat.py CHANGED
@@ -15,6 +15,7 @@ from src.core.exceptions import ValidationError
15
  from src.api.dependencies import get_current_optional_user
16
  from src.api.routes.chat_drummond_factory import get_drummond_agent
17
  from src.agents.deodoro import AgentMessage, AgentContext, AgentResponse, AgentStatus
 
18
  from src.services.chat_service_with_cache import chat_service
19
  from src.services.chat_service import IntentDetector, IntentType
20
  from src.api.models.pagination import CursorPaginationResponse
 
15
  from src.api.dependencies import get_current_optional_user
16
  from src.api.routes.chat_drummond_factory import get_drummond_agent
17
  from src.agents.deodoro import AgentMessage, AgentContext, AgentResponse, AgentStatus
18
+ from src.agents.abaporu import MasterAgent
19
  from src.services.chat_service_with_cache import chat_service
20
  from src.services.chat_service import IntentDetector, IntentType
21
  from src.api.models.pagination import CursorPaginationResponse