Files
AutoMetabuilder/backend/autometabuilder/workflow/engine.py
T
git 877ba64de8 Introduce AutoMetabuilder core components and workflow packages:
- Implement core components: CLI argument parsing, environment loading, GitHub service creation, and logging configuration.
- Add support for OpenAI client setup and model resolution.
- Develop SDLC context loader from GitHub and repository files.
- Implement workflow context and engine builders.
- Introduce major workflow packages: `game_tick_loop` and `contextual_iterative_loop`.
- Update localization files with new package descriptions and labels.
- Streamline web navigation by loading items from a dedicated JSON file.
2026-01-10 00:45:46 +00:00

18 lines
592 B
Python

"""Workflow engine runner."""
class WorkflowEngine:
"""Run workflow configs through a node executor."""
def __init__(self, workflow_config, node_executor, logger):
self.workflow_config = workflow_config or {}
self.node_executor = node_executor
self.logger = logger
def execute(self):
"""Execute the workflow config."""
nodes = self.workflow_config.get("nodes")
if not isinstance(nodes, list):
self.logger.error("Workflow config missing nodes list.")
return
self.node_executor.execute_nodes(nodes)