MCPcopy Create free account

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

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

↓ 617 callersMethodcompile
Compiles the `StateGraph` into a `CompiledStateGraph` object. The compiled graph implements the `Runnable` interface and can be invoked,
libs/langgraph/langgraph/graph/state.py:1164
↓ 563 callersMethodadd_node
Add a new node to the `StateGraph`, input schema is inferred as the state schema. Will take the name of the function/runnable as the node nam
libs/langgraph/langgraph/graph/state.py:375
↓ 532 callersMethodadd_edge
Add a directed edge from the start node (or list of start nodes) to the end node. When a single start node is provided, the graph will wait f
libs/langgraph/langgraph/graph/state.py:915
↓ 484 callersMethodinvoke
(self, input, config)
libs/langgraph/tests/test_retry.py:723
↓ 284 callersMethodget
(self)
libs/langgraph/langgraph/channels/topic.py:87
↓ 271 callersMethodainvoke
(self, input, config)
libs/langgraph/tests/test_retry.py:777
↓ 193 callersMethodstart
Send `run.start` to the server. Returns the result (`{"run_id": ...}`).
libs/sdk-py/langgraph_sdk/_async/stream.py:169
↓ 168 callersMethodget
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/_async/runs.py:906
↓ 162 callersMethodjoin
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/_async/runs.py:1060
↓ 129 callersMethodclear
Delete the cached values for the given namespaces. If no namespaces are provided, clear all cached values.
libs/checkpoint/langgraph/cache/base/__init__.py:41
↓ 120 callersMethodstream
( self, input: InputT | Command | None, config: RunnableConfig | None = None,
libs/langgraph/langgraph/pregel/main.py:2616
↓ 117 callersMethodexecute
Execute tool with given request. Can be called multiple times.
libs/prebuilt/langgraph/prebuilt/tool_node.py:1049
↓ 116 callersMethodpush
Route an event through all transformers, then append to the main log. Each transformer's `process()` is called in registration order.
libs/langgraph/langgraph/stream/_mux.py:269
↓ 116 callersMethodstream
Open a v3 thread-centric streaming session. When `thread_id` is None, a fresh UUIDv4 is minted client-side and included in the URL of
libs/sdk-py/langgraph_sdk/_async/threads.py:739
↓ 104 callersMethodvalues
Live state-snapshot projection (mirrors local `run.values`).
libs/langgraph/langgraph/pregel/_remote_run_stream.py:193
↓ 99 callersFunctionlifecycle_completed_event
Lifecycle event with `event="completed"`.
libs/sdk-py/tests/streaming/_events.py:56
↓ 97 callersMethodget_state
Get the current state of the graph.
libs/langgraph/langgraph/pregel/main.py:1392
↓ 93 callersMethodset_entry_point
Specifies the first node to be called in the graph. Equivalent to calling `add_edge(START, key)`. Parameters: key (str):
libs/langgraph/langgraph/graph/state.py:1066
↓ 92 callersMethodscript
Set the events the next /stream/events calls will replay.
libs/sdk-py/tests/streaming/_fake_server.py:102
↓ 91 callersMethodadd_conditional_edges
Add a conditional edge from the starting node to any number of destination nodes. Args: source: The starting node. This condition
libs/langgraph/langgraph/graph/state.py:969
↓ 90 callersMethodstream_events
( self, input: InputT | Command | None, config: RunnableConfig | None = None,
libs/langgraph/langgraph/pregel/main.py:3615
↓ 89 callersMethodget
Get the cached values for the given keys.
libs/checkpoint-sqlite/langgraph/cache/sqlite/__init__.py:46
↓ 89 callersFunctionvalidate_config
Validate a configuration dictionary.
libs/cli/langgraph_cli/config.py:323
↓ 82 callersMethodadd
(self, event_id: str)
libs/sdk-py/langgraph_sdk/stream/controller.py:42
↓ 80 callersFunctionlifecycle_started_event
Lifecycle event with `event="started"`.
libs/sdk-py/tests/streaming/_events.py:49
↓ 79 callersFunctiongenerate_config
Create a RunnableConfig targeting a specific thread / namespace / checkpoint.
libs/checkpoint-conformance/langgraph/checkpoint/conformance/test_utils.py:39
↓ 79 callersMethodget
Get the cached values for the given keys.
libs/checkpoint/langgraph/cache/base/__init__.py:25
↓ 77 callersMethodaput
Save a checkpoint to the database asynchronously. Note: This async method is not supported by the SqliteSaver class.
libs/checkpoint-sqlite/langgraph/checkpoint/sqlite/__init__.py:611
↓ 76 callersFunctioninterrupt
Interrupt the graph with a resumable exception from within a node. The `interrupt` function enables human-in-the-loop workflows by pausing graph
libs/langgraph/langgraph/types.py:811
↓ 75 callersMethodastream
(self, input, config)
libs/langgraph/tests/test_retry.py:979
↓ 70 callersMethodget_state_history
Get the history of the state of the graph.
libs/langgraph/langgraph/pregel/main.py:1480
↓ 68 callersFunction_quote_path_param
Encode a value for safe interpolation into a request path segment. Path segments are encoded with ``safe=""`` so that ``/`` and other reserved
libs/sdk-py/langgraph_sdk/_shared/utilities.py:201
↓ 66 callersMethodaget_state
Get the current state of the graph.
libs/langgraph/langgraph/pregel/main.py:1436
↓ 64 callersMethodfrom_conn_string
Create a new SqliteStore instance from a connection string. Args: conn_string (str): The SQLite connection string. in
libs/checkpoint-sqlite/langgraph/store/sqlite/base.py:1012
↓ 59 callersMethodstream
Open a v3 thread-centric streaming session. Args: thread_id: optional explicit thread identifier. Defaults to a f
libs/sdk-py/langgraph_sdk/_sync/threads.py:727
↓ 58 callersMethoddumps
(self, obj: Any)
libs/checkpoint/langgraph/checkpoint/serde/base.py:9
↓ 54 callersFunctiongenerate_metadata
Create CheckpointMetadata with defaults.
libs/checkpoint-conformance/langgraph/checkpoint/conformance/test_utils.py:55
↓ 54 callersMethodset_finish_point
Marks a node as a finish point of the graph. If the graph reaches this node, it will cease execution. Parameters: key (s
libs/langgraph/langgraph/graph/state.py:1103
↓ 54 callersMethodstream
( self, thread_id: str, assistant_id: str, *, input: Input | None = No
libs/sdk-py/langgraph_sdk/_async/runs.py:74
↓ 53 callersMethodaget_state_history
Asynchronously get the history of the state of the graph.
libs/langgraph/langgraph/pregel/main.py:1533
↓ 52 callersMethodupdate_state
Update the state of the graph with the given values, as if they came from node `as_node`. If `as_node` is not provided, it will be set to the
libs/langgraph/langgraph/pregel/main.py:2515
↓ 51 callersFunctiongenerate_checkpoint
Create a well-formed Checkpoint with sensible defaults.
libs/checkpoint-conformance/langgraph/checkpoint/conformance/test_utils.py:19
↓ 50 callersMethodset
Set the cached values for the given keys and TTLs.
libs/checkpoint/langgraph/cache/base/__init__.py:33
↓ 49 callersMethodclose
Finalize all transformers, close all projections and the main log. StreamChannels discovered in transformer projections are auto-clos
libs/langgraph/langgraph/stream/_mux.py:298
↓ 49 callersFunctionconfig_to_docker
( config_path: pathlib.Path, config: Config, *, base_image: str | None = None, api_version
libs/cli/langgraph_cli/config.py:1618
↓ 49 callersMethodsearch
Search for items within a namespace prefix. Args: namespace_prefix: Hierarchical path prefix to search within. query:
libs/checkpoint/langgraph/store/base/__init__.py:779
↓ 48 callersMethodastream_events
( self, input: InputT | Command | None, config: RunnableConfig | None = None,
libs/langgraph/langgraph/pregel/main.py:3720
↓ 47 callersFunctioncreate_react_agent
Creates an agent graph that calls tools in a loop until a stopping condition is met. !!! warning This function is deprecated in favor of
libs/prebuilt/langgraph/prebuilt/chat_agent_executor.py:278
↓ 47 callersMethodscript
( self, events: list[dict[str, Any]], *, fail_after: int | None = None, )
libs/sdk-py/tests/streaming/_sync_fake_server.py:54
↓ 45 callersMethodaget_tuple
Get a checkpoint tuple from the database asynchronously. Note: This async method is not supported by the SqliteSaver class.
libs/checkpoint-sqlite/langgraph/checkpoint/sqlite/__init__.py:585
↓ 45 callersMethodcopy
(self, update: dict[str, Any] | None = None)
libs/langgraph/langgraph/pregel/main.py:922
↓ 45 callersMethoddecode
(self, line: bytes)
libs/sdk-py/langgraph_sdk/sse.py:91
↓ 44 callersMethodput
Save a checkpoint to the database. This method saves a checkpoint to the SQLite database. The checkpoint is associated with the provi
libs/checkpoint-sqlite/langgraph/checkpoint/sqlite/__init__.py:387
↓ 44 callersMethodwrite_to
Add channel writes. Args: *channels: Channel names to write to. **kwargs: Channel name and value mappings. R
libs/langgraph/langgraph/pregel/main.py:317
↓ 43 callersFunctionvalues_event
( seq: int = 0, namespace: list[str] | None = None, **data: Any )
libs/sdk-py/tests/streaming/_events.py:72
↓ 42 callersMethodaupdate_state
Asynchronously update the state of the graph with the given values, as if they came from node `as_node`. If `as_node` is not provided, it will
libs/langgraph/langgraph/pregel/main.py:2528
↓ 42 callersMethoddo
Adds the specified node.
libs/langgraph/langgraph/pregel/main.py:304
↓ 42 callersMethodresult
( self, status: str, *, deployment_id: str, url: str | None = None,
libs/cli/langgraph_cli/deploy.py:203
↓ 41 callersMethodloads
(self, data: bytes)
libs/checkpoint/langgraph/checkpoint/serde/base.py:11
↓ 41 callersMethodupdate
(self, values: Sequence[Value | list[Value]])
libs/langgraph/langgraph/channels/topic.py:77
↓ 40 callersMethoddone
(self)
libs/sdk-py/langgraph_sdk/_sync/stream.py:171
↓ 40 callersFunctionmessage_start_event
( seq: int = 0, namespace: list[str] | None = None, *, message_id: str = "msg-1", role: st
libs/sdk-py/tests/streaming/_events.py:103
↓ 40 callersMethodsubscribe_only
Subscribe to a single channel.
libs/langgraph/langgraph/pregel/main.py:242
↓ 39 callersMethodcancel
Get a run. Args: thread_id: The thread ID to cancel. run_id: The run ID to cancel. wait: Whether to wait
libs/sdk-py/langgraph_sdk/_async/runs.py:943
↓ 38 callersMethod_bind
Bind this channel to sync or async mode. Called by the StreamMux after transformer registration. Must be called exactly once before a
libs/langgraph/langgraph/stream/stream_channel.py:92
↓ 38 callersMethodalist
List checkpoints from the database asynchronously. Note: This async method is not supported by the SqliteSaver class.
libs/checkpoint-sqlite/langgraph/checkpoint/sqlite/__init__.py:594
↓ 37 callersMethodasearch
Asynchronously search for items within a namespace prefix. Args: namespace_prefix: Hierarchical path prefix to search within.
libs/checkpoint/langgraph/store/base/__init__.py:1029
↓ 37 callersMethodwarn
Warning nested under a step. Text mode indents; JSON mode strips leading whitespace.
libs/cli/langgraph_cli/deploy.py:151
↓ 35 callersFunction_make_task
( proc, *, timeout=None, retry_policy=(), name="timed", task_id="tid", writers=(),
libs/langgraph/tests/test_retry.py:640
↓ 35 callersFunctionensure_config
Return a config with all keys, merging any provided configs. Args: *configs: Configs to merge before ensuring defaults. Returns:
libs/langgraph/langgraph/_internal/_config.py:322
↓ 34 callersMethodloads_typed
(self, data: tuple[str, bytes])
libs/checkpoint/langgraph/checkpoint/serde/jsonplus.py:273
↓ 33 callersFunctionarun_with_retry
Run a task asynchronously with retries.
libs/langgraph/langgraph/pregel/_retry.py:685
↓ 33 callersMethoddumps_typed
(self, obj: Any)
libs/checkpoint/langgraph/checkpoint/serde/jsonplus.py:258
↓ 33 callersMethodget_graph
Return a drawable representation of the computation graph.
libs/langgraph/langgraph/pregel/main.py:845
↓ 33 callersFunctiontasks_start_event
( seq: int = 0, namespace: list[str] | None = None, *, task_id: str = "task-1", name: str
libs/sdk-py/tests/streaming/_events.py:276
↓ 33 callersFunctiontool_started_event
( seq: int = 0, namespace: list[str] | None = None, *, tool_call_id: str = "call-1", tool_
libs/sdk-py/tests/streaming/_events.py:199
↓ 32 callersMethodput
Save a checkpoint to the database. This method saves a checkpoint to the Postgres database. The checkpoint is associated with the pro
libs/checkpoint-postgres/langgraph/checkpoint/postgres/__init__.py:263
↓ 32 callersMethodset_result
(self, value: Any)
libs/sdk-py/langgraph_sdk/_sync/stream.py:152
↓ 32 callersMethodset_state
Store a `ThreadState`-shaped dict for GET /threads/{thread_id}/state.
libs/sdk-py/tests/streaming/_fake_server.py:129
↓ 31 callersFunction_make_simple_graph
()
libs/langgraph/tests/test_stream_events_v3.py:76
↓ 30 callersFunction_create_config_with_runtime
(store: BaseStore | None = None)
libs/prebuilt/tests/test_on_tool_call.py:29
↓ 30 callersFunctionmerge_configs
Merge multiple configs into one. Args: *configs: The configs to merge. Returns: RunnableConfig: The merged config.
libs/langgraph/langgraph/_internal/_config.py:147
↓ 28 callersFunction_build_simple_graph
()
libs/langgraph/tests/test_pregel_stream_events_v3.py:63
↓ 28 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_tool_node.py:75
↓ 28 callersFunctionmessage_text_delta_event
( seq: int = 0, namespace: list[str] | None = None, *, text: str, index: int = 0, mess
libs/sdk-py/tests/streaming/_events.py:128
↓ 28 callersMethodtouch
(self)
libs/langgraph/langgraph/pregel/_retry.py:195
↓ 27 callersFunction_AnyIdHumanMessage
Create a human message with an any id field.
libs/langgraph/tests/messages.py:39
↓ 27 callersFunction_assert_stream_part_shape
Assert a v2 stream part has the required keys and correct types.
libs/langgraph/tests/test_stream_events_v3.py:131
↓ 27 callersFunction_idle_timeout
(value: float | timedelta)
libs/langgraph/tests/test_retry.py:678
↓ 27 callersFunctionclean_empty_lines
(input_str: str)
libs/cli/langgraph_cli/util.py:8
↓ 27 callersFunctionmessage_finish_event
( seq: int = 0, namespace: list[str] | None = None, *, input_tokens: int = 1, output_token
libs/sdk-py/tests/streaming/_events.py:164
↓ 27 callersMethodpost
Send a `POST` request.
libs/sdk-py/langgraph_sdk/_async/http.py:54
↓ 24 callersFunction_arm
Force projection logs to accept pushes (skip lazy-subscribe gate).
libs/langgraph/tests/test_stream_data_transformers.py:74
↓ 24 callersMethodaput
Save a checkpoint to the database asynchronously. This method saves a checkpoint to the Postgres database. The checkpoint is associated
libs/checkpoint-postgres/langgraph/checkpoint/postgres/aio.py:232
↓ 24 callersMethodget_tuple
Get a checkpoint tuple from the in-memory storage. This method retrieves a checkpoint tuple from the in-memory storage based on the p
libs/checkpoint/langgraph/checkpoint/memory/__init__.py:236
↓ 24 callersFunctionheader
Print a section header for script output.
libs/sdk-py/integration/scripts/_common.py:65
↓ 24 callersFunctiontasks_result_event
( seq: int = 0, namespace: list[str] | None = None, *, task_id: str = "task-1", name: str
libs/sdk-py/tests/streaming/_events.py:297
↓ 23 callersFunction_build_lifecycle_mux
(*, scope: tuple[str, ...] = ())
libs/langgraph/tests/test_stream_lifecycle_transformer.py:113
↓ 23 callersFunction_tasks_start
Build a `tasks` ProtocolEvent carrying a TaskPayload (start).
libs/langgraph/tests/test_stream_lifecycle_transformer.py:34
↓ 23 callersFunctionempty_checkpoint
()
libs/checkpoint/langgraph/checkpoint/base/__init__.py:814
next →1–100 of 6,684, ranked by callers