Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/langchain-ai/langgraph
/ types & classes
Types & classes
1,100 in github.com/langchain-ai/langgraph
⨍
Functions
6,684
◇
Types & classes
1,100
↳
Endpoints
26
↓ 570 callers
Class
StateGraph
A graph whose nodes communicate by reading and writing to a shared state. The signature of each node is `State -> Partial<State>`. Each stat
libs/langgraph/langgraph/graph/state.py:130
↓ 229 callers
Class
Command
One or more commands to update the graph's state and send messages to nodes. Args: graph: Graph to send the command to. Supported values
libs/langgraph/langgraph/types.py:759
↓ 164 callers
Class
HttpClient
Handle async requests to the LangGraph API. Adds additional error messaging & content handling above the provided httpx client. Attribut
libs/sdk-py/langgraph_sdk/_async/http.py:26
↓ 126 callers
Class
ThreadsClient
Client for managing threads in LangGraph. A thread maintains the state of a graph across multiple interactions/invocations (aka runs). It acc
libs/sdk-py/langgraph_sdk/_async/threads.py:30
↓ 111 callers
Class
FakeServer
Holds scripted state for tests and exposes a Starlette app. Attributes: received_commands: every command body posted to /commands, in ord
libs/sdk-py/tests/streaming/_fake_server.py:65
↓ 111 callers
Class
ToolNode
A node for executing tools in LangGraph workflows. Handles tool execution patterns including function calls, state injection, persistent stor
libs/prebuilt/langgraph/prebuilt/tool_node.py:622
↓ 104 callers
Class
AnyStr
libs/langgraph/tests/any_str.py:33
↓ 99 callers
Class
InMemorySaver
An in-memory checkpoint saver. This checkpoint saver stores checkpoints in memory using a `defaultdict`. Note: Only use `InMemorySav
libs/checkpoint/langgraph/checkpoint/memory/__init__.py:33
↓ 91 callers
Class
SyncHttpClient
Handle synchronous requests to the LangGraph API. Provides error messaging and content handling enhancements above the underlying httpx clien
libs/sdk-py/langgraph_sdk/_sync/http.py:25
↓ 84 callers
Class
StreamMux
Central event dispatcher for the streaming infrastructure. Owns the main event log and routes events through a transformer pipeline. StreamCh
libs/langgraph/langgraph/stream/_mux.py:26
↓ 67 callers
Class
JsonPlusSerializer
Serializer that uses ormsgpack, with optional fallbacks. !!! warning Security note: This serializer is intended for use within the `Base
libs/checkpoint/langgraph/checkpoint/serde/jsonplus.py:82
↓ 64 callers
Class
SyncThreadsClient
Synchronous client for managing threads in LangGraph. This class provides methods to create, retrieve, and manage threads, which represent co
libs/sdk-py/langgraph_sdk/_sync/threads.py:30
↓ 61 callers
Class
StreamChannel
Single-consumer drainable queue for streaming events, with optional protocol auto-forwarding. When constructed with a `name`, the StreamMux a
libs/langgraph/langgraph/stream/stream_channel.py:14
↓ 57 callers
Class
SyncFakeServer
Synchronous fake for `/commands`, `/stream/events`, and `/state`.
libs/sdk-py/tests/streaming/_sync_fake_server.py:32
↓ 54 callers
Class
Interrupt
Information about an interrupt that occurred in a node. !!! version-added "Added in version 0.2.24" !!! version-changed "Changed in version
libs/langgraph/langgraph/types.py:535
↓ 47 callers
Class
LastValue
Stores the last value received, can receive at most one value per step.
libs/langgraph/langgraph/channels/last_value.py:20
↓ 46 callers
Class
Pregel
Pregel manages the runtime behavior for LangGraph applications. ## Overview Pregel combines [**actors**](https://en.wikipedia.org/wiki/Actor
libs/langgraph/langgraph/pregel/main.py:450
↓ 45 callers
Class
NodeBuilder
libs/langgraph/langgraph/pregel/main.py:206
↓ 44 callers
Class
StateSnapshot
Snapshot of the state of the graph at the beginning of a step.
libs/langgraph/langgraph/types.py:643
↓ 42 callers
Class
Send
A message or packet to send to a specific node in the graph. The `Send` class is used within a `StateGraph`'s conditional edges to dynamicall
libs/langgraph/langgraph/types.py:664
↓ 41 callers
Class
RemoteGraph
The `RemoteGraph` class is a client implementation for calling remote APIs that implement the LangGraph Server API specification. For example
libs/langgraph/langgraph/pregel/remote.py:118
↓ 39 callers
Class
PregelTask
A Pregel task.
libs/langgraph/langgraph/types.py:597
↓ 38 callers
Class
FakeToolCallingModel
libs/prebuilt/tests/model.py:22
↓ 37 callers
Class
RetryPolicy
Configuration for retrying nodes. !!! version-added "Added in version 0.2.24"
libs/langgraph/langgraph/types.py:416
↓ 33 callers
Class
InMemoryStore
In-memory dictionary-backed store with optional vector search. !!! example "Examples" Basic key-value storage: store = InMemo
libs/checkpoint/langgraph/store/memory/__init__.py:136
↓ 29 callers
Class
DeltaChannel
Reducer channel that stores only a sentinel in checkpoint blobs and reconstructs state by replaying ancestor writes through the reducer. !!!
libs/langgraph/langgraph/channels/delta.py:25
↓ 27 callers
Class
ProtocolSseTransport
v3 protocol transport bound to a single `thread_id`. Commands go to `POST /threads/{thread_id}/commands` (JSON in, JSON out). `open_event_str
libs/sdk-py/langgraph_sdk/stream/transport/http.py:33
↓ 24 callers
Class
TimeoutPolicy
Configuration for timing out node attempts. !!! note "Cooperative cancellation" Timeouts rely on asyncio cancellation. If your node uses
libs/langgraph/langgraph/types.py:450
↓ 22 callers
Class
ProtocolWebSocketTransport
v3 protocol transport using HTTP commands and WebSocket events.
libs/sdk-py/langgraph_sdk/stream/transport/ws.py:25
↓ 18 callers
Class
CheckpointTuple
A tuple containing a checkpoint and its associated data.
libs/checkpoint/langgraph/checkpoint/base/__init__.py:139
↓ 18 callers
Class
PutOp
Operation to store, update, or delete an item in the store. This class represents a single operation to modify the store's contents, whether
libs/checkpoint/langgraph/store/base/__init__.py:431
↓ 18 callers
Class
StreamPart
Represents a part of a stream response.
libs/sdk-py/langgraph_sdk/schema.py:595
↓ 18 callers
Class
_Emitter
Dual-mode output: JSON-lines (``--json``) or human-readable click text.
libs/cli/langgraph_cli/deploy.py:127
↓ 17 callers
Class
RunControl
Run-scoped control surface for cooperative draining. Intended for a single graph run. Create a fresh `RunControl` per run; reusing a control
libs/langgraph/langgraph/runtime.py:79
↓ 17 callers
Class
StateUpdate
libs/langgraph/langgraph/types.py:591
↓ 16 callers
Class
HostBackendClient
Minimal JSON HTTP client for the host backend deployment service.
libs/cli/langgraph_cli/host_backend.py:19
↓ 16 callers
Class
RunnableCallable
A much simpler version of RunnableLambda that requires sync and async functions.
libs/langgraph/langgraph/_internal/_runnable.py:278
↓ 16 callers
Class
SyncCronClient
Synchronous client for managing cron jobs in LangGraph. This class provides methods to create and manage scheduled tasks (cron jobs) for automate
libs/sdk-py/langgraph_sdk/_sync/cron.py:34
↓ 15 callers
Class
GraphRunStream
Sync run stream with caller-driven pumping. The caller's iteration on any projection (`values`, `messages`, raw events, or `output`) drives t
libs/langgraph/langgraph/stream/run_stream.py:37
↓ 14 callers
Class
CronClient
Client for managing recurrent runs (cron jobs) in LangGraph. A run is a single invocation of an assistant with optional input, config, and contex
libs/sdk-py/langgraph_sdk/_async/cron.py:34
↓ 14 callers
Class
EphemeralValue
Stores the value received in the step immediately preceding, clears after.
libs/langgraph/langgraph/channels/ephemeral_value.py:15
↓ 14 callers
Class
GetOp
Operation to retrieve a specific item by its namespace and key. This operation allows precise retrieval of stored items using their full path
libs/checkpoint/langgraph/store/base/__init__.py:157
↓ 14 callers
Class
ToolCallsDecoder
Yields one tool-call handle per `tool-started` event. Mirrors the per-event body of `_ToolCallsProjection._tool_calls_iter` (`_async/stream.p
libs/sdk-py/langgraph_sdk/stream/decoders.py:199
↓ 13 callers
Class
InvalidUpdateError
Raised when attempting to update a channel with an invalid set of updates. Troubleshooting guides: - [`INVALID_CONCURRENT_GRAPH_UPDATE`](htt
libs/langgraph/langgraph/errors.py:90
↓ 13 callers
Class
SubgraphsDecoder
Discovers child subgraph handles and fans out events to active ones. Mirrors the per-event body of `_SubgraphsProjection._subgraphs_iter` (`_
libs/sdk-py/langgraph_sdk/stream/decoders.py:257
↓ 12 callers
Class
AsyncThreadStream
Async context manager for one thread's v3 streaming session. Construct via `client.threads.stream(thread_id=None, *, assistant_id, ...)` rath
libs/sdk-py/langgraph_sdk/_async/stream.py:1157
↓ 12 callers
Class
ListNamespacesOp
Operation to list and filter namespaces in the store. This operation allows exploring the organization of data, finding specific collections,
libs/checkpoint/langgraph/store/base/__init__.py:368
↓ 12 callers
Class
MessagesDecoder
Yields one chat-model stream per `message-start` event. Subsequent events route to the matching stream via `stream.dispatch(data)`. Mirrors t
libs/sdk-py/langgraph_sdk/stream/decoders.py:139
↓ 12 callers
Class
MessagesTransformer
Capture messages events as ChatModelStream objects. The messages projection yields one `ChatModelStream` (or `AsyncChatModelStream`) per LLM
libs/langgraph/langgraph/stream/transformers.py:155
↓ 12 callers
Class
SyncScopedStreamHandle
Scoped streaming handle for one discovered child invocation.
libs/sdk-py/langgraph_sdk/_sync/stream.py:609
↓ 11 callers
Class
DataDecoder
Yields `params.data` from events of a single `method`. Covers the channels whose projection is just "emit the payload": `values`, `updates`,
libs/sdk-py/langgraph_sdk/stream/decoders.py:106
↓ 11 callers
Class
InjectedState
Annotation for injecting graph state into tool arguments. This annotation enables tools to access graph state without exposing state manageme
libs/prebuilt/langgraph/prebuilt/tool_node.py:1753
↓ 11 callers
Class
Runtime
Convenience class that bundles run-scoped context and other runtime utilities. This class is injected into graph nodes and middleware. It provide
libs/langgraph/langgraph/runtime.py:125
↓ 11 callers
Class
SearchOp
Operation to search for items within a specified namespace hierarchy. This operation supports both structured filtering and natural language sear
libs/checkpoint/langgraph/store/base/__init__.py:203
↓ 11 callers
Class
StreamController
Manages subscriptions and fan-out against one shared SSE connection. Responsibilities: - subscription registry (register / unregister)
libs/sdk-py/langgraph_sdk/stream/controller.py:96
↓ 11 callers
Class
SyncProtocolWebSocketTransport
Sync v3 protocol transport using HTTP commands and WebSocket events.
libs/sdk-py/langgraph_sdk/stream/transport/sync_ws.py:23
↓ 10 callers
Class
Checkpoint
State snapshot at a given point in time.
libs/checkpoint/langgraph/checkpoint/base/__init__.py:92
↓ 10 callers
Class
PregelTaskWrites
Simplest implementation of WritesProtocol, for usage with writes that don't originate from a runnable task, eg. graph input, update_state, etc.
libs/langgraph/langgraph/pregel/_algo.py:110
↓ 10 callers
Class
SyncRunsClient
Synchronous client for managing runs in LangGraph. This class provides methods to create, retrieve, and manage runs, which represent individu
libs/sdk-py/langgraph_sdk/_sync/runs.py:56
↓ 10 callers
Class
SyncStreamScript
libs/sdk-py/tests/streaming/_sync_fake_server.py:14
↓ 10 callers
Class
UUID
r"""UUID draft version objects
libs/checkpoint/langgraph/checkpoint/base/id.py:15
↓ 10 callers
Class
_FakeTask
Minimal stand-in for PregelExecutableTask covering only what map_debug_tasks reads.
libs/langgraph/tests/test_pregel_debug.py:8
↓ 9 callers
Class
EmptyChannelError
Raised when attempting to get the value of a channel that hasn't been updated for the first time yet.
libs/checkpoint/langgraph/checkpoint/base/__init__.py:745
↓ 9 callers
Class
ExecutionInfo
Read-only execution info/metadata for the execution of current thread/run/node.
libs/langgraph/langgraph/runtime.py:27
↓ 9 callers
Class
ExtensionsDecoder
Yields `params.data` from one named custom channel. Mirrors `_ExtensionProjection._iter` (`_async/stream.py:1278-1299`), with an added name f
libs/sdk-py/langgraph_sdk/stream/decoders.py:334
↓ 9 callers
Class
FakeTracer
Fake tracer that records LangChain execution. It replaces run ids with deterministic UUIDs for snapshotting.
libs/langgraph/tests/fake_tracer.py:10
↓ 9 callers
Class
GraphInterrupt
Raised when a subgraph is interrupted, suppressed by the root graph. Never raised directly, or surfaced to the user.
libs/langgraph/langgraph/errors.py:102
↓ 9 callers
Class
InjectedStore
Annotation for injecting persistent store into tool arguments. This annotation enables tools to access LangGraph's persistent storage system
libs/prebuilt/langgraph/prebuilt/tool_node.py:1829
↓ 9 callers
Class
ValuesTransformer
Capture values events as a drainable stream of state snapshots. Provides the `run.values` projection. `run.output`, `run.interrupted` and `ru
libs/langgraph/langgraph/stream/transformers.py:28
↓ 8 callers
Class
AnyDict
libs/langgraph/tests/any_str.py:49
↓ 8 callers
Class
BinaryOperatorAggregate
Stores the result of applying a binary operator to the current value and each new value. ```python import operator total = Channels.Bina
libs/langgraph/langgraph/channels/binop.py:65
↓ 8 callers
Class
CustomTransformer
Capture custom events as a drainable stream of arbitrary payloads. Nodes emit custom data via `get_stream_writer()`. This transformer surface
libs/langgraph/langgraph/stream/transformers.py:85
↓ 8 callers
Class
EventStreamHandle
Handle for one async filtered event stream.
libs/sdk-py/langgraph_sdk/stream/transport/base.py:15
↓ 8 callers
Class
Item
Represents a stored item with metadata. Args: value: The stored data as a dictionary. Keys are filterable. key: Unique identifier
libs/checkpoint/langgraph/store/base/__init__.py:51
↓ 8 callers
Class
Overwrite
Bypass a reducer and write the wrapped value directly to a `BinaryOperatorAggregate` channel. Receiving multiple `Overwrite` values for the same
libs/langgraph/langgraph/types.py:938
↓ 8 callers
Class
Topic
A configurable PubSub Topic. Args: typ: The type of the value stored in the channel. accumulate: Whether to accumulate values acr
libs/langgraph/langgraph/channels/topic.py:23
↓ 8 callers
Class
_GraphEventHandler
libs/langgraph/tests/test_graph_callbacks.py:26
↓ 7 callers
Class
ChannelWrite
Implements the logic for sending writes to CONFIG_KEY_SEND. Can be used as a runnable or as a static method to call imperatively.
libs/langgraph/langgraph/pregel/_write.py:46
↓ 7 callers
Class
ChannelWriteEntry
libs/langgraph/langgraph/pregel/_write.py:26
↓ 7 callers
Class
Context
libs/langgraph/tests/test_runtime.py:25
↓ 7 callers
Class
GraphOutput
Typed container returned by `invoke()` / `ainvoke()` with `version="v2"`. Attributes: value: The final output of the graph (dict, Pydanti
libs/langgraph/langgraph/types.py:369
↓ 7 callers
Class
InnerPydantic
libs/checkpoint/tests/test_jsonplus.py:44
↓ 7 callers
Class
LocalDeps
A container for referencing and managing local Python dependencies. A "local dependency" is any entry in the config's `dependencies` list tha
libs/cli/langgraph_cli/config.py:651
↓ 7 callers
Class
MyPydantic
libs/checkpoint/tests/test_jsonplus.py:48
↓ 7 callers
Class
Node
libs/langgraph/tests/test_pregel_async.py:2132
↓ 7 callers
Class
RedisCache
Redis-based cache implementation with TTL support.
libs/checkpoint/langgraph/cache/redis/__init__.py:10
↓ 7 callers
Class
RunsClient
Client for managing runs in LangGraph. A run is a single assistant invocation with optional input, config, context, and metadata. This client
libs/sdk-py/langgraph_sdk/_async/runs.py:56
↓ 7 callers
Class
ScopedStreamHandle
Scoped streaming handle for one discovered child invocation.
libs/sdk-py/langgraph_sdk/_async/stream.py:544
↓ 7 callers
Class
StreamProtocol
libs/langgraph/langgraph/pregel/protocol.py:275
↓ 7 callers
Class
SyncProtocolSseTransport
Sync v3 protocol transport bound to one thread id.
libs/sdk-py/langgraph_sdk/stream/transport/sync_http.py:21
↓ 7 callers
Class
SyncStreamController
Owns the sync shared SSE handle, subscription registry, and fan-out thread.
libs/sdk-py/langgraph_sdk/stream/sync_controller.py:62
↓ 7 callers
Class
TasksTransformer
Capture raw task events as a drainable stream. Surfaces `stream_mode="tasks"` data on `run.tasks` as a `StreamChannel[dict[str, Any]]`. Each
libs/langgraph/langgraph/stream/transformers.py:1002
↓ 7 callers
Class
_FakeAsyncWebSocket
libs/sdk-py/tests/streaming/test_transport_ws.py:17
↓ 7 callers
Class
_FakeSyncWebSocket
libs/sdk-py/tests/streaming/test_sync_transport_ws.py:13
↓ 7 callers
Class
_SeenEventIds
LRU set of event ids with bounded memory.
libs/sdk-py/langgraph_sdk/stream/controller.py:33
↓ 6 callers
Class
AgentAction
Represents a request to execute an action by an agent. The action consists of the name of the tool to execute and the input to pass to t
libs/langgraph/tests/agents.py:8
↓ 6 callers
Class
AgentFinish
Final return value of an ActionAgent. Agents return an AgentFinish when they have reached a stopping condition.
libs/langgraph/tests/agents.py:22
↓ 6 callers
Class
AssistantsClient
Client for managing assistants in LangGraph. This class provides methods to interact with assistants, which are versioned configurations of y
libs/sdk-py/langgraph_sdk/_async/assistants.py:29
↓ 6 callers
Class
MatchCondition
Represents a pattern for matching namespaces in the store. This class combines a match type (prefix or suffix) with a namespace path pattern
libs/checkpoint/langgraph/store/base/__init__.py:333
↓ 6 callers
Class
PregelExecutableTask
libs/langgraph/langgraph/types.py:627
next →
1–100 of 1,100, ranked by callers