nv_dfm_core.api.NodeRef#

class nv_dfm_core.api.NodeRef(*, id, sel=None, issubs=True)[source]#

A NodeRef is used to identify (reference) a node in a pipeline when passing the output of a node as a parameter to another node. NodeRef is a tuple [@dfmref’, NodeId, Field]. The first element is a magic string that helps identifying a tuple as a node ref. The NodeID is the id of the referenced node. The optional Field is a field inside the node’s result that should get passed as a parameter. If None, the whole result object is passed. But for example op = OtherOp(name=[‘@dfmref’, 42, ‘filename’]) would only pass the ‘filename’ field of node 42’s result.

Parameters:
  • id (NodeId)

  • sel (int | str | None)

  • issubs (bool)

model_config = {'frozen': True}#

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].