mcp2-backend / agents /base_agent.py
aymnsk's picture
Update agents/base_agent.py
298160c verified
raw
history blame
351 Bytes
# agents/base_agent.py
class BaseAgent:
def __init__(self, name="Agent", role="Generic Assistant"):
self.name = name
self.role = role
def run(self, prompt, query_func):
"""
Should be overridden by child classes.
"""
raise NotImplementedError("Each agent must implement its own `run` method.")