export_model_json
Kind: Function
Domain: Graph, serialization, and replay
Canonical import: from cadflow import export_model_json
Signature
def export_model_json(session: "'GraphSession'", indent: 'int' = 2, *, result_node_ids: 'Optional[Sequence[str]]' = None) -> 'str'
Description
Export the canonical 2.0 model seed JSON.
Export the canonical 2.0 model seed JSON.
Current Phase 1 scope uses the active session as the container of: - operation graph - expression graph - capabilities/schema metadata
Parameters
| Name | Type | Required | Default | Source description |
|---|---|---|---|---|
session | "'GraphSession'" | yes | - | Not explicitly described in the source docstring. |
indent | 'int' | no | 2 | Not explicitly described in the source docstring. |
result_node_ids | 'Optional[Sequence[str]]' | no | None | Not explicitly described in the source docstring. |
Returns
Type: 'str'
The source docstring does not declare additional return semantics.
Errors
The source docstring does not declare a narrower exception contract. Invalid types, values, ownership, paths, or backend state may still raise the corresponding public error.
Behavior and constraints
- This operation writes an external artifact. Validate the returned path or output file before delivery.
- Serialized data is intended to remain JSON-safe and should be schema-validated when crossing trust boundaries.
Import check
from cadflow import export_model_json