MCPcopy Create free account

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

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

↓ 4 callersFunction_build_graph
(caller, tools)
libs/prebuilt/tests/test_tool_call_transformer.py:279
↓ 4 callersFunction_caller_sync
(tool_name: str, tool_args: dict[str, Any], tc_id: str = "tc1")
libs/langgraph/tests/test_tool_stream_handler.py:29
↓ 4 callersFunction_capturing_client
(captured: dict)
libs/cli/tests/unit_tests/test_host_backend.py:181
↓ 4 callersFunction_checkpoints_event
(namespace: list[str], data: Any)
libs/langgraph/tests/test_stream_data_transformers.py:44
↓ 4 callersFunction_create_config_with_runtime
Create a RunnableConfig with mock Runtime for testing ToolNode. Returns: RunnableConfig with __pregel_runtime in configurable dict.
libs/prebuilt/tests/test_react_agent.py:81
↓ 4 callersMethod_create_project
Create a small project structure for testing.
libs/cli/tests/unit_tests/test_archive.py:121
↓ 4 callersMethod_create_state_snapshot
(self, state: ThreadState)
libs/langgraph/langgraph/pregel/remote.py:322
↓ 4 callersMethod_cursor
Create a database cursor as a context manager. Args: transaction (bool): whether to use transaction for the DB operations
libs/checkpoint-sqlite/langgraph/store/sqlite/base.py:1040
↓ 4 callersFunction_debug_event
(namespace: list[str], data: Any)
libs/langgraph/tests/test_stream_data_transformers.py:52
↓ 4 callersFunction_decode_ns_bytes
(namespace: str | bytes | list)
libs/checkpoint-postgres/langgraph/store/postgres/base.py:1406
↓ 4 callersFunction_decode_ns_text
Convert namespace string to tuple.
libs/checkpoint-sqlite/langgraph/store/sqlite/base.py:167
↓ 4 callersFunction_docker_config_for_token
Create a temporary Docker config with only the push token. Yields the path to a temporary config directory that can be passed to `docker --co
libs/cli/langgraph_cli/deploy.py:814
↓ 4 callersFunction_drain
(buf: MultiCursorBuffer[int])
libs/sdk-py/tests/streaming/test_multi_cursor_buffer.py:8
↓ 4 callersFunction_ensure_ttl
( ttl_config: TTLConfig | None, ttl: float | None | NotProvided = NOT_PROVIDED, )
libs/checkpoint/langgraph/store/base/__init__.py:1296
↓ 4 callersFunction_event_namespace
(params_field: Any)
libs/sdk-py/langgraph_sdk/stream/decoders.py:52
↓ 4 callersFunction_exception
Return the exception from a future, without raising CancelledError.
libs/langgraph/langgraph/pregel/_runner.py:637
↓ 4 callersFunction_expire_now
Backdate a row's expires_at into the past without deleting it (unswept).
libs/checkpoint-postgres/tests/test_store.py:991
↓ 4 callersMethod_fail
(self, err: BaseException)
libs/sdk-py/langgraph_sdk/_sync/stream.py:526
↓ 4 callersMethod_finish
(self, output: Any)
libs/sdk-py/langgraph_sdk/_sync/stream.py:519
↓ 4 callersFunction_get_pip_cleanup_lines
( install_cmd: str, to_uninstall: tuple[str] | None, pip_installer: Literal["uv", "pip"], )
libs/cli/langgraph_cli/config.py:90
↓ 4 callersFunction_handle_tool_error
Generate error message content based on exception handling configuration. This function centralizes error message generation logic, supporting di
libs/prebuilt/langgraph/prebuilt/tool_node.py:394
↓ 4 callersFunction_log_deploy_step
(step: int, message: str, **extra: object)
libs/cli/langgraph_cli/deploy.py:598
↓ 4 callersFunction_make_error_subgraph
Graph with a subgraph that raises.
libs/langgraph/tests/test_stream_events_v3_e2e.py:167
↓ 4 callersFunction_make_remote_graph
()
libs/langgraph/tests/test_remote_graph_v3.py:410
↓ 4 callersMethod_mark_iterated
Record that an inbox has an active consumer. If the handle is already closed (status != 'started'), immediately enqueue a sentinel so
libs/sdk-py/langgraph_sdk/_async/stream.py:644
↓ 4 callersFunction_merge_tracing_headers
(headers: dict[str, str] | None)
libs/langgraph/langgraph/pregel/remote.py:1297
↓ 4 callersMethod_migrate_pending_sends
( self, pending_sends: list[tuple[bytes, bytes]], checkpoint: dict[str, Any],
libs/checkpoint-postgres/langgraph/checkpoint/postgres/base.py:355
↓ 4 callersFunction_namespace_to_text
Convert namespace tuple to text string.
libs/checkpoint-sqlite/langgraph/store/sqlite/base.py:162
↓ 4 callersMethod_reapply_writes_to_succeeded_nodes
Restore successful channel writes from checkpoint to in-memory tasks. Skips control signals (ERROR, ERROR_SOURCE_NODE, INTERRUPT, RESUME)
libs/langgraph/langgraph/pregel/_loop.py:736
↓ 4 callersMethod_search_where
Return WHERE clause predicates for alist() given config, filter, before. This method returns a tuple of a string and a tuple of values. The s
libs/checkpoint-postgres/langgraph/checkpoint/postgres/base.py:624
↓ 4 callersFunction_serde_roundtrip
(data: Any)
libs/sdk-py/tests/test_serde.py:11
↓ 4 callersFunction_stream_part
( method: str, namespace: tuple[str, ...], data: Any, )
libs/langgraph/tests/test_stream_subgraph_transformer.py:105
↓ 4 callersFunction_subgraph_transformer
(mux: StreamMux)
libs/langgraph/tests/test_stream_subgraph_transformer.py:156
↓ 4 callersFunction_tool_events
Collect `(ns, payload)` for every `tools`-mode chunk.
libs/langgraph/tests/test_tool_stream_handler.py:67
↓ 4 callersFunction_unique_namespace
(label: str)
libs/sdk-py/tests/integration/test_store.py:31
↓ 4 callersFunction_unstamped
Strip push stamps from a StreamChannel's internal buffer.
libs/langgraph/tests/test_stream_subgraph_transformer.py:162
↓ 4 callersFunction_validate_handler
Validate that a handler function has the correct signature. Args: fn: The handler function to validate handler_type: Description
libs/sdk-py/langgraph_sdk/encryption/__init__.py:41
↓ 4 callersFunction_validate_namespace
(namespace: tuple[str, ...])
libs/checkpoint/langgraph/store/base/__init__.py:1263
↓ 4 callersFunction_validate_reconnect_location
Validate that a reconnect Location URL is same-origin as the base URL. Raises ValueError if the Location header points to a different origin
libs/sdk-py/langgraph_sdk/_shared/utilities.py:167
↓ 4 callersMethodalist
List checkpoints from the database asynchronously. This method retrieves a list of checkpoint tuples from the Postgres database based
libs/checkpoint-postgres/langgraph/checkpoint/postgres/aio.py:119
↓ 4 callersMethodaput
( self, config: RunnableConfig, checkpoint: Checkpoint, metada
libs/langgraph/tests/test_pregel_async.py:321
↓ 4 callersMethodaput_writes
Store intermediate writes linked to a checkpoint asynchronously. This method saves intermediate writes associated with a checkpoint to the da
libs/checkpoint-postgres/langgraph/checkpoint/postgres/aio.py:307
↓ 4 callersMethodastream
( self, input: dict[str, Any] | Any, config: RunnableConfig | None = None, *,
libs/langgraph/langgraph/pregel/remote.py:879
↓ 4 callersMethodastream_events
Async-stream events from this remote graph. For `version="v3"`, awaits to an `_AsyncRemoteGraphRunStream`, matching the local `Pregel
libs/langgraph/langgraph/pregel/remote.py:1080
↓ 4 callersMethodbind_tools
( self, tools: Sequence[dict[str, Any] | type[BaseModel] | Callable | BaseTool], **kwa
libs/prebuilt/tests/model.py:60
↓ 4 callersFunctionbuild_event_stream_body
(params: dict[str, Any])
libs/sdk-py/langgraph_sdk/stream/transport/base.py:57
↓ 4 callersFunctionbuild_websocket_url
Convert an HTTP base URL plus API path into a WebSocket URL.
libs/sdk-py/langgraph_sdk/stream/transport/base.py:69
↓ 4 callersMethodclear
Delete the cached values for the given namespaces. If no namespaces are provided, clear all cached values.
libs/checkpoint-sqlite/langgraph/cache/sqlite/__init__.py:98
↓ 4 callersMethodclose
Tear down the thread stream. Idempotent.
libs/sdk-py/langgraph_sdk/_async/stream.py:1288
↓ 4 callersMethodclose
(self)
libs/sdk-py/langgraph_sdk/stream/multi_cursor_buffer.py:30
↓ 4 callersMethodconfig_schema
(self, *, include: Sequence[str] | None = None)
libs/langgraph/langgraph/pregel/main.py:954
↓ 4 callersMethoddelete_item
Delete an item. Args: key: The unique identifier for the item. namespace: Optional list of strings representing the n
libs/sdk-py/langgraph_sdk/_async/store.py:144
↓ 4 callersFunctiondelta_channels_to_snapshot
Return the set of DeltaChannel names that should snapshot now. A channel snapshots when EITHER its accumulated update count reaches `snapshot
libs/langgraph/langgraph/pregel/_checkpoint.py:50
↓ 4 callersFunctionfunc
()
libs/langgraph/tests/test_utils.py:50
↓ 4 callersMethodget
Fetch a checkpoint using the given configuration. Args: config: Configuration specifying which checkpoint to retrieve. R
libs/checkpoint/langgraph/checkpoint/base/__init__.py:227
↓ 4 callersMethodget
Get a thread by ID. Args: thread_id: The ID of the thread to get. include: Additional fields to include in the respon
libs/sdk-py/langgraph_sdk/_sync/threads.py:47
↓ 4 callersMethodget_build_logs
( self, project_id: str, revision_id: str, payload: dict[str, Any] )
libs/cli/langgraph_cli/host_backend.py:186
↓ 4 callersFunctionget_checkpoint_metadata
Get checkpoint metadata in a backwards-compatible manner.
libs/checkpoint/langgraph/checkpoint/base/__init__.py:757
↓ 4 callersMethodget_context_jsonschema
(self)
libs/langgraph/langgraph/pregel/main.py:994
↓ 4 callersMethodget_delta_channel_history
Fast-path override of `BaseCheckpointSaver.get_delta_channel_history`. Two-stage query: * Stage 1 (paged): newest-first slice of `ch
libs/checkpoint-sqlite/langgraph/checkpoint/sqlite/__init__.py:503
↓ 4 callersFunctionget_expected_history
(*, exc_task_results: int = 0)
libs/langgraph/tests/test_checkpoint_migration.py:26
↓ 4 callersMethodget_history
Get the state history of a thread. Args: thread_id: The ID of the thread to get the state history for. checkpoint: Re
libs/sdk-py/langgraph_sdk/_async/threads.py:687
↓ 4 callersFunctionget_serializable_checkpoint_metadata
Get checkpoint metadata in a backwards-compatible manner.
libs/checkpoint/langgraph/checkpoint/base/__init__.py:778
↓ 4 callersFunctionget_text_at_path
Extract text from an object using a path expression or pre-tokenized path. Args: obj: The object to extract text from path: Eithe
libs/checkpoint/langgraph/store/base/embed.py:233
↓ 4 callersMethodinvoke
( self, input: dict[str, Any] | Any, config: RunnableConfig | None = None, *,
libs/langgraph/langgraph/pregel/remote.py:1133
↓ 4 callersFunctionis_managed_value
(value: Any)
libs/langgraph/langgraph/managed/base.py:27
↓ 4 callersMethodjson
Register the JSON encryption handler. Example: ```python @encryption.encrypt.json async def encrypt_json(
libs/sdk-py/langgraph_sdk/encryption/__init__.py:106
↓ 4 callersFunctionmap
(state: State)
libs/langgraph/tests/test_pregel.py:8099
↓ 4 callersFunctionmap_input
Map input chunk to a sequence of pending writes in the form (channel, value).
libs/langgraph/langgraph/pregel/_io.py:81
↓ 4 callersMethodon_llm_new_token
(self, token, *, run_id, **kwargs)
libs/langgraph/tests/test_retry.py:1081
↓ 4 callersMethodprocess
(self, event: ProtocolEvent)
libs/langgraph/langgraph/stream/transformers.py:265
↓ 4 callersMethodpush
(self, item: T)
libs/sdk-py/langgraph_sdk/stream/multi_cursor_buffer.py:24
↓ 4 callersMethodput
Save a checkpoint to the in-memory storage. This method saves a checkpoint to the in-memory storage. The checkpoint is associated wit
libs/checkpoint/langgraph/checkpoint/memory/__init__.py:421
↓ 4 callersMethodput_item
Store or update an item. Args: namespace: A list of strings representing the namespace path. key: The unique identifi
libs/sdk-py/langgraph_sdk/_async/store.py:35
↓ 4 callersMethodread_from
Adds the specified channels to read from, without subscribing to them.
libs/langgraph/langgraph/pregel/main.py:293
↓ 4 callersMethodscript_sequence
Set per-open stream scripts consumed in order by /stream/events.
libs/sdk-py/tests/streaming/_fake_server.py:116
↓ 4 callersFunctionstream
(chunk)
libs/langgraph/tests/test_retry.py:758
↓ 4 callersMethodsubscribe_to
Add channels to subscribe to. Node will be invoked when any of these channels are updated, with a dict of the channel values as input
libs/langgraph/langgraph/pregel/main.py:258
↓ 4 callersFunctionsync_timeout_unsupported
Build the canonical error for using `timeout` with a sync target.
libs/langgraph/langgraph/_internal/_timeout.py:21
↓ 4 callersMethodupdate
( self, thread_id: str, *, metadata: Mapping[str, Any], ttl: int | Map
libs/sdk-py/langgraph_sdk/_async/threads.py:179
↓ 4 callersMethodupdate_state
Update the state of a thread. Args: thread_id: The ID of the thread to update. values: The values to update the state
libs/sdk-py/langgraph_sdk/_async/threads.py:621
↓ 4 callersFunctionupdates_event
( seq: int = 0, namespace: list[str] | None = None, **data: Any )
libs/sdk-py/tests/streaming/_events.py:78
↓ 4 callersFunctionvalidate
Run the validation suite against a registered checkpointer. Args: registered: A RegisteredCheckpointer (from @checkpointer_test decorator
libs/checkpoint-conformance/langgraph/checkpoint/conformance/validate.py:45
↓ 4 callersMethodwith_timeout
Return a new awaitable that raises `asyncio.TimeoutError` after `timeout` seconds. Bounds the wait for the lifecycle terminal (and only that
libs/sdk-py/langgraph_sdk/_async/stream.py:294
↓ 3 callersMethod__init__
( self, message: str, *args: object, since: tuple[int, int], expected_
libs/langgraph/langgraph/warnings.py:29
↓ 3 callersMethod__init__
(self, prefix: str | re.Pattern = "")
libs/langgraph/tests/any_str.py:34
↓ 3 callersFunction_add_messages_graph
(checkpointer: Any)
libs/langgraph/tests/test_delta_channel_migration.py:531
↓ 3 callersMethod_add_schema
(self, schema: type[Any], /, allow_managed: bool = True)
libs/langgraph/langgraph/graph/state.py:342
↓ 3 callersFunction_adrive_until_done
Call the async pump until it returns False.
libs/langgraph/langgraph/stream/run_stream.py:30
↓ 3 callersFunction_arm
Pre-subscribe every projection in the mux so synthetic pushes accumulate. Real consumer code subscribes by iterating the projection; tests in
libs/langgraph/tests/test_stream_subgraph_transformer.py:118
↓ 3 callersFunction_assistant_payload
()
libs/sdk-py/tests/test_assistants_client.py:14
↓ 3 callersMethod_await_run_start_gate
Wait for the current run.start to commit the thread server-side. No-op when no run.start is in flight. Re-raises if run.start failed.
libs/sdk-py/langgraph_sdk/_async/stream.py:1809
↓ 3 callersFunction_binop_graph
(checkpointer: Any)
libs/checkpoint-sqlite/tests/test_delta_channel_migration.py:54
↓ 3 callersFunction_build_custom_stream_graph
()
libs/langgraph/tests/test_pregel_stream_events_v3.py:112
↓ 3 callersFunction_build_graph
(checkpointer: Any)
libs/langgraph/tests/test_delta_channel_id_stability.py:37
↓ 3 callersFunction_build_runtime_env_vars
(config: Config)
libs/cli/langgraph_cli/config.py:1132
↓ 3 callersMethod_build_saver_with_chain
Build an InMemorySaver with a 3-checkpoint chain and per-step writes for a `messages` channel. Returns `(saver, thread_id, namespace)
libs/checkpoint/tests/test_memory.py:434
↓ 3 callersFunction_build_simple_graph
()
libs/langgraph/tests/test_interleave_arrival_order.py:46
↓ 3 callersFunction_build_two_channel_graph
Graph with two delta channels A and B. The node only writes to channel A; B is never written by the node. `n_loops` controls how many superst
libs/langgraph/tests/test_delta_channel_supersteps_bound.py:34
↓ 3 callersFunction_checkpoint_ns_for_parent_command
Return the checkpoint namespace for the parent graph. The checkpoint namespace is a `|`-separated path. Each segment is usually of the form `
libs/langgraph/langgraph/pregel/_retry.py:544
← previousnext →501–600 of 6,698, ranked by callers