Update ExtendLibraryFlow.py
Browse files12345678951011121391415111617131819152021from typing import Dict, Anyfrom flows.utils import logginglog = logging.get_logger(__name__)
from flow_modules.Tachi67.AbstractBossFlowModule import AbstractBossFlowclass ExtendLibraryFlow(AbstractBossFlow): def run(self, input_data: Dict[str, Any]) -> Dict[str, Any]: # ~~~ sets the input_data in the flow_state dict ~~~ self._state_update_dict(update_data=input_data)
max_rounds = self.flow_config.get("max_rounds", 1) if max_rounds is None: log.info(f"Running {self.flow_config['name']} without `max_rounds` until the early exit condition is met.")
self._sequential_run(max_rounds=max_rounds)
output = self._get_output_from_state()
self.reset(full_reset=True, recursive=True, src_flow=self)
return outputExtendLibraryFlow.py+10-5