From 8ea5bc7f1fc9ccbc6a87c5375bd1191404ae70c9 Mon Sep 17 00:00:00 2001 From: Markov Andrey Date: Tue, 30 Jun 2026 21:03:33 +0000 Subject: [PATCH] =?UTF-8?q?=D0=A0=D0=B5=D0=B4=D0=B0=D0=BA=D1=82=D0=B8?= =?UTF-8?q?=D1=80=D0=BE=D0=B2=D0=B0=D1=82=D1=8C=20roles.py?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- rag/agents/roles.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/rag/agents/roles.py b/rag/agents/roles.py index eaca105..bb2ca06 100644 --- a/rag/agents/roles.py +++ b/rag/agents/roles.py @@ -60,8 +60,6 @@ class MethodologistAgent(BaseAgent): history: List[Dict[str, str]], tools: Optional[List[Dict[str, Any]]] = None, ) -> Dict[str, Any]: - # Формируем промпт с учётом системного промпта и контекста - # Здесь можно использовать prompt_builder, но для простоты составим вручную messages = [] if self.system_prompt: messages.append({"role": "system", "content": self.system_prompt}) @@ -71,12 +69,11 @@ class MethodologistAgent(BaseAgent): try: response = await self.giga.chat( history=messages, - query="", # уже включено в history + query="", system_prompt=None, file_id=None, temperature=self.temperature, ) - # В простейшем случае возвращаем ответ как финальный return {"type": "answer", "content": response} except Exception as e: logger.error(f"Ошибка в MethodologistAgent: {e}") @@ -123,7 +120,6 @@ class PersonalAssistantAgent(BaseAgent): history: List[Dict[str, str]], tools: Optional[List[Dict[str, Any]]] = None, ) -> Dict[str, Any]: - # Для персонального ассистента можно использовать ReAct или просто генерацию messages = [] if self.system_prompt: messages.append({"role": "system", "content": self.system_prompt})