Output#
- class tierkreis.builder.Output(*args: NodePort | NodeRef | PortFunc, **kwargs: NodePort | NodeRef | PortFunc)[source]#
Bases:
NodeRef
Set the outputs of a graph to the provided values. Return this object when terminating a graph building context. Positional arguments are mapped to any output names annotated on the graph being built, keyword arguments are used to explicitly set outputs.
Methods
Output port name to use if none is specified.
If this NodeRef refers to a FunctionNode, set its retry time in seconds.
Attributes
outports
idx
graph
- default_nodeport(create: bool = True) NodePort #
Output port name to use if none is specified.
- Raises:
ValueError – If there are multiple known output ports.
- Returns:
Single output port if exactly one is known, else “value”.