MCPcopy Create free account

hub / github.com/langchain-ai/langgraph / types & classes

Types & classes1,100 in github.com/langchain-ai/langgraph

↓ 570 callersClassStateGraph
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 callersClassCommand
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 callersClassHttpClient
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 callersClassThreadsClient
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 callersClassFakeServer
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 callersClassToolNode
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 callersClassAnyStr
libs/langgraph/tests/any_str.py:33
↓ 99 callersClassInMemorySaver
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 callersClassSyncHttpClient
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 callersClassStreamMux
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 callersClassJsonPlusSerializer
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 callersClassSyncThreadsClient
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 callersClassStreamChannel
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 callersClassSyncFakeServer
Synchronous fake for `/commands`, `/stream/events`, and `/state`.
libs/sdk-py/tests/streaming/_sync_fake_server.py:32
↓ 54 callersClassInterrupt
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 callersClassLastValue
Stores the last value received, can receive at most one value per step.
libs/langgraph/langgraph/channels/last_value.py:20
↓ 46 callersClassPregel
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 callersClassNodeBuilder
libs/langgraph/langgraph/pregel/main.py:206
↓ 44 callersClassStateSnapshot
Snapshot of the state of the graph at the beginning of a step.
libs/langgraph/langgraph/types.py:643
↓ 42 callersClassSend
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 callersClassRemoteGraph
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 callersClassPregelTask
A Pregel task.
libs/langgraph/langgraph/types.py:597
↓ 38 callersClassFakeToolCallingModel
libs/prebuilt/tests/model.py:22
↓ 37 callersClassRetryPolicy
Configuration for retrying nodes. !!! version-added "Added in version 0.2.24"
libs/langgraph/langgraph/types.py:416
↓ 33 callersClassInMemoryStore
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 callersClassDeltaChannel
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 callersClassProtocolSseTransport
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 callersClassTimeoutPolicy
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 callersClassProtocolWebSocketTransport
v3 protocol transport using HTTP commands and WebSocket events.
libs/sdk-py/langgraph_sdk/stream/transport/ws.py:25
↓ 18 callersClassCheckpointTuple
A tuple containing a checkpoint and its associated data.
libs/checkpoint/langgraph/checkpoint/base/__init__.py:139
↓ 18 callersClassPutOp
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 callersClassStreamPart
Represents a part of a stream response.
libs/sdk-py/langgraph_sdk/schema.py:595
↓ 18 callersClass_Emitter
Dual-mode output: JSON-lines (``--json``) or human-readable click text.
libs/cli/langgraph_cli/deploy.py:127
↓ 17 callersClassRunControl
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 callersClassStateUpdate
libs/langgraph/langgraph/types.py:591
↓ 16 callersClassHostBackendClient
Minimal JSON HTTP client for the host backend deployment service.
libs/cli/langgraph_cli/host_backend.py:19
↓ 16 callersClassRunnableCallable
A much simpler version of RunnableLambda that requires sync and async functions.
libs/langgraph/langgraph/_internal/_runnable.py:278
↓ 16 callersClassSyncCronClient
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 callersClassGraphRunStream
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 callersClassCronClient
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 callersClassEphemeralValue
Stores the value received in the step immediately preceding, clears after.
libs/langgraph/langgraph/channels/ephemeral_value.py:15
↓ 14 callersClassGetOp
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 callersClassToolCallsDecoder
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 callersClassInvalidUpdateError
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 callersClassSubgraphsDecoder
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 callersClassAsyncThreadStream
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 callersClassListNamespacesOp
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 callersClassMessagesDecoder
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 callersClassMessagesTransformer
Capture messages events as ChatModelStream objects. The messages projection yields one `ChatModelStream` (or `AsyncChatModelStream`) per LLM
libs/langgraph/langgraph/stream/transformers.py:155
↓ 12 callersClassSyncScopedStreamHandle
Scoped streaming handle for one discovered child invocation.
libs/sdk-py/langgraph_sdk/_sync/stream.py:609
↓ 11 callersClassDataDecoder
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 callersClassInjectedState
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 callersClassRuntime
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 callersClassSearchOp
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 callersClassStreamController
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 callersClassSyncProtocolWebSocketTransport
Sync v3 protocol transport using HTTP commands and WebSocket events.
libs/sdk-py/langgraph_sdk/stream/transport/sync_ws.py:23
↓ 10 callersClassCheckpoint
State snapshot at a given point in time.
libs/checkpoint/langgraph/checkpoint/base/__init__.py:92
↓ 10 callersClassPregelTaskWrites
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 callersClassSyncRunsClient
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 callersClassSyncStreamScript
libs/sdk-py/tests/streaming/_sync_fake_server.py:14
↓ 10 callersClassUUID
r"""UUID draft version objects
libs/checkpoint/langgraph/checkpoint/base/id.py:15
↓ 10 callersClass_FakeTask
Minimal stand-in for PregelExecutableTask covering only what map_debug_tasks reads.
libs/langgraph/tests/test_pregel_debug.py:8
↓ 9 callersClassEmptyChannelError
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 callersClassExecutionInfo
Read-only execution info/metadata for the execution of current thread/run/node.
libs/langgraph/langgraph/runtime.py:27
↓ 9 callersClassExtensionsDecoder
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 callersClassFakeTracer
Fake tracer that records LangChain execution. It replaces run ids with deterministic UUIDs for snapshotting.
libs/langgraph/tests/fake_tracer.py:10
↓ 9 callersClassGraphInterrupt
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 callersClassInjectedStore
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 callersClassValuesTransformer
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 callersClassAnyDict
libs/langgraph/tests/any_str.py:49
↓ 8 callersClassBinaryOperatorAggregate
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 callersClassCustomTransformer
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 callersClassEventStreamHandle
Handle for one async filtered event stream.
libs/sdk-py/langgraph_sdk/stream/transport/base.py:15
↓ 8 callersClassItem
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 callersClassOverwrite
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 callersClassTopic
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 callersClass_GraphEventHandler
libs/langgraph/tests/test_graph_callbacks.py:26
↓ 7 callersClassChannelWrite
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 callersClassChannelWriteEntry
libs/langgraph/langgraph/pregel/_write.py:26
↓ 7 callersClassContext
libs/langgraph/tests/test_runtime.py:25
↓ 7 callersClassGraphOutput
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 callersClassInnerPydantic
libs/checkpoint/tests/test_jsonplus.py:44
↓ 7 callersClassLocalDeps
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 callersClassMyPydantic
libs/checkpoint/tests/test_jsonplus.py:48
↓ 7 callersClassNode
libs/langgraph/tests/test_pregel_async.py:2132
↓ 7 callersClassRedisCache
Redis-based cache implementation with TTL support.
libs/checkpoint/langgraph/cache/redis/__init__.py:10
↓ 7 callersClassRunsClient
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 callersClassScopedStreamHandle
Scoped streaming handle for one discovered child invocation.
libs/sdk-py/langgraph_sdk/_async/stream.py:544
↓ 7 callersClassStreamProtocol
libs/langgraph/langgraph/pregel/protocol.py:275
↓ 7 callersClassSyncProtocolSseTransport
Sync v3 protocol transport bound to one thread id.
libs/sdk-py/langgraph_sdk/stream/transport/sync_http.py:21
↓ 7 callersClassSyncStreamController
Owns the sync shared SSE handle, subscription registry, and fan-out thread.
libs/sdk-py/langgraph_sdk/stream/sync_controller.py:62
↓ 7 callersClassTasksTransformer
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 callersClass_FakeAsyncWebSocket
libs/sdk-py/tests/streaming/test_transport_ws.py:17
↓ 7 callersClass_FakeSyncWebSocket
libs/sdk-py/tests/streaming/test_sync_transport_ws.py:13
↓ 7 callersClass_SeenEventIds
LRU set of event ids with bounded memory.
libs/sdk-py/langgraph_sdk/stream/controller.py:33
↓ 6 callersClassAgentAction
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 callersClassAgentFinish
Final return value of an ActionAgent. Agents return an AgentFinish when they have reached a stopping condition.
libs/langgraph/tests/agents.py:22
↓ 6 callersClassAssistantsClient
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 callersClassMatchCondition
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 callersClassPregelExecutableTask
libs/langgraph/langgraph/types.py:627
next →1–100 of 1,100, ranked by callers