use json schema for state schema

This commit is contained in:
lda
2026-05-20 19:14:00 +07:00 Verified
parent 7322e7ad5f
commit 9f265c3f80
16 changed files with 758 additions and 170 deletions
+2 -1
View File
@@ -1190,7 +1190,8 @@ def _custom_reducer_artifact() -> WorkflowArtifact:
"required": ["total", "amount"],
},
"state_schema": {
"fields": {
"type": "object",
"properties": {
"total": {
"type": "integer",
"reducer": "custom.multiply",