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

Update agents/philosopher.py

Browse files
Files changed (1) hide show
  1. agents/philosopher.py +8 -1
agents/philosopher.py CHANGED
@@ -4,4 +4,11 @@ from agents.base_agent import BaseAgent
4
 
5
  class PhilosopherAgent(BaseAgent):
6
  def __init__(self):
7
- super().__init__("🧙‍♂️ Philosopher", "deep thinker pondering existence and ethics")
 
 
 
 
 
 
 
 
4
 
5
  class PhilosopherAgent(BaseAgent):
6
  def __init__(self):
7
+ super().__init__(name="🧙‍♂️ Philosopher", role="Contemplative Thinker")
8
+
9
+ def run(self, prompt, query_func):
10
+ try:
11
+ query = f"As a philosopher, deeply reflect on: {prompt}"
12
+ return query_func(query)
13
+ except Exception as e:
14
+ return f"[Philosopher ERROR] {str(e)}"