Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/langchain-ai/langgraph
/ functions
Functions
6,698 in github.com/langchain-ai/langgraph
⨍
Functions
6,698
◇
Types & classes
1,100
↳
Endpoints
27
↓ 3 callers
Function
_child_mux
(handle: SubgraphRunStream | AsyncSubgraphRunStream)
libs/langgraph/tests/test_stream_subgraph_transformer.py:171
↓ 3 callers
Method
_close_inboxes
Signal EOF only on channel inboxes that have an active consumer. Inboxes without a consumer would accumulate a leaked None sentinel t
libs/sdk-py/langgraph_sdk/_async/stream.py:659
↓ 3 callers
Method
_close_inboxes
Signal EOF only on channel inboxes that have an active consumer. Inboxes without a consumer would accumulate a leaked None sentinel t
libs/sdk-py/langgraph_sdk/_sync/stream.py:725
↓ 3 callers
Function
_create_msgpack_ext_hook
Create msgpack ext hook with allowlist. Args: allowed_modules: Set of (module, name) tuples that are allowed to be deserialized,
libs/checkpoint/langgraph/checkpoint/serde/jsonplus.py:546
↓ 3 callers
Function
_create_vector_store
Create a store with vector search enabled.
libs/checkpoint-postgres/tests/test_async_store.py:404
↓ 3 callers
Method
_cursor
Create a database cursor as a context manager. Args: pipeline: whether to use pipeline for the DB operations inside the context m
libs/checkpoint-postgres/langgraph/store/postgres/aio.py:544
↓ 3 callers
Method
_dedup_iter
(self, source: AsyncIterator[Event])
libs/sdk-py/langgraph_sdk/_async/stream.py:1770
↓ 3 callers
Function
_delta_graph
(checkpointer: Any)
libs/checkpoint-sqlite/tests/test_delta_channel_migration.py:67
↓ 3 callers
Function
_delta_messages_graph
(checkpointer: Any)
libs/langgraph/tests/test_delta_channel_migration.py:544
↓ 3 callers
Function
_dispatch_observer
( callback: Callable[[_AttemptEvent], None], event: _AttemptEvent, )
libs/langgraph/langgraph/pregel/_retry.py:407
↓ 3 callers
Function
_drive
(graph: Any, config: RunnableConfig, n: int)
libs/checkpoint-sqlite/tests/test_get_delta_channel_history.py:69
↓ 3 callers
Function
_drive_until_done
Call the sync pump until it returns False.
libs/langgraph/langgraph/stream/run_stream.py:24
↓ 3 callers
Function
_env_without_deployment_name
Return env vars copy with deployment-name key removed.
libs/cli/langgraph_cli/deploy.py:535
↓ 3 callers
Function
_exact_namespace_params
( channels: list[str], namespace: list[str], )
libs/sdk-py/langgraph_sdk/_async/stream.py:89
↓ 3 callers
Function
_exact_namespace_params
( channels: list[str], namespace: list[str], )
libs/sdk-py/langgraph_sdk/_sync/stream.py:75
↓ 3 callers
Method
_execute_tool_sync
Execute tool call with configured error handling. Args: request: Tool execution request. input_type: Input format.
libs/prebuilt/langgraph/prebuilt/tool_node.py:922
↓ 3 callers
Function
_extract_deployment_url
(deployment: dict[str, object])
libs/cli/langgraph_cli/deploy.py:405
↓ 3 callers
Method
_fanout
Single consumer of the shared SSE; routes events to subscriptions. Why: rotation in `_reconcile_stream` replaces `_shared_stream` mid-loop.
libs/sdk-py/langgraph_sdk/stream/controller.py:229
↓ 3 callers
Method
_get_batch_list_namespaces_queries
( self, list_ops: Sequence[tuple[int, ListNamespacesOp]], )
libs/checkpoint-sqlite/langgraph/store/sqlite/base.py:608
↓ 3 callers
Function
_get_channel
( name: str, annotation: Any, *, allow_managed: Literal[False] )
libs/langgraph/langgraph/graph/state.py:1825
↓ 3 callers
Function
_get_model
Get the underlying model from a RunnableBinding or return the model itself.
libs/prebuilt/langgraph/prebuilt/chat_agent_executor.py:220
↓ 3 callers
Function
_get_node_pm_install_cmd
(project_dir: pathlib.Path)
libs/cli/langgraph_cli/config.py:1165
↓ 3 callers
Function
_get_prompt_runnable
(prompt: Prompt | None)
libs/prebuilt/langgraph/prebuilt/chat_agent_executor.py:137
↓ 3 callers
Method
_graph
(self, model)
libs/langgraph/tests/test_stream_messages_transformer.py:651
↓ 3 callers
Function
_infer_handled_types
Infer exception types handled by a custom error handler function. This function analyzes the type annotations of a custom error handler to determ
libs/prebuilt/langgraph/prebuilt/tool_node.py:444
↓ 3 callers
Method
_load_blobs
( self, thread_id: str, checkpoint_ns: str, versions: ChannelVersions, )
libs/checkpoint/langgraph/checkpoint/memory/__init__.py:125
↓ 3 callers
Method
_load_writes
( self, writes: list[tuple[bytes, bytes, bytes, bytes]] )
libs/checkpoint-postgres/langgraph/checkpoint/postgres/base.py:574
↓ 3 callers
Function
_make_async_transformer
()
libs/langgraph/tests/test_stream_messages_transformer.py:114
↓ 3 callers
Function
_make_interrupt_graph
Graph that interrupts after the first node.
libs/langgraph/tests/test_stream_events_v3_e2e.py:148
↓ 3 callers
Method
_make_key
Create a Redis key from namespace and key.
libs/checkpoint/langgraph/cache/redis/__init__.py:31
↓ 3 callers
Function
_make_pydantic_graph
Build a simple graph with PydanticState for validation error tests.
libs/langgraph/tests/test_stream_events_v3.py:1117
↓ 3 callers
Function
_message_event_id
(data: dict[str, Any])
libs/sdk-py/langgraph_sdk/_async/stream.py:486
↓ 3 callers
Function
_message_event_id
(data: dict[str, Any])
libs/sdk-py/langgraph_sdk/_sync/stream.py:126
↓ 3 callers
Function
_metadata_predicate
Return WHERE clause predicates for (a)search() given metadata filter. This method returns a tuple of a string and a tuple of values. The string
libs/checkpoint-sqlite/langgraph/checkpoint/sqlite/utils.py:31
↓ 3 callers
Function
_namespace_to_text
Convert namespace tuple to text string.
libs/checkpoint-postgres/langgraph/store/postgres/base.py:1278
↓ 3 callers
Method
_observe_event
Track values-event state for output/interrupted/interrupts.
libs/langgraph/langgraph/stream/run_stream.py:110
↓ 3 callers
Method
_on_terminal
Fired once per tracked namespace when its parent's result arrives, or via finalize/fail safety-net sweeps.
libs/langgraph/langgraph/stream/transformers.py:446
↓ 3 callers
Function
_pick_mapper
( state_keys: Sequence[str], schema: type[Any] )
libs/langgraph/langgraph/graph/state.py:1718
↓ 3 callers
Method
_put_checkpoint
(self, metadata: CheckpointMetadata)
libs/langgraph/langgraph/pregel/_loop.py:1081
↓ 3 callers
Method
_register_active_message_stream
(self, stream: AsyncChatModelStream)
libs/sdk-py/langgraph_sdk/_async/stream.py:1341
↓ 3 callers
Method
_register_active_message_stream
(self, stream: ChatModelStream)
libs/sdk-py/langgraph_sdk/_sync/stream.py:1228
↓ 3 callers
Method
_register_subscription
Allocate a subscription id, create a bounded queue, add to registry.
libs/sdk-py/langgraph_sdk/stream/controller.py:182
↓ 3 callers
Function
_resolve_uv_lock_container_path
( host_path: pathlib.Path, plan: UvLockPlan )
libs/cli/langgraph_cli/uv_lock.py:520
↓ 3 callers
Function
_settled_boundaries
`(config, items)` for every checkpoint with `next == ('__start__',)` — the stable inter-invoke boundaries that round-trip predictably.
libs/checkpoint-sqlite/tests/test_delta_channel_migration.py:90
↓ 3 callers
Method
_should_route_to_error_handler
(self, task: PregelExecutableTask)
libs/langgraph/langgraph/pregel/_runner.py:171
↓ 3 callers
Function
_state_values
Extract top-level field values from a state object (dict, BaseModel, or dataclass).
libs/langgraph/langgraph/pregel/_messages.py:38
↓ 3 callers
Function
_status_from_exception
Map a run exception to a subgraph terminal status and error string.
libs/langgraph/langgraph/stream/transformers.py:582
↓ 3 callers
Function
_strict_msgpack_serde
()
libs/langgraph/tests/conftest_checkpointer.py:30
↓ 3 callers
Method
_tool_calls_iter
(self)
libs/sdk-py/langgraph_sdk/_async/stream.py:1047
↓ 3 callers
Method
_unregister_active_message_stream
(self, stream: AsyncChatModelStream)
libs/sdk-py/langgraph_sdk/_async/stream.py:1344
↓ 3 callers
Method
_unregister_active_message_stream
(self, stream: ChatModelStream)
libs/sdk-py/langgraph_sdk/_sync/stream.py:1231
↓ 3 callers
Function
_unstamped
Strip push stamps from a StreamChannel's internal buffer.
libs/langgraph/tests/test_stream_lifecycle_transformer.py:101
↓ 3 callers
Method
_update_as_tuples
(self)
libs/langgraph/langgraph/types.py:793
↓ 3 callers
Function
_validate_filter_key
Validate that a filter key is safe for use in SQL queries. Args: key: The filter key to validate Raises: ValueError: If the
libs/checkpoint-sqlite/langgraph/store/sqlite/base.py:175
↓ 3 callers
Function
_warn_invalid_state_schema
(schema: type[Any] | Any)
libs/langgraph/langgraph/graph/state.py:111
↓ 3 callers
Function
_whole_msg
Build a messages ProtocolEvent carrying a completed AIMessage.
libs/langgraph/tests/test_stream_messages_transformer.py:84
↓ 3 callers
Function
achannels_from_checkpoint
Async version of `channels_from_checkpoint`. See docstring there.
libs/langgraph/langgraph/pregel/_checkpoint.py:280
↓ 3 callers
Method
afail
Fail on the async lane. Cancels every scheduled task across all transformers, awaits them to completion, then runs each transformer's
libs/langgraph/langgraph/stream/_mux.py:424
↓ 3 callers
Method
aget
Asynchronously get the cached values for the given keys.
libs/checkpoint/langgraph/cache/redis/__init__.py:80
↓ 3 callers
Method
aget_delta_channel_history
( self, *, config: RunnableConfig, channels: Sequence[str] )
libs/checkpoint/langgraph/checkpoint/memory/__init__.py:225
↓ 3 callers
Method
ainvoke
( self, input: dict[str, Any] | Any, config: RunnableConfig | None = None, *,
libs/langgraph/langgraph/pregel/remote.py:1215
↓ 3 callers
Method
aset
Asynchronously set the cached values for the given keys and TTLs.
libs/checkpoint/langgraph/cache/redis/__init__.py:110
↓ 3 callers
Function
chain_future
(source: AnyFuture, destination: AnyFuture)
libs/langgraph/langgraph/_internal/_future.py:127
↓ 3 callers
Method
close
(self)
libs/langgraph/langgraph/pregel/_retry.py:211
↓ 3 callers
Method
close
()
libs/sdk-py/langgraph_sdk/stream/transport/ws.py:161
↓ 3 callers
Method
close
()
libs/sdk-py/langgraph_sdk/stream/transport/sync_ws.py:121
↓ 3 callers
Method
close
()
libs/sdk-py/langgraph_sdk/stream/transport/sync_http.py:121
↓ 3 callers
Method
close
()
libs/sdk-py/langgraph_sdk/stream/transport/http.py:179
↓ 3 callers
Method
coerce
Normalize a timeout value to positive-second policy fields.
libs/langgraph/langgraph/types.py:482
↓ 3 callers
Method
create
Create a cron run. Args: assistant_id: The assistant ID or graph name to use for the cron job. If using graph nam
libs/sdk-py/langgraph_sdk/_sync/cron.py:169
↓ 3 callers
Method
create
( self, thread_id: None, assistant_id: str, *, input: Input | None = N
libs/sdk-py/langgraph_sdk/_sync/runs.py:359
↓ 3 callers
Function
create_checkpoint
Build a new Checkpoint from the previous one and live channel state. For each name in `channels_to_snapshot`, a `_DeltaSnapshot(value)` blob
libs/langgraph/langgraph/pregel/_checkpoint.py:149
↓ 3 callers
Method
delete_thread
Delete all checkpoints and writes associated with a thread ID. Args: thread_id: The thread ID to delete. Returns:
libs/checkpoint/langgraph/checkpoint/memory/__init__.py:505
↓ 3 callers
Method
do_write
( config: RunnableConfig, writes: Sequence[ChannelWriteEntry | ChannelWriteTupleEntry | Send],
libs/langgraph/langgraph/pregel/_write.py:106
↓ 3 callers
Method
empty
Return True if the queue is empty, False otherwise (not reliable!).
libs/langgraph/langgraph/_internal/_queue.py:116
↓ 3 callers
Function
ensure_embeddings
Ensure that an embedding function conforms to LangChain's Embeddings interface. This function wraps arbitrary embedding functions to make them co
libs/checkpoint/langgraph/store/base/embed.py:34
↓ 3 callers
Method
feed
(self, event: Mapping[str, Any])
libs/sdk-py/langgraph_sdk/stream/decoders.py:103
↓ 3 callers
Function
foo
(state: dict)
libs/langgraph/tests/test_pregel_async.py:2462
↓ 3 callers
Function
foo
(state: dict)
libs/langgraph/tests/test_pregel.py:1401
↓ 3 callers
Method
get
Get a run. Args: thread_id: The thread ID to get. run_id: The run ID to get. headers: Optional custom hea
libs/sdk-py/langgraph_sdk/_sync/runs.py:890
↓ 3 callers
Method
get_deploy_logs
( self, project_id: str, payload: dict[str, Any], revision_id: str | None = No
libs/cli/langgraph_cli/host_backend.py:195
↓ 3 callers
Method
get_deployment
(self, deployment_id: str)
libs/cli/langgraph_cli/host_backend.py:101
↓ 3 callers
Function
get_new_channel_versions
Get subset of current_versions that are newer than previous_versions.
libs/langgraph/langgraph/pregel/_utils.py:29
↓ 3 callers
Method
get_tuple
Get a checkpoint tuple from the database. This method retrieves a checkpoint tuple from the SQLite database based on the provided con
libs/checkpoint-sqlite/langgraph/checkpoint/sqlite/__init__.py:191
↓ 3 callers
Method
init
(self)
libs/langgraph/langgraph/stream/transformers.py:59
↓ 3 callers
Method
join
Block until a run is done. Returns the final state of the thread. Args: thread_id: The thread ID to join. run_id: The
libs/sdk-py/langgraph_sdk/_sync/runs.py:1042
↓ 3 callers
Method
list
List checkpoints from the database. This method retrieves a list of checkpoint tuples from the Postgres database based on the provide
libs/checkpoint-postgres/langgraph/checkpoint/postgres/__init__.py:112
↓ 3 callers
Method
list_deployments
(self, name_contains: str = "")
libs/cli/langgraph_cli/host_backend.py:94
↓ 3 callers
Method
list_revisions
(self, deployment_id: str, limit: int = 1)
libs/cli/langgraph_cli/host_backend.py:174
↓ 3 callers
Function
map_snapshot
(i: StateSnapshot)
libs/langgraph/tests/test_pregel.py:8047
↓ 3 callers
Function
mapper
(input: int)
libs/langgraph/tests/test_pregel.py:1278
↓ 3 callers
Function
message_error_event
( seq: int = 0, namespace: list[str] | None = None, *, message: str = "model failed", code
libs/sdk-py/tests/streaming/_events.py:185
↓ 3 callers
Function
namespace_matches
Whether `event_namespace` matches any of `prefixes` within `depth`.
libs/sdk-py/langgraph_sdk/stream/subscription.py:39
↓ 3 callers
Function
node
(state: State, writer: StreamWriter)
libs/langgraph/tests/test_pregel_async.py:5225
↓ 3 callers
Function
normalize_segment
Strip the dynamic suffix after `:` from a namespace segment.
libs/sdk-py/langgraph_sdk/stream/subscription.py:13
↓ 3 callers
Method
note
Top-level banner (pre-step). Text mode does not indent.
libs/cli/langgraph_cli/deploy.py:158
↓ 3 callers
Method
output
Drive the run to completion and return the final state. Methods (not properties) on the async lane so `run.output` without `await` ra
libs/langgraph/langgraph/stream/run_stream.py:537
↓ 3 callers
Method
patch
Send a `PATCH` request.
libs/sdk-py/langgraph_sdk/_async/http.py:100
↓ 3 callers
Method
patch
Send a `PATCH` request.
libs/sdk-py/langgraph_sdk/_sync/http.py:100
↓ 3 callers
Function
prepare_node_error_handler_task
Prepare an immediate node-level error handler task for a failed task.
libs/langgraph/langgraph/pregel/_algo.py:1110
← previous
next →
601–700 of 6,698, ranked by callers