foreach container arg to get the path treatment too!

This commit is contained in:
lda
2026-05-21 14:31:52 +07:00 Verified
parent 3be1593276
commit 23ffddf9b3
8 changed files with 54 additions and 8 deletions
-2
View File
@@ -397,8 +397,6 @@ class WorkflowBuilder:
mode: Literal["serial", "parallel"] = "serial",
on_item_error: Literal["fail", "collect", "skip"] = "fail",
) -> ForeachNode:
# Core foreach still stores `over` as a string. Keep this compatibility
# path isolated until ForeachNode grows a typed GraphSourcePath field.
node = ForeachNode.model_validate(
{
"id": id or self._next_step_id(f"foreach_{slug_id(as_)}"),