MCPcopy Create free account

hub / github.com/langchain-ai/langgraph / functions

Functions6,698 in github.com/langchain-ai/langgraph

↓ 12 callersMethodsubscribe
Open a typed subscription against the shared SSE. Returns an iterator that yields raw `Event` dicts matching the given filter. Multip
libs/sdk-py/langgraph_sdk/_sync/stream.py:1263
↓ 12 callersFunctionwarn_non_wolfi_distro
Show warning if image_distro is not set to 'wolfi'. When ``emit`` is provided, each warning line is sent through it (used by callers that nee
libs/cli/langgraph_cli/util.py:12
↓ 11 callersFunction_AnyIdAIMessage
Create ai message with an any id field.
libs/langgraph/tests/messages.py:25
↓ 11 callersFunction_build_graph
Compile a minimal DeltaChannel-backed `messages` graph. `two_nodes=True` adds a second writer node so `bulk_update_state` can route distinct
libs/langgraph/tests/test_delta_channel_update_state.py:35
↓ 11 callersFunction_call_host_backend_with_optional_tenant
Run *operation*, prompting for a workspace ID on org-scoped 403s. On success the original *client* is returned as-is. If the user is prompte
libs/cli/langgraph_cli/deploy.py:1267
↓ 11 callersFunction_cron_response
Return a mock Cron object response.
libs/sdk-py/tests/test_crons_client.py:314
↓ 11 callersFunction_make_sync_adapter
(*, run_start_returns=None, run_start_raises=None)
libs/langgraph/tests/test_remote_graph_v3.py:22
↓ 11 callersMethod_reconcile_stream
(self, candidate_filter: SubscribeParams)
libs/sdk-py/langgraph_sdk/_sync/stream.py:1218
↓ 11 callersMethod_write
(self, obj: dict)
libs/cli/langgraph_cli/deploy.py:273
↓ 11 callersMethodaget
Asynchronously get the cached values for the given keys.
libs/checkpoint/langgraph/cache/base/__init__.py:29
↓ 11 callersMethodapush
Dispatch an event on the async lane. Awaits each transformer's `aprocess` in registration order before appending to the main log. A s
libs/langgraph/langgraph/stream/_mux.py:351
↓ 11 callersFunctioncompose
Create a docker compose file as a string.
libs/cli/langgraph_cli/docker.py:304
↓ 11 callersFunctioncompute_union_filter
Aggregate a set of subscription filters into one covering filter. Direct port of `client/stream/index.ts:#computeUnionFilter`. - Channels ar
libs/sdk-py/langgraph_sdk/stream/subscription.py:107
↓ 11 callersFunctioncreate_checkpoint
Create a checkpoint for the given channels.
libs/checkpoint/langgraph/checkpoint/base/__init__.py:829
↓ 11 callersMethodensure_fanout_running
(self)
libs/sdk-py/langgraph_sdk/stream/sync_controller.py:147
↓ 11 callersMethodfeed
(self, event: Mapping[str, Any])
libs/sdk-py/langgraph_sdk/stream/decoders.py:276
↓ 11 callersMethodfrom_conn_string
Create a new PostgresStore instance from a connection string. Args: conn_string: The Postgres connection info string.
libs/checkpoint-postgres/langgraph/store/postgres/base.py:783
↓ 11 callersFunctionget_stream_writer
Access LangGraph [`StreamWriter`][langgraph.types.StreamWriter] from inside a graph node or entrypoint task at runtime. Can be called from inside
libs/langgraph/langgraph/config.py:126
↓ 11 callersMethodget_tuple
(self, config: RunnableConfig)
libs/langgraph/tests/test_pregel.py:199
↓ 11 callersFunctionnormalize_name
Sanitize a deployment/directory name into a valid deployment name. LangSmith Deployment names only allow lowercase alphanumeric characters an
libs/cli/langgraph_cli/deploy.py:342
↓ 11 callersMethodput
Send a `PUT` request.
libs/sdk-py/langgraph_sdk/_async/http.py:79
↓ 11 callersMethodregister_subscription
(self, params: SubscribeParams)
libs/sdk-py/langgraph_sdk/stream/sync_controller.py:95
↓ 11 callersMethodreplay_writes
Apply ancestor writes oldest-to-newest via a single reducer call. If any write is an Overwrite, the last one in the sequence acts as
libs/langgraph/langgraph/channels/delta.py:139
↓ 11 callersMethodrequest_drain
(self, reason: str = "shutdown")
libs/langgraph/langgraph/runtime.py:95
↓ 11 callersMethodsearch
Get a list of cron jobs. Args: assistant_id: The assistant ID or graph name to search for. thread_id: the thread ID t
libs/sdk-py/langgraph_sdk/_async/cron.py:421
↓ 11 callersMethodset_conditional_entry_point
Sets a conditional entry point in the graph. Args: path: The callable that determines the next node or nodes. If
libs/langgraph/langgraph/graph/state.py:1079
↓ 11 callersMethodsetup
Set up the store database. This method creates the necessary tables in the Postgres database if they don't already exist and runs dat
libs/checkpoint-postgres/langgraph/store/postgres/base.py:1115
↓ 11 callersMethodstop_ttl_sweeper
Stop the TTL sweeper thread if it's running. Args: timeout: Maximum time to wait for the thread to stop, in seconds.
libs/checkpoint-postgres/langgraph/store/postgres/base.py:908
↓ 11 callersMethodstream
( self, input: dict[str, Any] | Any, config: RunnableConfig | None = None, *,
libs/langgraph/langgraph/pregel/remote.py:724
↓ 11 callersMethodsync
Write dict to disk
libs/checkpoint/langgraph/checkpoint/memory/__init__.py:651
↓ 11 callersFunctionuuid6
r"""UUID version 6 is a field-compatible version of UUIDv1, reordered for improved DB locality. It is expected that UUIDv6 will primarily be u
libs/checkpoint/langgraph/checkpoint/base/id.py:79
↓ 11 callersMethodwith_config
Create a copy of the Pregel object with an updated config.
libs/langgraph/langgraph/pregel/main.py:927
↓ 10 callersFunction_build_error_graph
()
libs/langgraph/tests/test_pregel_stream_events_v3.py:96
↓ 10 callersFunction_build_interrupt_graph
()
libs/langgraph/tests/test_graph_callbacks.py:95
↓ 10 callersFunction_build_root_mux
(*, scope: tuple[str, ...] = ())
libs/langgraph/tests/test_stream_subgraph_transformer.py:146
↓ 10 callersFunction_lifecycle
Produce a valid protocol event lifecycle: start, delta, finish.
libs/langgraph/tests/test_stream_messages_transformer.py:124
↓ 10 callersFunction_setup_list_data
Populate saver with test data for list tests. Returns lookup info.
libs/checkpoint-conformance/langgraph/checkpoint/conformance/spec/test_list.py:19
↓ 10 callersFunction_tool_event
( event: str, tool_call_id: str, *, tool_name: str = "", input: dict[str, Any] | None = No
libs/prebuilt/tests/test_tool_call_transformer.py:38
↓ 10 callersMethodaclose
Finalize on the async lane. Awaits every task started via `StreamTransformer.schedule()` across all transformers, then calls `afinali
libs/langgraph/langgraph/stream/_mux.py:380
↓ 10 callersMethodaput
Asynchronously store or update an item in the store. Args: namespace: Hierarchical path for the item, represented as a tuple of s
libs/checkpoint/langgraph/store/base/__init__.py:1109
↓ 10 callersMethodcheckpoint
(self)
libs/langgraph/langgraph/channels/topic.py:63
↓ 10 callersFunctioncoerce_timeout_policy
Normalize a timeout value to positive-second policy fields.
libs/langgraph/langgraph/_internal/_timeout.py:14
↓ 10 callersFunctioncreate_vector_store
Create an AsyncSqliteStore with vector search capabilities.
libs/checkpoint-sqlite/tests/test_async_store.py:50
↓ 10 callersMethodfail
(self, err: BaseException)
libs/langgraph/tests/test_pregel_stream_events_v3.py:1136
↓ 10 callersMethodfeed
(self, event: Mapping[str, Any])
libs/sdk-py/langgraph_sdk/stream/decoders.py:162
↓ 10 callersMethodflush
(self)
libs/sdk-py/langgraph_sdk/sse.py:68
↓ 10 callersMethodloads_typed
(self, data: tuple[str, bytes])
libs/checkpoint/tests/test_encrypted.py:329
↓ 10 callersFunctionmap_debug_tasks
Produce "task" events for stream_mode=debug.
libs/langgraph/langgraph/pregel/debug.py:41
↓ 10 callersFunctionrecast_checkpoint_ns
Remove task IDs from checkpoint namespace. Args: ns: The checkpoint namespace with task IDs. Returns: str: The checkpoint na
libs/langgraph/langgraph/_internal/_config.py:38
↓ 10 callersFunctionreplace
(state, writes)
libs/langgraph/tests/test_channels.py:792
↓ 10 callersMethodreset
(self)
libs/langgraph/tests/test_pregel.py:911
↓ 10 callersMethodsweep_ttl
Delete expired store items based on TTL. Returns: int: The number of deleted items.
libs/checkpoint-sqlite/langgraph/store/sqlite/base.py:1129
↓ 9 callersMethod__init__
(self, scope: tuple[str, ...] = ())
libs/langgraph/langgraph/stream/transformers.py:984
↓ 9 callersMethod__init__
(self)
libs/langgraph/tests/test_pregel_stream_events_v3.py:1531
↓ 9 callersFunction_apply_strict_msgpack
(checkpointer)
libs/langgraph/tests/conftest_checkpointer.py:34
↓ 9 callersFunction_build_graph
( checkpointer: InMemorySaver, *, freq: int = 1000, )
libs/langgraph/tests/test_delta_channel_exit_mode.py:43
↓ 9 callersFunction_cron_payload
Return a mock cron response payload.
libs/sdk-py/tests/test_crons_client.py:19
↓ 9 callersFunction_drain_subgraphs
(mux: StreamMux)
libs/langgraph/tests/test_stream_subgraph_transformer.py:167
↓ 9 callersFunction_drive
(graph: Any, config: dict, tag: str, n: int)
libs/langgraph/tests/test_delta_channel_migration.py:111
↓ 9 callersFunction_make_async_adapter
(*, run_start_returns=None, run_start_raises=None)
libs/langgraph/tests/test_remote_graph_v3.py:269
↓ 9 callersFunction_mux
()
libs/prebuilt/tests/test_tool_call_transformer.py:75
↓ 9 callersFunction_parse_env_from_config
Resolve env vars from langgraph.json 'env' field or a .env fallback.
libs/cli/langgraph_cli/deploy.py:522
↓ 9 callersFunction_resolve_pushed_image_digest
Return ``{registry}/{repo}@sha256:<hex>`` for a freshly-pushed image. Reads ``RepoDigests`` via ``docker image inspect`` — the local daemon r
libs/cli/langgraph_cli/deploy.py:895
↓ 9 callersFunction_should_retry_on
Check if the given exception should be retried based on the retry policy.
libs/langgraph/langgraph/pregel/_retry.py:841
↓ 9 callersFunction_sse_to_v2_dict
Convert an SSE event+data pair into a v2 stream part dict. Returns None for ``end`` events (signals end of stream).
libs/sdk-py/langgraph_sdk/_shared/utilities.py:115
↓ 9 callersFunction_tar_filter
Strip symlinks, hardlinks, and traversal paths from archive.
libs/cli/langgraph_cli/archive.py:19
↓ 9 callersMethoddone
Remove the task from the tasks dict when it's done.
libs/langgraph/langgraph/pregel/_executor.py:77
↓ 9 callersMethoddumps_typed
(self, obj: object)
libs/checkpoint/tests/test_encrypted.py:326
↓ 9 callersMethodecho
echo.
libs/langgraph/tests/test_tool_stream_handler.py:79
↓ 9 callersMethoderror
()
libs/sdk-py/langgraph_sdk/stream/transport/sync_http.py:118
↓ 9 callersMethodget
(self)
libs/checkpoint/langgraph/checkpoint/serde/types.py:53
↓ 9 callersFunctionget_config
()
libs/langgraph/langgraph/config.py:17
↓ 9 callersMethodon_chain_end
( self, response: Any, *, run_id: UUID, parent_run_id: UUID | None = N
libs/langgraph/langgraph/pregel/_messages.py:223
↓ 9 callersMethodsend_command
POST a command. Returns the response JSON, or `None` for 202/204. Raises: httpx.HTTPStatusError: server returned >= 400.
libs/sdk-py/langgraph_sdk/stream/transport/http.py:64
↓ 9 callersMethodstream_events
Stream events from this remote graph. For `version="v3"`, returns a `_RemoteGraphRunStream` whose surface matches the local `GraphRun
libs/langgraph/langgraph/pregel/remote.py:1033
↓ 9 callersFunctiontask
( __func_or_none__: None = None, *, name: str | None = None, retry_policy: RetryPolicy | Seque
libs/langgraph/langgraph/func/__init__.py:110
↓ 8 callersFunction_AnyIdHumanMessage
Create a human message with an any id field.
libs/prebuilt/tests/messages.py:17
↓ 8 callersFunction_AnyIdToolMessage
Create a tool message with an any id field.
libs/prebuilt/tests/messages.py:24
↓ 8 callersFunction_assert_v2_shape
Assert a v2 stream part has the required keys and types.
libs/sdk-py/tests/test_client_stream.py:79
↓ 8 callersFunction_create_config_with_runtime
Create a RunnableConfig with mock Runtime for testing ToolNode.
libs/prebuilt/tests/test_tool_node_validation_error_filtering.py:36
↓ 8 callersFunction_get_overwrite
Inspects the given value and returns (is_overwrite, overwrite_value). Recognises three forms: * The typed `Overwrite` dataclass instance.
libs/langgraph/langgraph/channels/binop.py:31
↓ 8 callersFunction_get_state_value
(state: StateSchema, key: str, default: Any = None)
libs/prebuilt/langgraph/prebuilt/chat_agent_executor.py:129
↓ 8 callersFunction_make_encrypted_serde
Create an EncryptedSerializer with AES encryption for testing.
libs/checkpoint/tests/test_encrypted.py:60
↓ 8 callersMethod_make_info
(self, name: str, *, type_: int = tarfile.REGTYPE)
libs/cli/tests/unit_tests/test_archive.py:22
↓ 8 callersFunction_merge_callbacks
Merge two callbacks values (None / list / BaseCallbackManager). Six cases total (3 base types x 2 non-None new types).
libs/langgraph/langgraph/_internal/_config.py:119
↓ 8 callersFunction_register_handler
( auth: Auth, resource: str | None, action: str | None, fn: types.Handler, )
libs/sdk-py/langgraph_sdk/auth/__init__.py:816
↓ 8 callersMethod_register_subscription
Allocate a subscription id and add it to the registry.
libs/sdk-py/langgraph_sdk/_async/stream.py:1316
↓ 8 callersFunction_unstamped
Strip push stamps from a StreamChannel's internal buffer.
libs/langgraph/tests/test_stream_data_transformers.py:82
↓ 8 callersFunction_with_msgpack_allowlist
( serde: SerializerProtocol, extra_allowlist: Collection[tuple[str, ...]] )
libs/checkpoint/langgraph/checkpoint/base/__init__.py:725
↓ 8 callersMethodabatch
(self, ops: Iterable[Op])
libs/checkpoint/tests/test_store.py:147
↓ 8 callersMethodacopy_thread
Asynchronously copy all checkpoints and writes from one thread to another. Args: source_thread_id: The thread ID to copy from.
libs/checkpoint/langgraph/checkpoint/base/__init__.py:540
↓ 8 callersFunctionapply_writes
Apply writes from a set of tasks (usually the tasks from a Pregel step) to the checkpoint and channels, and return managed values writes to be app
libs/langgraph/langgraph/pregel/_algo.py:232
↓ 8 callersMethodaprune
Asynchronously prune checkpoints for the given threads. Args: thread_ids: The thread IDs to prune. strategy: The prun
libs/checkpoint/langgraph/checkpoint/base/__init__.py:560
↓ 8 callersMethodcommit
( self, task: PregelExecutableTask, exception: BaseException | None, )
libs/langgraph/langgraph/pregel/_runner.py:574
↓ 8 callersMethodfail
Mark the channel as errored. Args: err: The exception to surface to the subscriber.
libs/langgraph/langgraph/stream/stream_channel.py:146
↓ 8 callersMethodfeed
(self, event: Mapping[str, Any])
libs/sdk-py/langgraph_sdk/stream/decoders.py:128
↓ 8 callersMethodfrom_checkpoint
Initialize from a stored blob. Blob types: * `MISSING`: start empty; caller replays writes. * `_DeltaSnapshot(value)`: re
libs/langgraph/langgraph/channels/delta.py:118
↓ 8 callersMethodget_tree
( self, *, xray: int | bool = False, headers: Mapping[str, str] | None = None,
libs/sdk-py/langgraph_sdk/_async/stream.py:138
↓ 8 callersFunctionidentifier
Return the module and name of an object.
libs/langgraph/langgraph/pregel/_call.py:84
↓ 8 callersMethodis_available
(self)
libs/langgraph/langgraph/channels/topic.py:93
← previousnext →201–300 of 6,698, ranked by callers