DLGValidator API Reference
Constructor
DLGValidator(config: dict | GraphConfig, *, security: SecurityConfig | None = None)
Methods
Method |
Description |
|---|---|
|
Runs all 11 validation checks. Raises on first failure. |
|
Runs only module/callable/signature checks. |
|
Runs only structural checks (cycles, reachability, mixed routing). |
|
Classmethod — loads JSON config file. |
Exceptions
Exception |
Trigger |
|---|---|
|
Schema, bad module, signature, allowlist |
|
Deterministic cycle in static edges |
|
Node not reachable from entry_point |
|
Same node in both static and conditional edges |
|
Send router targets undeclared node |
|
Subgraph state incompatible with parent |
Example
from dlg import DLGValidator
DLGValidator(config).validate()