Move engine module files to workflow directory

Co-authored-by: johndoe6345789 <224850594+johndoe6345789@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot]
2026-01-10 22:17:33 +00:00
parent 4b66f3ba5c
commit 8973c8087b
6 changed files with 22 additions and 26 deletions

View File

@@ -3,7 +3,7 @@ import argparse
import logging
import os
from dotenv import load_dotenv
from .engine import load_workflow_config, build_workflow_context, build_workflow_engine
from .workflow import load_workflow_config, build_workflow_context, build_workflow_engine
TRACE_LEVEL = 5

View File

@@ -1,18 +0,0 @@
"""
Workflow engine initialization and building.
This module contains the workflow engine setup components:
- workflow_config_loader: Load workflow configuration JSON
- workflow_context_builder: Build workflow runtime context
- workflow_engine_builder: Assemble workflow engine with dependencies
"""
from .workflow_config_loader import load_workflow_config
from .workflow_context_builder import build_workflow_context
from .workflow_engine_builder import build_workflow_engine
__all__ = [
"load_workflow_config",
"build_workflow_context",
"build_workflow_engine",
]

View File

@@ -28,5 +28,19 @@ Utilities:
value_helpers.py - Value type checking and conversion helpers
tool_runner.py - Tool execution wrapper
tool_calls_handler.py - AI tool calls processing
Workflow Engine Building:
workflow_config_loader.py - Load workflow configuration JSON
workflow_context_builder.py - Build workflow runtime context
workflow_engine_builder.py - Assemble workflow engine with dependencies
"""
from .workflow_config_loader import load_workflow_config
from .workflow_context_builder import build_workflow_context
from .workflow_engine_builder import build_workflow_engine
__all__ = [
"load_workflow_config",
"build_workflow_context",
"build_workflow_engine",
]

View File

@@ -1,11 +1,11 @@
"""Build workflow engine with dependencies."""
from ..workflow.engine import WorkflowEngine
from ..workflow.input_resolver import InputResolver
from ..workflow.loop_executor import LoopExecutor
from ..workflow.node_executor import NodeExecutor
from ..workflow.plugin_registry import PluginRegistry, load_plugin_map
from ..workflow.runtime import WorkflowRuntime
from ..workflow.tool_runner import ToolRunner
from .engine import WorkflowEngine
from .input_resolver import InputResolver
from .loop_executor import LoopExecutor
from .node_executor import NodeExecutor
from .plugin_registry import PluginRegistry, load_plugin_map
from .runtime import WorkflowRuntime
from .tool_runner import ToolRunner
def build_workflow_engine(workflow_config: dict, context: dict, logger):