Thunk#

class tierkreis.builder.Thunk(graph_src: NodePort | NodeRef | PortFunc, input_order: list[str], output_order: list[str])[source]#

Bases: _CallAddNode, PortFunc

Utility to call a thunk (a graph) as a function. Adds an eval node when called.

Methods

copyable

resolve

Return a NodePort, creating nodes as necessary in source graph.

source_graph

The graph the port belongs to (or will).

Attributes

graph_src

node

input_order

output_order

resolve() NodePort[source]#

Return a NodePort, creating nodes as necessary in source graph.

source_graph() TierkreisGraph[source]#

The graph the port belongs to (or will).