Skip to main content

Graph, serialization, and replay

Batch execution, recording, Model JSON, strict replay, and structured workflow state.

This catalog contains 18 public symbols. Select a symbol for its exact signature, parameters, return contract, errors, members, aliases, and behavior notes.

Modules

SymbolImportSummary
serializationfrom cadflow import serializationSerialization domain facade for Model JSON and replay.

Classes

SymbolImportSummary
Graphfrom cadflow import GraphGraph(nodes: 'list[Node]' = <factory>)
GraphSessionfrom cadflow import GraphSessionContext manager that records CAD operations into a DAG.
ModelResultfrom cadflow import ModelResultThe value and durable graph artifacts produced by @model.
Nodefrom cadflow import NodeNode(op: 'str', args: 'tuple[object, ...]' = ())

Functions

SymbolImportSummary
capture_resultfrom cadflow import capture_resultCapture value as an explicit result in the active model session.
export_graph_jsonfrom cadflow import export_graph_jsonExport an OperationGraph to a JSON string.
export_model_jsonfrom cadflow import export_model_jsonExport the canonical 2.0 model seed JSON.
export_session_jsonfrom cadflow import export_session_jsonExport a graph session including its expression graph.
get_active_sessionfrom cadflow import get_active_sessionReturn the currently active GraphSession, or None.
import_graph_jsonfrom cadflow import import_graph_jsonImport an OperationGraph from a JSON string.
import_model_jsonfrom cadflow import import_model_jsonImport canonical 2.0 model seed JSON.
import_session_jsonfrom cadflow import import_session_jsonImport session payload containing graph and expression graph.
modelfrom cadflow import modelDecorate a top-level model function with one owned GraphSession.
replay_graphfrom cadflow import replay_graphReplay an OperationGraph to rebuild the model.
replay_model_jsonfrom cadflow import replay_model_jsonReplay a model payload using its canonical low-level graph.
requires_sessionfrom cadflow import requires_sessionDecorate a builder that must reuse the caller's active GraphSession.
suspend_graph_recordingfrom cadflow import suspend_graph_recordingTemporarily suspend automatic graph recording for internal API composition.