Function Compute

Updated at:

Definition

Function Compute executes code in your workflows. It supports various runtimes, such as Python, Node.js, Java, Golang, and custom containers. It simplifies workflows that involve computing tasks such as data pre-processing, data transformation, and running custom scripts.

This node offers developers more flexibility to embed custom environment scripts into workflows. It also provides elastic compute resources.

Prerequisites

Create an AI Studio service

Node configuration

Function name: Select the name of the function to invoke. If no functions exist for the account, create a function service.

Version and alias: Select the version and alias to invoke.

Invocation mode: Select the invocation mode. Currently, only synchronous calls are supported.

Request payload: Enter the request payload. You can insert variables or define a custom payload.