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})