repo_description: The first real AI developer
repo_topics: ai codegen coding-assistant developer-tools gpt-4 research-project
code: from core.agents.base import BaseAgent
  from core.agents.response import AgentResponse
  
  
  class LegacyHandler(BaseAgent):
      agent_type = "legacy-handler"
      display_name = "Legacy Handler"
  
      async def run(self) -> AgentResponse:
          if self.data["type"] == "review_task":
              self.next_state.complete_step("review_task")
              return AgentResponse.done(self)
  
          raise ValueError(f"Unknown reason for calling Legacy Handler with data: {self.data}")
  