Update router.py
Browse files
router.py
CHANGED
|
@@ -50,16 +50,7 @@ class RouterAgent(BaseAgent):
|
|
| 50 |
|
| 51 |
# Use LLM to decide which agent should handle this question
|
| 52 |
agent_type = self._llm_decide_agent(question, context)
|
| 53 |
-
|
| 54 |
-
# Log the decision for debugging
|
| 55 |
-
print(f"LLM decided to use agent: {agent_type}")
|
| 56 |
-
if task_id:
|
| 57 |
-
self.save_debug_info(task_id, {
|
| 58 |
-
"question": question,
|
| 59 |
-
"llm_decision": agent_type,
|
| 60 |
-
"context_hints": context
|
| 61 |
-
})
|
| 62 |
-
|
| 63 |
# Delegate to the selected specialized agent
|
| 64 |
if agent_type in self.agents:
|
| 65 |
return self.agents[agent_type](question, task_id, **kwargs)
|
|
|
|
| 50 |
|
| 51 |
# Use LLM to decide which agent should handle this question
|
| 52 |
agent_type = self._llm_decide_agent(question, context)
|
| 53 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 54 |
# Delegate to the selected specialized agent
|
| 55 |
if agent_type in self.agents:
|
| 56 |
return self.agents[agent_type](question, task_id, **kwargs)
|