GuidesAPI reference
DiscordDashboard
DiscordDashboard

pipeline.objects.function.Function

GraphNode - class

Source on GitHub

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 by pipeline_function.
  • remote_id (str, optional) - the remote reference ID for the Function object, typically used when reforming from a remote object.
  • class_instance (Any) - the class that function is bound to. Typically None, but used when self is an arg to function.

Functions

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) - the FunctionGet schema containing the remote function information.