nodify.workflow.WorkflowNodes

class nodify.workflow.WorkflowNodes(inputs: Dict[str, WorkflowInput], workers: Dict[str, Node], output: WorkflowOutput, named_vars: Dict[str, str])[source]

Bases: object

__init__(inputs: Dict[str, WorkflowInput], workers: Dict[str, Node], output: WorkflowOutput, named_vars: Dict[str, str])[source]

Methods

__init__(inputs, workers, output, named_vars)

copy([inputs])

Creates a copy of the workflow nodes.

from_node_tree(output_node)

from_workflow_run(inputs, output, named_vars)

gather_from_inputs_and_output(inputs, output)

get(key)

items()

values()

Attributes

inputs

workers

output

named_vars

copy(inputs: Dict[str, Any] = {}) WorkflowNodes[source]

Creates a copy of the workflow nodes.

Parameters:

inputs (dict, optional) – The inputs to be used in the copy. If not provided, the inputs of the original workflow will be used.