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
Pythonlanggraph_internal_runnableRunnableSeq
Class●Since v0.6

RunnableSeq

Copy
RunnableSeq(
  self,
  *steps: RunnableLike = (),
  name: str | None = None,

Bases

Runnable

Constructors

Attributes

Methods

Inherited fromRunnable(langchain_core)

Attributes

AInputTypeAOutputTypeAinput_schemaAoutput_schemaA
View source on GitHub
trace_inputs
:
Callable
[
[
Any
]
,
Any
]
|
None
=
None
)
config_specs

Methods

Mget_nameMget_input_schemaMget_input_jsonschemaMget_output_schemaMget_output_jsonschemaMconfig_schemaMget_config_jsonschemaMget_graphMget_promptsMpipeMpickMassignMbatchMbatch_as_completedMabatchMabatch_as_completedMastream_logMastream_eventsMtransformMatransformMbindMwith_configMwith_listenersMwith_alistenersMwith_typesMwith_retryMmapMwith_fallbacksMas_tool

Parameters

NameTypeDescription
stepsRunnableLike
Default:()

The steps to include in the sequence.

namestr | None
Default:None

The name of the Runnable.

constructor
__init__
NameType
namestr | None
trace_inputsCallable[[Any], Any] | None
attribute
steps: steps_flat
attribute
name: name
attribute
trace_inputs: trace_inputs
method
invoke
method
ainvoke
method
stream
method
astream

Sequence of Runnable, where the output of each is the input of the next.

RunnableSeq is a simpler version of RunnableSequence that is internal to LangGraph.