Skip to main content

Module validator

Module validator 

Source
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_on references 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§

ValidationIssue
A validation issue found in the workflow.
ValidationResult
Result of workflow validation.

Enums§

ValidationCode
Code identifying the type of validation issue.
ValidationSeverity
Severity of a validation issue.

Functions§

validate
Full validation: config + DAG.
validate_config
Validate a WorkflowConfig before compilation.
validate_dag
Validate a compiled WorkflowDAG.