CanonicalState and InterpretiveState share the path-based State implementation. Their field payloads and fill rules differ, but the structural operations are the same.
Common methods
Canonical example
Interpretive example
Completion checks
Pass an explicit required-field list when completeness matters to business logic. With no list, the base implementation checks only paths that already have non-None payloads; it does not infer OpenAPI required fields or enforce schema validation.
Serialization boundary
to_json() exports the DAH graph, including node and dependency structure. For a flat application payload, construct CanonicalStateSchema or InterpretiveStateSchema from get_all_fields() as shown in the quickstart.