nested state path: wf_authoring support

This commit is contained in:
lda
2026-05-17 15:58:19 +07:00 Verified
parent 5476010f12
commit c5b43c7dbe
5 changed files with 159 additions and 11 deletions
+11
View File
@@ -52,6 +52,17 @@ class DefaultedState(BaseModel):
explicit: int = 3
class NestedPersonState(BaseModel):
name: str
tags: Annotated[list[str], state_field(merge_strategy="append")] = Field(
default_factory=list
)
class NestedWorkflowState(BaseModel):
person: NestedPersonState
@node(name="test.auto_bind")
def auto_bind_node(input: AutoBindInput) -> AutoBindOutput:
"""Return updated fields using automatically mapped state input."""