fix useless factory

This commit is contained in:
Michael Ingvarsson
2026-07-16 12:09:12 +02:00
parent e81f03c5aa
commit 479223ceb2
4 changed files with 7 additions and 103 deletions
+2 -3
View File
@@ -14,9 +14,8 @@ from gitea.models import IssueModel, PullRequestModel, RepositoryModel
from gitea.tools.gitea_tools import GiteaTools
from gitea.config import AGENT_MODEL_ID, AGENT_MAX_RETRIES
from gitea.workspace import WorkspaceManager
from core.factory import AgentFactory
from core.notification_agent import NotificationReaderAgent, NotificationNoToolCalledError
from core.notification_tools import NotificationTools
from core.notification_agent import NotificationNoToolCalledError
logger: logging.Logger = logging.getLogger("agent-orchestrator")
@@ -36,7 +35,7 @@ class AgentOrchestrator:
self._model_name = model_name
self._work_queue = WorkQueue()
self._dispatcher = AgentDispatcher(client, tools, model_name, max_retries)
self._notification_reader = AgentFactory.create_notification_reader_agent(model_name)
self._notification_reader = NotificationReaderAgent(model_name)
self._max_retries = max_retries