/
githubmirror
/
gpt-pilot
Обзор
Документация
Войти
/
githubmirror
/
gpt-pilot
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
core/agents/legacy_handler.py
14 строк
476 B
LeonOstrez
fix completing steps when they are not ordered by type
11 окт 2024, 17:54
11 окт 2024, 17:54
e09aa5d
Код
Авторство
О чём код?
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}")