MCPcopy
hub / github.com/SqueezeAILab/LLMCompiler / _should_continue

Method _should_continue

src/executors/agent_executor.py:200–209  ·  view source on GitHub ↗
(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,

Callers 2

_callMethod · 0.95
_acallMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected