Subworkflow Deployment Node

vellum.workflows.nodes.SubworkflowDeploymentNode

Used to execute a deployed Workflow as a subworkflow within another workflow. This allows you to compose workflows from other deployed workflows.

Attributes

deployment
Union[UUID, str]Required

Either the Workflow Deployment’s UUID or its name

subworkflow_inputs
Dict[str, Any]Required

The inputs for the Subworkflow. Supports:

  • Strings
  • Numbers (float)
  • Chat History (List[ChatMessage])
  • JSON objects (Dict[str, Any])
release_tag
strDefaults to LATEST

The release tag to use for the Workflow Execution

external_id
Optional[str]

The external ID to use for the Workflow Execution

expand_meta
Optional[WorkflowExpandMetaRequest]

An optionally specified configuration used to opt in to including additional metadata about this workflow execution in the API response. Corresponding values will be returned under the execution_meta key within NODE events in the response stream. See Execute Workflow: Expand Meta.

metadata
Optional[Dict[str, Optional[Any]]]

The metadata to use for the Workflow Execution

request_options
Optional[RequestOptions]

The request options to use for the Workflow Execution

Outputs

The outputs of this node are determined by the outputs defined in the deployed workflow. Each output from the workflow will be streamed through this node.