File size: 455 Bytes
b4d2a0b
 
 
 
 
 
f2db31e
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# agents/philosopher.py

from agents.base_agent import BaseAgent

class PhilosopherAgent(BaseAgent):
    def __init__(self):
        super().__init__(name="🧙‍♂️ Philosopher", role="Contemplative Thinker")

    def run(self, prompt, query_func):
        try:
            query = f"As a philosopher, deeply reflect on: {prompt}"
            return query_func(query)
        except Exception as e:
            return f"[Philosopher ERROR] {str(e)}"