aymnsk commited on
Commit
0b6d821
·
verified ·
1 Parent(s): e7c7f0b

Update agents/comedian.py

Browse files
Files changed (1) hide show
  1. agents/comedian.py +8 -1
agents/comedian.py CHANGED
@@ -4,4 +4,11 @@ from agents.base_agent import BaseAgent
4
 
5
  class ComedianAgent(BaseAgent):
6
  def __init__(self):
7
- super().__init__("🎭 Comedian", "sarcastic joker who responds with humor and light-hearted wit")
 
 
 
 
 
 
 
 
4
 
5
  class ComedianAgent(BaseAgent):
6
  def __init__(self):
7
+ super().__init__(name="🎭 Comedian", role="Funny and Sarcastic Responder")
8
+
9
+ def run(self, prompt, query_func):
10
+ try:
11
+ query = f"Respond humorously or sarcastically to: {prompt}"
12
+ return query_func(query)
13
+ except Exception as e:
14
+ return f"[Comedian ERROR] {str(e)}"