use json schema for state schema
This commit is contained in:
@@ -42,7 +42,10 @@ async def run_example() -> dict[str, object]:
|
||||
"properties": {"text": {"type": "string"}},
|
||||
"required": ["text"],
|
||||
},
|
||||
"state_schema": {"fields": {"echoed": {"type": "string"}}},
|
||||
"state_schema": {
|
||||
"type": "object",
|
||||
"properties": {"echoed": {"type": "string"}},
|
||||
},
|
||||
"output_schema": {
|
||||
"type": "object",
|
||||
"properties": {"echoed": {"type": "string"}},
|
||||
|
||||
@@ -15,13 +15,13 @@ def build_raw_canonical_workflow() -> Workflow:
|
||||
"required": ["text"],
|
||||
},
|
||||
"state_schema": {
|
||||
"fields": [
|
||||
{
|
||||
"path": "state.message",
|
||||
"schema": {"type": "string"},
|
||||
"reducer": {"name": "wf.std.replace"},
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"message": {
|
||||
"type": "string",
|
||||
"reducer": "wf.std.replace",
|
||||
}
|
||||
]
|
||||
},
|
||||
},
|
||||
"output_schema": {
|
||||
"type": "object",
|
||||
|
||||
Reference in New Issue
Block a user