Expand description
Workflow validator — detects cycles, orphan nodes, undefined dependencies.
Validates a compiled WorkflowDAG before execution to prevent errors:
- Cycle detection: no circular dependencies
- Orphan detection: no unreachable nodes
- Dependency integrity: all
depends_onreferences are valid step IDs - Empty step detection: steps must have either a tool or a prompt
- Duplicate ID detection: no two steps can share an ID
Structs§
- Validation
Issue - A validation issue found in the workflow.
- Validation
Result - Result of workflow validation.
Enums§
- Validation
Code - Code identifying the type of validation issue.
- Validation
Severity - Severity of a validation issue.
Functions§
- validate
- Full validation: config + DAG.
- validate_
config - Validate a WorkflowConfig before compilation.
- validate_
dag - Validate a compiled WorkflowDAG.