MCPcopy Create free account

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

Functions7,100 in github.com/langchain-ai/langgraph

↓ 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 callersMethod_own_checkpoint_config
A `checkpointer=True` subgraph keeps one history per thread, stored under its namespace with the task ids removed.
libs/langgraph/langgraph/pregel/main.py:869
↓ 8 callersMethod_register_subscription
Allocate a subscription id and add it to the registry.
libs/sdk-py/langgraph_sdk/_async/stream.py:1320
↓ 8 callersFunction_scoped
(config: dict, namespace: str)
libs/langgraph/tests/test_delta_channel_subgraph.py:87
↓ 8 callersFunction_snapshotted_checkpoints
( checkpointer: BaseCheckpointSaver, config: RunnableConfig )
libs/langgraph/tests/test_delta_channel_fork.py:92
↓ 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:726
↓ 8 callersMethodabatch
(self, ops: Iterable[Op])
libs/checkpoint/tests/test_store.py:161
↓ 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:541
↓ 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:561
↓ 8 callersFunctionchannels_from_checkpoint
Hydrate channels from a checkpoint. For most channels, `spec.from_checkpoint(checkpoint["channel_values"][k])` is sufficient. `DeltaChannel`
libs/langgraph/langgraph/pregel/_checkpoint.py:387
↓ 8 callersMethodcommit
( self, task: PregelExecutableTask, exception: BaseException | None, )
libs/langgraph/langgraph/pregel/_runner.py:575
↓ 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 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
↓ 8 callersMethodload
(self)
libs/checkpoint/langgraph/checkpoint/memory/__init__.py:684
↓ 8 callersFunctionmatches_subscription
Whether `event` should be delivered for `definition`.
libs/sdk-py/langgraph_sdk/stream/subscription.py:88
↓ 8 callersMethodon_chain_error
( self, error: BaseException, *, run_id: UUID, parent_run_id: UUID | N
libs/langgraph/langgraph/pregel/_messages.py:248
↓ 8 callersMethodon_chain_start
( self, serialized: dict[str, Any], inputs: dict[str, Any], *, run_id:
libs/langgraph/langgraph/pregel/_messages.py:191
↓ 8 callersMethodoutput_writes
( self, task_id: str, writes: WritesT, *, cached: bool = False )
libs/langgraph/langgraph/pregel/_loop.py:1482
↓ 8 callersMethodpatch
Return a new execution info object with selected fields replaced.
libs/langgraph/langgraph/runtime.py:55
↓ 8 callersFunctionprepare_next_tasks
( checkpoint: Checkpoint, pending_writes: list[PendingWrite], processes: Mapping[str, PregelNode],
libs/langgraph/langgraph/pregel/_algo.py:349
↓ 8 callersMethodput
( self, config: dict, checkpoint: Checkpoint, metadata: CheckpointMetadata,
libs/prebuilt/tests/memory_assert.py:34
↓ 8 callersMethodqsize
Return the approximate size of the queue (not reliable!).
libs/langgraph/langgraph/_internal/_queue.py:120
↓ 8 callersFunctionread_task_statuses
Return the status of every task that has recorded writes, keyed by task id. Writes from `NULL_TASK_ID` are input to the superstep, not task activ
libs/langgraph/langgraph/pregel/_task_status.py:99
↓ 8 callersMethodset
Set the cached values for the given keys and TTLs.
libs/checkpoint-sqlite/langgraph/cache/sqlite/__init__.py:78
↓ 8 callersMethodset_timeout
Set the per-attempt timeout policy for this node.
libs/langgraph/langgraph/pregel/main.py:365
↓ 8 callersFunctiontokenize_path
Tokenize a path into components. !!! info "Types handled" - Simple paths: "field1.field2" - Array indexing: "[0]", "[*]", "[-1]"
libs/checkpoint/langgraph/store/base/embed.py:336
↓ 7 callersMethod__anext__
(self)
libs/langgraph/tests/test_remote_graph_v3.py:172
↓ 7 callersFunction_child_builder
(*, snapshot_frequency: int = 1000)
libs/langgraph/tests/test_delta_channel_subgraph.py:43
↓ 7 callersMethod_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/checkpoint/postgres/__init__.py:405
↓ 7 callersMethod_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/checkpoint/postgres/aio.py:364
↓ 7 callersFunction_delta_channel_with_type
Build a DeltaChannel with an explicit type via the Annotated injection path.
libs/langgraph/tests/test_channels.py:531
↓ 7 callersMethod_emit
( self, mode: StreamMode, values: Callable[P, Iterator[Any]], *args: P.args,
libs/langgraph/langgraph/pregel/_loop.py:1446
↓ 7 callersFunction_event_namespace
(params_field: Any)
libs/sdk-py/langgraph_sdk/_async/stream.py:101
↓ 7 callersFunction_log_deploy_step
(step: int, message: str, **extra: object)
libs/cli/langgraph_cli/deploy.py:788
↓ 7 callersFunction_make_simple_graph
()
libs/langgraph/tests/test_stream_data_transformers.py:499
↓ 7 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/_sync/stream.py:714
↓ 7 callersMethod_migrate_checkpoint
Migrate a saved checkpoint to new channel layout.
libs/langgraph/langgraph/pregel/main.py:1200
↓ 7 callersFunction_patch
(deployment_id: str)
libs/cli/tests/unit_tests/cli/test_deploy_command.py:75
↓ 7 callersFunction_register_handler
( auth: Auth, resource: str | None, action: str | None, fn: types.Handler, )
libs/sdk-py/langgraph_sdk/auth/__init__.py:867
↓ 7 callersMethod_revive_lc2
(self, value: dict[str, Any])
libs/checkpoint/langgraph/checkpoint/serde/jsonplus.py:181
↓ 7 callersMethod_runner
(stdout: str | None)
libs/cli/tests/unit_tests/test_deploy_helpers.py:782
↓ 7 callersFunction_setup_source_thread
Create n checkpoints on tid (optionally across namespaces). Returns stored configs.
libs/checkpoint-conformance/langgraph/checkpoint/conformance/spec/test_copy_thread.py:18
↓ 7 callersFunction_task
(snapshot: Any, name: str)
libs/langgraph/tests/test_interrupt_state.py:89
↓ 7 callersFunction_tasks_result
Build a `tasks` ProtocolEvent carrying a TaskResultPayload (finish).
libs/langgraph/tests/test_stream_lifecycle_transformer.py:62
↓ 7 callersMethod_unregister_subscription
Remove a subscription from the registry. No-op if already absent.
libs/sdk-py/langgraph_sdk/_async/stream.py:1331
↓ 7 callersFunction_write_project
( tmp_path: pathlib.Path, *, dep_subdir: str = ".", uv_lock: str | None = None, pyproject:
libs/cli/tests/unit_tests/test_dependency_tracking.py:11
↓ 7 callersMethodabatch
Execute multiple operations asynchronously in a single batch. Args: ops: An iterable of operations to execute. Returns:
libs/checkpoint/langgraph/store/base/__init__.py:745
↓ 7 callersMethodadd_sequence
Add a sequence of nodes that will be executed in the provided order. Args: nodes: A sequence of `StateNode` (callables that accep
libs/langgraph/langgraph/graph/state.py:1032
↓ 7 callersMethodadelete
Asynchronously delete an item. Args: namespace: Hierarchical path for the item. key: Unique identifier within the nam
libs/checkpoint/langgraph/store/base/__init__.py:1198
↓ 7 callersMethodadelete_for_runs
Asynchronously delete all checkpoints and writes for the given run IDs. Args: run_ids: The run IDs whose checkpoints should be de
libs/checkpoint/langgraph/checkpoint/base/__init__.py:523
↓ 7 callersMethodaget_delta_channel_history
Fast-path override of `BaseCheckpointSaver.aget_delta_channel_history`. See `PostgresSaver.get_delta_channel_history` for design notes; this
libs/checkpoint-postgres/langgraph/checkpoint/postgres/aio.py:405
↓ 7 callersMethodalist_namespaces
List and filter namespaces in the store asynchronously. Used to explore the organization of data, find specific collections, or navig
libs/checkpoint/langgraph/store/base/__init__.py:1207
↓ 7 callersMethodbind_pump
Wire the sync pull callback onto every projection in this mux. Records the pump on the mux so child mini-muxes built by `_make_child`
libs/langgraph/langgraph/stream/_mux.py:162
↓ 7 callersFunctioncheckpoints_event
( seq: int = 0, namespace: list[str] | None = None, **data: Any )
libs/sdk-py/tests/streaming/_events.py:84
↓ 7 callersMethodclose
(self)
libs/sdk-py/langgraph_sdk/stream/sync_controller.py:323
↓ 7 callersMethodclose
Tear down the controller, awaiting any pending rotation closes.
libs/sdk-py/langgraph_sdk/stream/controller.py:164
↓ 7 callersFunctioncoerce_to_runnable
Coerce a runnable-like object into a Runnable. Args: thing: A runnable-like object. Returns: A Runnable.
libs/langgraph/langgraph/_internal/_runnable.py:550
↓ 7 callersMethodcommand
(self, verb: str)
libs/cli/tests/unit_tests/cli/test_deploy_command.py:195
↓ 7 callersFunctioncreate_archive
Context manager that creates a .tar.gz archive of the project source. Uses _assemble_local_deps to discover local dependencies referenced in
libs/cli/langgraph_cli/archive.py:63
↓ 7 callersFunctioncreate_error_message
(*, message: str, error_code: ErrorCode)
libs/langgraph/langgraph/errors.py:42
↓ 7 callersFunctiondefault_base_image
( config: Config, engine_runtime_mode: str = "combined_queue_worker" )
libs/cli/langgraph_cli/config.py:1638
↓ 7 callersMethoddict
(self)
libs/checkpoint/langgraph/store/base/__init__.py:105
↓ 7 callersMethodfrom_pycryptodome_aes
Create an `EncryptedSerializer` using AES encryption.
libs/checkpoint/langgraph/checkpoint/serde/encrypted.py:39
↓ 7 callersMethodget
Retrieve a single item. Args: namespace: Hierarchical path for the item. key: Unique identifier within the namespace.
libs/checkpoint/langgraph/store/base/__init__.py:756
↓ 7 callersMethodget_delta_channel_history
Fast-path override of `BaseCheckpointSaver.get_delta_channel_history`. Two-stage query: * Stage 1 (streamed): recursive CTE over `ch
libs/checkpoint-sqlite/langgraph/checkpoint/sqlite/__init__.py:503
↓ 7 callersFunctioninfer_channel
Map a protocol event's `method` to its subscription channel. Returns `None` for unrecognized methods so new server-side channels (e.g. from e
libs/sdk-py/langgraph_sdk/stream/subscription.py:68
↓ 7 callersMethodinterrupted
Drive the run to completion, then return whether it was interrupted. Raises: BaseException: If the run ended with an erro
libs/langgraph/langgraph/stream/run_stream.py:230
↓ 7 callersFunctionis_prefix_match
Whether `event_namespace` starts with `prefix`. Segments compare literally first; if the prefix segment contains no `:`, the candidate is als
libs/sdk-py/langgraph_sdk/stream/subscription.py:19
↓ 7 callersMethodlist
List checkpoints from the database. This method retrieves a list of checkpoint tuples from the SQLite database based on the provided
libs/checkpoint-sqlite/langgraph/checkpoint/sqlite/__init__.py:295
↓ 7 callersFunctionnormalize_image_tag
Validate and return a Docker image tag. Tags may only contain [A-Za-z0-9_.-]. Defaults to "latest" when empty.
libs/cli/langgraph_cli/deploy.py:542
↓ 7 callersMethodoverride
Replace the request with a new request with the given overrides. Returns a new `ToolCallRequest` instance with the specified attributes repla
libs/prebuilt/langgraph/prebuilt/tool_node.py:170
↓ 7 callersFunctionread_channels
( channels: Mapping[str, BaseChannel], select: Sequence[str] | str, *, skip_empty: bool = True
libs/langgraph/langgraph/pregel/_io.py:38
↓ 7 callersMethodscript_sequence
(self, scripts: list[SyncStreamScript])
libs/sdk-py/tests/streaming/_sync_fake_server.py:65
↓ 7 callersFunctionset_config_context
Set the child Runnable config + tracing context. Args: config: The config to set.
libs/langgraph/langgraph/_internal/_runnable.py:127
↓ 6 callersFunctionRunner
()
libs/cli/langgraph_cli/exec.py:18
↓ 6 callersFunction_aencode_json
(json: Any)
libs/sdk-py/langgraph_sdk/_async/http.py:290
↓ 6 callersFunction_araise_for_status_typed
(r: httpx.Response)
libs/sdk-py/langgraph_sdk/errors.py:213
↓ 6 callersFunction_build_context_reading_graph
()
libs/langgraph/tests/test_stream_events_v3_kwarg_forwarding.py:41
↓ 6 callersFunction_build_graph
(caller, tools)
libs/langgraph/tests/test_tool_stream_handler.py:57
↓ 6 callersFunction_checkpoint_summary
Summarize checkpoint history into a readable format for assertions. Returns a list of dicts (newest-first, matching get_state_history order) with
libs/langgraph/tests/test_time_travel.py:34
↓ 6 callersFunction_checkpoint_summary
Summarize checkpoint history into a readable format for assertions. Returns a list of dicts (newest-first, matching get_state_history order) with
libs/langgraph/tests/test_time_travel_async.py:43
↓ 6 callersMethod_ensure_fanout_running
(self)
libs/sdk-py/langgraph_sdk/_async/stream.py:1605
↓ 6 callersMethod_ensure_fanout_running
(self)
libs/sdk-py/langgraph_sdk/_sync/stream.py:1218
↓ 6 callersFunction_ensure_refresh
( ttl_config: TTLConfig | None, refresh_ttl: bool | None = None )
libs/checkpoint/langgraph/store/base/__init__.py:1286
↓ 6 callersMethod_ensure_task
Ensure the background processing loop is running.
libs/checkpoint/langgraph/store/base/batch.py:77
↓ 6 callersFunction_event_namespace
(params_field: Any)
libs/sdk-py/langgraph_sdk/_sync/stream.py:87
↓ 6 callersMethod_finish
(self, output: Any)
libs/sdk-py/langgraph_sdk/_async/stream.py:1021
↓ 6 callersMethod_get_checkpoint
(self, config: RunnableConfig | None)
libs/langgraph/langgraph/pregel/remote.py:380
↓ 6 callersFunction_invoke_returning
( return_value: Any, *, outer_id: str = "call-1", handle_tool_errors: bool = True, )
libs/prebuilt/tests/test_tool_node.py:2253
↓ 6 callersMethod_load_blobs
( self, blob_values: list[tuple[bytes, bytes, bytes]] )
libs/checkpoint-postgres/langgraph/checkpoint/postgres/base.py:351
← previousnext →301–400 of 7,100, ranked by callers