feat: Show node.name from workflow editor in debug panel
- Add name field to WorkflowNode model - Add node_name field to NodeExecutionState - Set node_name in execute_workflow from node.name - Display priority: node_name > debug_prompt_slug > node_label > node_id User sees 'Qualitätseinschätzung' instead of 'node_abc123'
This commit is contained in:
1 parent
f97d15288d
commit
5fa2ea2e6b
3 files changed
+7
-2
No files matched your search
@@ -196,6 +196,7 @@ class WorkflowNode(BaseModel):
|
||||
"""
|
||||
id: str = Field(..., description="Eindeutige Knoten-ID")
|
||||
type: NodeType = Field(..., description="Knotentyp")
|
||||
name: Optional[str] = Field(None, description="Node-Name (vom Editor)")
|
||||
position: Optional[Position] = Field(None, description="Position im visuellen Editor")
|
||||
|
||||
# ANALYSIS-Knoten
|
||||
@@ -341,6 +342,7 @@ class NodeExecutionState(BaseModel):
|
||||
Erweitert NodeState um Phase-1-Komponenten (analysis_core, decision_signals, etc.)
|
||||
"""
|
||||
node_id: str = Field(..., description="Knoten-ID")
|
||||
node_name: Optional[str] = Field(None, description="Node-Name aus Workflow-Editor")
|
||||
status: NodeStatus = Field(..., description="Ausführungsstatus")
|
||||
|
||||
# Phase 1 Result Container
|
||||
|
||||
Reference in new issue
Block a user