reducer replaces merge_strategy.

This commit is contained in:
lda
2026-05-17 16:23:51 +07:00 Verified
parent c5b43c7dbe
commit 86ffb17ec6
14 changed files with 348 additions and 91 deletions
+6 -6
View File
@@ -24,15 +24,15 @@ def build_demo_workflow() -> Workflow:
"fields": {
"folder_id": {"type": "string"},
"should_email": {"type": "boolean"},
"documents": {"type": "array", "merge_strategy": "replace"},
"item_summaries": {"type": "array", "merge_strategy": "append"},
"summary": {"type": "string", "merge_strategy": "replace"},
"approved": {"type": "boolean", "merge_strategy": "replace"},
"documents": {"type": "array", "reducer": "wf.std.replace"},
"item_summaries": {"type": "array", "reducer": "wf.std.append"},
"summary": {"type": "string", "reducer": "wf.std.replace"},
"approved": {"type": "boolean", "reducer": "wf.std.replace"},
"approval_comment": {
"type": "string",
"merge_strategy": "replace",
"reducer": "wf.std.replace",
},
"email_status": {"type": "string", "merge_strategy": "replace"},
"email_status": {"type": "string", "reducer": "wf.std.replace"},
}
},
"output_schema": {