Reset the agent state for a new task.
(self)
| 147 | return self._execute_step(task, is_first) |
| 148 | |
| 149 | def reset(self) -> None: |
| 150 | """Reset the agent state for a new task.""" |
| 151 | self._context = [] |
| 152 | self._step_count = 0 |
| 153 | |
| 154 | def _execute_step( |
| 155 | self, user_prompt: str | None = None, is_first: bool = False |