Spaces:
Sleeping
Sleeping
File size: 471 Bytes
46b609c 8212441 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
# agents/historian.py
from agents.base_agent import BaseAgent
class HistorianAgent(BaseAgent):
def __init__(self):
super().__init__(name="👨🏫 Historian", role="Expert in Historical Knowledge")
def run(self, prompt, query_func):
try:
query = f"As a historian, explain this with historical context: {prompt}"
return query_func(query)
except Exception as e:
return f"[Historian ERROR] {str(e)}"
|