export_session_json
Kind: Function
Domain: Graph, serialization, and replay
Canonical import: from cadflow import export_session_json
Signature
def export_session_json(session: "'GraphSession'", indent: 'int' = 2) -> 'str'
Description
Export a graph session including its expression graph.
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. |
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_session_json