wire ts in the builder

This commit is contained in:
lda
2026-05-25 02:38:04 +07:00 Verified
parent d3df4754ce
commit 16d5204fbc
4 changed files with 77 additions and 5 deletions
@@ -306,7 +306,7 @@ composition.
Current helper:
```python
child = subgraph_ref(
child = parent.subgraph(
id="run_child",
workflow=child_builder.compile(),
input=[input_from(state_path("request"), "request")],
@@ -314,10 +314,12 @@ child = subgraph_ref(
)
```
This copies the compiled child workflow contract into a core `SubgraphNode` but
does not make the child executable yet. `workflow` is still a string reference
inside the core model; higher layers need a structural workflow reference before
saved/deployed workflow dependencies become stable.
This copies the compiled child workflow contract into a core `SubgraphNode`,
appends it to the builder, and returns the step for normal routing. It does not
make the child executable yet. `workflow` is still a string reference inside the
core model; higher layers need a structural workflow reference before
saved/deployed workflow dependencies become stable. The lower-level
`subgraph_ref(...)` helper exists for code that wants only the core step object.
Possible API: