Method
_should_continue
(self, iterations: int, time_elapsed: float)
Source from the content-addressed store, hash-verified
| 198 | return {tool.name: tool for tool in self.tools}[name] |
| 199 | |
| 200 | def _should_continue(self, iterations: int, time_elapsed: float) -> bool: |
| 201 | if self.max_iterations is not None and iterations >= self.max_iterations: |
| 202 | return False |
| 203 | if ( |
| 204 | self.max_execution_time is not None |
| 205 | and time_elapsed >= self.max_execution_time |
| 206 | ): |
| 207 | return False |
| 208 | |
| 209 | return True |
| 210 | |
| 211 | def _return( |
| 212 | self, |
Tested by
no test coverage detected