This commit is contained in:
lda
2026-05-25 23:27:11 +07:00 Verified
parent dc0799b2ff
commit 334d69a98a
9 changed files with 170 additions and 15 deletions
+5
View File
@@ -438,6 +438,11 @@ def reducer_for_state_path(
def project_output(workflow: Workflow, state: dict[str, Any]) -> dict[str, Any]:
"""Project final workflow output from same-named state fields.
Node output bindings write into state during execution. At END, the runtime
exposes only state keys declared by `workflow.output_schema.properties`.
"""
return {
key: state[key] for key in workflow.output_schema.properties if key in state
}