Spaces:
Sleeping
Sleeping
# 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)}" | |