Skip to main content
Context for the single execution of the graph. It is used to pass optional parameters to the graph execution. It is not required to pass all of the parameters, only the ones that are needed.

Interface Definition

interface ExecutionContext {
    executionId?: string;
    userContext?: UserContextInterface;
    dataStoreContent?: { [x: string]: any; };
}

Properties

executionId (optional)

executionId?: string
Unique identifier for this execution. If not provided, one will be auto-generated.

userContext (optional)

userContext?: UserContextInterface
User context interface containing user-specific data and attributes.

dataStoreContent (optional)

dataStoreContent?: { [x: string]: any; }
Data store content that will be available for all nodes in the graph during execution. This allows you to pass shared data that can be accessed by any node using context.getDatastore().