Skip to main content
Version: 1.0

aixplain.modules.pipeline.designer.mixins

LinkableMixin Objects

class LinkableMixin()

[view_source]

Linkable mixin class, this class will be used to link the output of the node to the input of another node.

This class will be used to link the output of the node to the input of another node.

def link(to_node: Node, from_param: Union[str, Param],
to_param: Union[str, Param]) -> Link

[view_source]

Link the output of the node to the input of another node. This method

will link the output of the node to the input of another node.

Arguments:

  • to_node: the node to link to the output
  • from_param: the output parameter or the code of the output parameter
  • to_param: the input parameter or the code of the input parameter

Returns:

the link

RoutableMixin Objects

class RoutableMixin()

[view_source]

Routable mixin class, this class will be used to route the input data to different nodes based on the input data type.

route

def route(*params: Param) -> Node

[view_source]

Route the input data to different nodes based on the input data type.

This method will automatically link the input data to the output data of the node.

Arguments:

  • params: the output parameters

Returns:

the router node

OutputableMixin Objects

class OutputableMixin()

[view_source]

Outputable mixin class, this class will be used to link the output of the node to the output node of the pipeline.

use_output

def use_output(param: Union[str, Param]) -> Node

[view_source]

Use the output of the node as the output of the pipeline.

This method will automatically link the output of the node to the output node of the pipeline.

Arguments:

  • param: the output parameter or the code of the output parameter

Returns:

the output node