Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions sgr_agent_core/agents/dialog_agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ async def _after_action_phase(self, action_tool: BaseTool, result: str) -> None:
self.logger.info("\n⏸️ Research paused - please answer questions")
self._context.state = AgentStatesEnum.WAITING_FOR_CLARIFICATION
self.streaming_generator.finish(
phase_id="{self._context.iteration}-final", content=self._context.execution_result
phase_id=f"{self._context.iteration}-final", content=self._context.execution_result
)
self._context.clarification_received.clear()
await self._context.clarification_received.wait()
Expand All @@ -73,7 +73,7 @@ async def _after_action_phase(self, action_tool: BaseTool, result: str) -> None:
self.logger.info("\n💬 Dialog shared - agent waiting for response")
self._context.state = AgentStatesEnum.WAITING_FOR_CLARIFICATION
self.streaming_generator.finish(
phase_id="{self._context.iteration}-final", content=self._context.execution_result
phase_id=f"{self._context.iteration}-final", content=self._context.execution_result
)
self._context.clarification_received.clear()
await self._context.clarification_received.wait()
2 changes: 1 addition & 1 deletion sgr_agent_core/base_agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ async def _execution_step(self):
if isinstance(action_tool, ClarificationTool):
self.logger.info("\n⏸️ Research paused - please answer questions")
self.streaming_generator.finish(
phase_id="{self._context.iteration}-final", content=self._context.execution_result
phase_id=f"{self._context.iteration}-final", content=self._context.execution_result
)
self._context.clarification_received.clear()
await self._context.clarification_received.wait()
Expand Down