Skip to content

nodekit.Graph pydantic-model

Fields:

Validators:

  • validate_nodekit_versionnodekit_version
  • check_graph_is_valid

annotation pydantic-field

annotation: str | None = None

An optional, user-defined annotation for the Graph that may be useful for debugging or analysis purposes.

nodes pydantic-field

nodes: dict[NodeId, Node | Graph]

The set of Nodes in the Graph, by NodeId. Note that a Graph can contain other Graphs as Nodes.

registers pydantic-field

registers: dict[RegisterId, LeafValue]

The initial register values.

start pydantic-field

start: NodeId

The start Node of the Graph.

transitions pydantic-field

transitions: dict[NodeId, Transition]

The set of Transitions in the Graph, by NodeId.