Skip to content

Commit ca77217

Browse files
committed
Remove redundant logging in BaseAgent
1 parent 8589291 commit ca77217

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

sgr_deep_research/core/agents/base_agent.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,7 @@ def _save_agent_log(self):
125125
json.dump(agent_log, open(filepath, "w", encoding="utf-8"), indent=2, ensure_ascii=False)
126126

127127
async def _prepare_context(self) -> list[dict]:
128+
"""Prepare conversation context with system prompt."""
128129
return [
129130
{"role": "system", "content": PromptLoader.get_system_prompt(self.toolkit)},
130131
*self.conversation,
@@ -177,11 +178,8 @@ async def execute(
177178
reasoning = await self._reasoning_phase()
178179
self._context.current_step_reasoning = reasoning
179180
action_tool = await self._select_action_phase(reasoning)
180-
action_result = await self._action_phase(action_tool)
181+
await self._action_phase(action_tool)
181182

182-
self.logger.info(action_result)
183-
184-
# TODO: оставляем или убираем полностью?
185183
if isinstance(action_tool, ClarificationTool):
186184
self.logger.info("\n⏸️ Research paused - please answer questions")
187185
self._context.state = AgentStatesEnum.WAITING_FOR_CLARIFICATION

0 commit comments

Comments
 (0)