Making stop condition optional by using a flag (#113)
* apply stop condition flag (default: ignore the stop condition)
This commit is contained in:
1 parent
449bcfb4e1
commit
9fd4d55623
3 files changed
+18
-6
No files matched your search
@@ -669,4 +669,4 @@ class GraphManager(object):
|
||||
self.memory_backend = get_memory_backend(self.agent_params.memory.memory_backend_params)
|
||||
|
||||
def should_stop(self) -> bool:
|
||||
return all([manager.should_stop() for manager in self.level_managers])
|
||||
return self.task_parameters.apply_stop_condition and all([manager.should_stop() for manager in self.level_managers])
|
||||
Reference in new issue
Block a user