pipeline.objects.function.Function
GraphNode - class
pipeline.objects.graph.GraphNode(
function: Callable,
*,
remote_id: str = None,
class_instance: Any = None
)
Description
The Function
object referenced by the GraphNode
objects, and created by the pipeline_function
decorator.
Parameters
function
(Callable
) - the callable object wrapped bypipeline_function
.remote_id
(str
, optional) - the remote reference ID for theFunction
object, typically used when reforming from a remote object.class_instance
(Any
) - the class thatfunction
is bound to. TypicallyNone
, but used whenself
is anarg
tofunction
.
Functions
from_schema(cls, schema: FunctionGet) -> Model
from_schema(cls, schema: FunctionGet) -> Model
Description
Returns a Function
object from a FunctionGet
schema. Typically used in conjunction with remote API access.
Parameters
schema
, (FunctionGet
) - theFunctionGet
schema containing the remote function information.
Updated about 1 year ago