feat(api): Implement HITL for Workflow, add is_resumption for start event

This commit is contained in:
QuantumGhost
2025-12-30 16:40:08 +08:00
parent 01325c543f
commit 37dd61558c
27 changed files with 762 additions and 344 deletions

View File

@ -235,7 +235,7 @@ class GraphEngine:
self._graph_execution.paused = False
self._graph_execution.pause_reasons = []
start_event = GraphRunStartedEvent()
start_event = GraphRunStartedEvent(is_resumption=is_resume)
self._event_manager.notify_layers(start_event)
yield start_event

View File

@ -5,7 +5,9 @@ from core.workflow.graph_events import BaseGraphEvent
class GraphRunStartedEvent(BaseGraphEvent):
pass
# is_resumption indicating whether this `start` is a
# resumption of previously suspended execution.
is_resumption: bool = False
class GraphRunSucceededEvent(BaseGraphEvent):