aymnsk commited on
Commit
8212441
·
verified ·
1 Parent(s): f2db31e

Update agents/historian.py

Browse files
Files changed (1) hide show
  1. agents/historian.py +8 -1
agents/historian.py CHANGED
@@ -4,4 +4,11 @@ from agents.base_agent import BaseAgent
4
 
5
  class HistorianAgent(BaseAgent):
6
  def __init__(self):
7
- super().__init__("👨‍🏫 Historian", "expert in history who connects current events to the past")
 
 
 
 
 
 
 
 
4
 
5
  class HistorianAgent(BaseAgent):
6
  def __init__(self):
7
+ super().__init__(name="👨‍🏫 Historian", role="Expert in Historical Knowledge")
8
+
9
+ def run(self, prompt, query_func):
10
+ try:
11
+ query = f"As a historian, explain this with historical context: {prompt}"
12
+ return query_func(query)
13
+ except Exception as e:
14
+ return f"[Historian ERROR] {str(e)}"