Update agent.py
Browse files1329 unmodified lines13301331133213331329 unmodified linesif len(self.reqs[uid]) >= limit: return Trueself.reqs[uid].append(now); return Falserate_limiter = RateLimiter()1329 unmodified lines133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001329 unmodified linesif len(self.reqs[uid]) >= limit: return Trueself.reqs[uid].append(now); return Falserate_limiter = RateLimiter()# ================================================================# COMPATIBILITY & EXPORTS for app.py# ================================================================# Map engine to orchestrator# This allows app.py to call orchestrator.process()engine.process = engine.runorchestrator = engine# Map tools listALL_TOOLS_SCHEMA = ALL_TOOLS# Dummy ImageProcessor (logic is handled inside tools/engine)class ImageProcessor:pass# Agent definitions required by app.pyAGENTS = {"director": {"name": "Director","icon": "π¬","prompt": "You are the project director. You coordinate tasks and decide which agent to use."},"coder": {"name": "Coder","icon": "π»","prompt": "You are an expert programmer. Write efficient, documented code."},"researcher": {"name": "Researcher","icon": "π¬","prompt": "You are a researcher. Search the web and synthesize information."},"sysadmin": {"name": "SysAdmin","icon": "βοΈ","prompt": "You are a system administrator. Manage files, processes, and server health."},"creative": {"name": "Creative","icon": "π¨","prompt": "You are a creative artist and writer."},"analyst": {"name": "Analyst","icon": "π","prompt": "You are a data analyst. Interpret data and metrics."},"security": {"name": "Security","icon": "π‘οΈ","prompt": "You are a security expert. Audit code and permissions."},"doctor": {"name": "Doctor","icon": "π₯","prompt": "You are the health monitor."},"file_manager": {"name": "FileManager","icon": "π","prompt": "Organize and manage the file system."}}# Agent team listagent_team = list(AGENTS.values())
agent.py+68-1