refactor(workflow): add new engine and utils modules

- Add engine/ directory with core components:
  - graph_builder: workflow graph construction
  - variable_pool: variable management
  - state_manager: execution state tracking
  - event_stream_handler: event processing
  - stream_output_coordinator: streaming output control
  - result_builder: result aggregation
  - runtime_schema: runtime type definitions

- Add utils/ directory with utilities:
  - expression_evaluator: safe expression evaluation
  - template_renderer: Jinja2 template rendering
This commit is contained in:
Eternity
2026-02-10 13:33:57 +08:00
parent df681eaf22
commit d477e24e34
42 changed files with 1109 additions and 925 deletions

View File

@@ -6,8 +6,8 @@ import os
import pytest
from app.core.workflow.variable.base_variable import VariableType, DEFAULT_VALUE
from app.core.workflow.variable_pool import VariablePool
from app.core.workflow.engine.variable_pool import VariablePool
from app.core.workflow.variable.base_variable import VariableType
TEST_WORKSPACE_ID = "test_workspace_id"
TEST_USER_ID = "test_user_id"