aixplain.modules.pipeline.designer.mixins
LinkableMixin Objects
class LinkableMixin()
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.
link
def link(to_node: Node, from_param: Union[str, Param],
to_param: Union[str, Param]) -> Link
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 outputfrom_param
: the output parameter or the code of the output parameterto_param
: the input parameter or the code of the input parameter
Returns:
the link
RoutableMixin Objects
class RoutableMixin()
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
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()
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
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