Skip to main content
Version: 1.0

aixplain.modules.pipeline.designer.base

Param Objects

class Param(Serializable)

[view_source]

Param class, this class will be used to create the parameters of the node.

attach_to

def attach_to(node: "Node") -> "Param"

[view_source]

Attach the param to the node.

Arguments:

  • node: the node

Returns:

the param

def link(to_param: "Param") -> "Param"

[view_source]

Link the output of the param to the input of another param.

Arguments:

  • to_param: the input param

Returns:

the param

def back_link(from_param: "Param") -> "Param"

[view_source]

Link the input of the param to the output of another param.

Arguments:

  • from_param: the output param

Returns:

the param

class Link(Serializable)

[view_source]

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")

[view_source]

Attach the link to the pipeline.

Arguments:

  • pipeline: the pipeline

ParamProxy Objects

class ParamProxy(Serializable)

[view_source]

special_prompt_handling

def special_prompt_handling(code: str, value: str) -> None

[view_source]

This method will handle the special prompt handling for asset nodes having text-generation function type.

Node Objects

class Node(Generic[TI, TO], Serializable)

[view_source]

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")

[view_source]

Attach the node to the pipeline.

Arguments:

  • pipeline: the pipeline