LangChain Reference home pageLangChain ReferenceLangChain Reference
  • GitHub
  • Main Docs
Deep Agents
LangChain
LangGraph
Integrations
LangSmith
  • Overview
  • Graphs
  • Functional API
  • Pregel
  • Checkpointing
  • Storage
  • Caching
  • Types
  • Runtime
  • Config
  • Errors
  • Constants
  • Channels
  • Agents
LangGraph CLI
LangGraph SDK
LangGraph Supervisor
LangGraph Swarm
⌘I

LangChain Assistant

Ask a question to get started

Enter to send•Shift+Enter new line

Menu

OverviewGraphsFunctional APIPregelCheckpointingStorageCachingTypesRuntimeConfigErrorsConstantsChannelsAgents
LangGraph CLI
LangGraph SDK
LangGraph Supervisor
LangGraph Swarm
Language
Theme
PythonlanggraphpregelmainNodeBuilder
Class●Since v0.6

NodeBuilder

Copy
NodeBuilder(
    self,
)

Constructors

constructor
__init__

Methods

method
subscribe_only

Subscribe to a single channel.

method
subscribe_to

Add channels to subscribe to.

Node will be invoked when any of these channels are updated, with a dict of the channel values as input.

method
read_from

Adds the specified channels to read from, without subscribing to them.

method
do

Adds the specified node.

method
write_to

Add channel writes.

method
meta

Add tags or metadata to the node.

method
add_retry_policies

Adds retry policies to the node.

method
add_cache_policy

Adds cache policies to the node.

method
build

Builds the node.

View source on GitHub