For AI agents: a documentation index is available at the root level at /llms.txt and /llms-full.txt. Append /llms.txt to any URL for a page-level index, or .md for the markdown version of any page.
BlogLog InRequest Demo
HomeProductDevelopersSelf-HostingChangelog
HomeProductDevelopersSelf-HostingChangelog
  • Getting Started
    • Overview
  • Workflows SDK
    • Introduction
    • Installation
    • Core Concepts
    • Defining Control Flow
    • Configuration
    • Custom Docker Images
      • Displayable Nodes
        • Agent Node
        • Inline Prompt Node
        • Inline Subworkflow Node
        • Prompt Deployment Node
        • Search Node
        • Subworkflow Deployment Node
        • API Node
        • Code Execution Node
        • Templating Node
        • Guardrail Node
        • Map Node
        • Conditional Node
        • Merge Node
        • Error Node
        • Final Output Node
      • Datasets
      • CLI
  • Client SDK
    • Introduction
    • Authentication
    • API Versioning
LogoLogo
BlogLog InRequest Demo
Workflows SDKAPI ReferenceDisplayable Nodes

Final Output Node

Basic Example
1from vellum.workflows.inputs.base import BaseInputs
2from vellum.workflows.state import BaseState
3from vellum.workflows import BaseWorkflow
4from vellum.workflows.nodes import FinalOutputNode
5
6class Inputs(BaseInputs):
7 input: str
8
9
10class BasicFinalOutputNode(FinalOutputNode):
11 class Outputs(FinalOutputNode.Outputs):
12 value = Inputs.input
13
14
15class BasicFinalOutputNodeWorkflow(BaseWorkflow[Inputs, BaseState]):
16 graph = BasicFinalOutputNode
17
18 class Outputs(BaseWorkflow.Outputs):
19 value = BasicFinalOutputNode.Outputs.value
Was this page helpful?
Previous

Datasets Overview

Next
Built with

vellum.workflows.nodes.FinalOutputNode

Used to directly reference the output of another node. This provides backward compatibility with Vellum’s Final Output Node functionality. In most cases, you should reference the Workflow Output directly to the output of a particular node, without adding a Final Output Node.

Attributes

value
_OutputTypeRequired

The value to be output. The type is inferred by the type of the node connected to this attribute.

Outputs

value
_OutputType

The output value, with the same type as the input value