mcp2-backend / agents /comedian.py
aymnsk's picture
Update agents/comedian.py
609131a verified
raw
history blame contribute delete
500 Bytes
# agents/comedian.py
from agents.base_agent import BaseAgent, ACPMessage
from multi_inference import multi_query
class ComedianAgent(BaseAgent):
def __init__(self):
super().__init__(name="🎭 Comedian", role="Responds with humor and wit.")
def generate(self, messages):
prompt = f"{self.role}:\n" + "\n".join([f"{m.role}: {m.content}" for m in messages])
try:
return multi_query(prompt)
except Exception as e:
return f"[ERROR] {e}"