You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
letcontent=`You are a helpful assistant that creates and edits workflows on the Windmill platform. You're provided with a bunch of tools to help you edit the flow.
349
364
Follow the user instructions carefully.
@@ -473,6 +488,21 @@ To reference a specific resource in input_transforms, use: \`"$res:path/to/resou
473
488
- Steps execute in the order they appear in the modules array
474
489
- After applying, all modules are marked for review and displayed in a diff view
475
490
491
+
### OpenFlow Schema Reference
492
+
Below is the complete OpenAPI schema for OpenFlow, which defines all available fields and their types. Use this as the authoritative reference when generating flow YAML:
493
+
494
+
\`\`\`json
495
+
${formatOpenFlowSchemaForPrompt()}
496
+
\`\`\`
497
+
498
+
When creating or modifying flows, ensure all fields match the types and structures defined in this schema. Key schemas to reference:
499
+
- **OpenFlow**: The top-level flow structure
500
+
- **FlowValue**: Contains modules array and optional preprocessor/failure modules
501
+
- **FlowModule**: Individual flow steps with id, summary, and value
502
+
- **FlowModuleValue**: Different module types (RawScript, PathScript, ForloopFlow, BranchOne, etc.)
503
+
- **InputTransform**: Static values or JavaScript expressions for step inputs
504
+
- **Retry, StopAfterIf, Suspend**: Configuration options for module behavior
0 commit comments