mcp2-backend / agents /historian.py
aymnsk's picture
Update agents/historian.py
8212441 verified
raw
history blame
471 Bytes
# 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)}"