aixplain.modules.pipeline.designer.base
Param Objects
class Param(Serializable)
Param class, this class will be used to create the parameters of the node.
attach_to
def attach_to(node: "Node") -> "Param"
Attach the param to the node.
Arguments:
node
: the node
Returns:
the param
link
def link(to_param: "Param") -> "Param"
Link the output of the param to the input of another param.
Arguments:
to_param
: the input param
Returns:
the param
back_link
def back_link(from_param: "Param") -> "Param"
Link the input of the param to the output of another param.
Arguments:
from_param
: the output param
Returns:
the param
Link Objects
class Link(Serializable)
Link class, this class will be used to link the output of the node to the input of another node.
attach_to
def attach_to(pipeline: "DesignerPipeline")
Attach the link to the pipeline.
Arguments:
pipeline
: the pipeline
ParamProxy Objects
class ParamProxy(Serializable)
special_prompt_handling
def special_prompt_handling(code: str, value: str) -> None
This method will handle the special prompt handling for asset nodes
having text-generation
function type.
Node Objects
class Node(Generic[TI, TO], Serializable)
Node class is the base class for all the nodes in the pipeline. This class will be used to create the nodes and link them together.
attach_to
def attach_to(pipeline: "DesignerPipeline")
Attach the node to the pipeline.
Arguments:
pipeline
: the pipeline