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
Pythonlanggraphchannelslast_value
Module●Since v0.1

last_value

Attributes

attribute
MISSING

Unset sentinel value.

attribute
Value

Functions

function
create_error_message

Classes

class
BaseChannel

Base class for all channels.

class
ErrorCode
class
InvalidUpdateError

Raised when attempting to update a channel with an invalid set of updates.

Troubleshooting guides:

  • INVALID_CONCURRENT_GRAPH_UPDATE
  • INVALID_GRAPH_NODE_RETURN_VALUE
class
LastValue

Stores the last value received, can receive at most one value per step.

class
LastValueAfterFinish

Stores the last value received, but only made available after finish(). Once made available, clears the value.

View source on GitHub