| LangChain Reference home page | https://reference.langchain.com/ |
| GitHub | https://github.com/langchain-ai |
| Main Docs | https://docs.langchain.com/oss/python/langgraph |
| Deep Agents | https://reference.langchain.com/python/deepagents |
| LangChain | https://reference.langchain.com/python/langchain/overview |
| LangGraph | https://reference.langchain.com/python/langgraph/overview |
| Integrations | https://reference.langchain.com/python/integrations/overview |
| LangSmith | https://reference.langchain.com/python/langsmith |
| Overview | https://reference.langchain.com/python/langgraph/overview |
| Overview | https://reference.langchain.com/python/langgraph |
| Graphs | https://reference.langchain.com/python/langgraph/graphs |
| Functional API | https://reference.langchain.com/python/langgraph/func |
| Pregel | https://reference.langchain.com/python/langgraph/pregel |
| Checkpointing | https://reference.langchain.com/python/langgraph/checkpoints |
| Storage | https://reference.langchain.com/python/langgraph/store |
| Caching | https://reference.langchain.com/python/langgraph/cache |
| Types | https://reference.langchain.com/python/langgraph/types |
| Runtime | https://reference.langchain.com/python/langgraph/runtime |
| Config | https://reference.langchain.com/python/langgraph/config |
| Errors | https://reference.langchain.com/python/langgraph/errors |
| Constants | https://reference.langchain.com/python/langgraph/constants |
| Channels | https://reference.langchain.com/python/langgraph/channels |
| Agents | https://reference.langchain.com/python/langgraph/agents |
| LangGraph Checkpoint | https://reference.langchain.com/python/langgraph.checkpoint |
| LangGraph Store | https://reference.langchain.com/python/langgraph.store |
| Checkpoint Postgres | https://reference.langchain.com/python/langgraph.checkpoint.postgres |
| Store Postgres | https://reference.langchain.com/python/langgraph.store.postgres |
| Checkpoint SQLite | https://reference.langchain.com/python/langgraph.checkpoint.sqlite |
| LangGraph Prebuilt | https://reference.langchain.com/python/langgraph.prebuilt |
| LangGraph CLI | https://reference.langchain.com/python/langgraph-cli |
| LangGraph SDK | https://reference.langchain.com/python/langgraph-sdk |
| LangGraph Supervisor | https://reference.langchain.com/python/langgraph-supervisor |
| LangGraph Swarm | https://reference.langchain.com/python/langgraph-swarm |
| https://chat.langchain.com/ |
| Overview | https://reference.langchain.com/python/langgraph |
| Graphs | https://reference.langchain.com/python/langgraph/graphs |
| Functional API | https://reference.langchain.com/python/langgraph/func |
| Pregel | https://reference.langchain.com/python/langgraph/pregel |
| Checkpointing | https://reference.langchain.com/python/langgraph/checkpoints |
| Storage | https://reference.langchain.com/python/langgraph/store |
| Caching | https://reference.langchain.com/python/langgraph/cache |
| Types | https://reference.langchain.com/python/langgraph/types |
| Runtime | https://reference.langchain.com/python/langgraph/runtime |
| Config | https://reference.langchain.com/python/langgraph/config |
| Errors | https://reference.langchain.com/python/langgraph/errors |
| Constants | https://reference.langchain.com/python/langgraph/constants |
| Channels | https://reference.langchain.com/python/langgraph/channels |
| Agents | https://reference.langchain.com/python/langgraph/agents |
| LangGraph Checkpoint | https://reference.langchain.com/python/langgraph.checkpoint |
| LangGraph Store | https://reference.langchain.com/python/langgraph.store |
| Checkpoint Postgres | https://reference.langchain.com/python/langgraph.checkpoint.postgres |
| Store Postgres | https://reference.langchain.com/python/langgraph.store.postgres |
| Checkpoint SQLite | https://reference.langchain.com/python/langgraph.checkpoint.sqlite |
| LangGraph Prebuilt | https://reference.langchain.com/python/langgraph.prebuilt |
| LangGraph CLI | https://reference.langchain.com/python/langgraph-cli |
| LangGraph SDK | https://reference.langchain.com/python/langgraph-sdk |
| LangGraph Supervisor | https://reference.langchain.com/python/langgraph-supervisor |
| LangGraph Swarm | https://reference.langchain.com/python/langgraph-swarm |
| langgraph | https://reference.langchain.com/python/langgraph |
| graph | https://reference.langchain.com/python/langgraph/graph |
| state | https://reference.langchain.com/python/langgraph/graph/state |
| StateT | https://reference.langchain.com/python/langgraph/typing/StateT |
| ContextT | https://reference.langchain.com/python/langgraph/typing/ContextT |
| Generic | https://docs.python.org/3/library/typing.html#typing.Generic |
| StateT | https://reference.langchain.com/python/langgraph/typing/StateT |
| ContextT | https://reference.langchain.com/python/langgraph/typing/ContextT |
| InputT | https://reference.langchain.com/python/langgraph/typing/InputT |
| OutputT | https://reference.langchain.com/python/langgraph/typing/OutputT |
| A2A endpoint in Agent Server | https://docs.langchain.com/langsmith/server-a2a |
| Backward compatibility | https://docs.langchain.com/oss/python/langgraph/backward-compatibility |
| Build a multi-source knowledge base with routing | https://docs.langchain.com/oss/python/langchain/multi-agent/router-knowledge-base |
| Checkpointers | https://docs.langchain.com/oss/python/langgraph/checkpointers |
| Custom workflow | https://docs.langchain.com/oss/python/langchain/multi-agent/custom-workflow |
| View source on GitHub | https://github.com/langchain-ai/langgraph/blob/5bd231cbfd913e05ebc662f519eb9a655bc766df/libs/langgraph/langgraph/graph/state.py#L131 |
| InputT | https://reference.langchain.com/python/langgraph/typing/InputT |
| OutputT | https://reference.langchain.com/python/langgraph/typing/OutputT |
| Unpack | https://reference.langchain.com/python/typing-extensions/Unpack |
| DeprecatedKwargs | https://reference.langchain.com/python/langgraph/_internal/_typing/DeprecatedKwargs |
| type | https://docs.python.org/3/library/functions.html#type |
| StateT | https://reference.langchain.com/python/langgraph/typing/StateT |
| type | https://docs.python.org/3/library/functions.html#type |
| ContextT | https://reference.langchain.com/python/langgraph/typing/ContextT |
| type | https://docs.python.org/3/library/functions.html#type |
| InputT | https://reference.langchain.com/python/langgraph/typing/InputT |
| type | https://docs.python.org/3/library/functions.html#type |
| OutputT | https://reference.langchain.com/python/langgraph/typing/OutputT |
| type | https://docs.python.org/3/library/functions.html#type |
| StateT | https://reference.langchain.com/python/langgraph/typing/StateT |
| type | https://docs.python.org/3/library/functions.html#type |
| ContextT | https://reference.langchain.com/python/langgraph/typing/ContextT |
| type | https://docs.python.org/3/library/functions.html#type |
| InputT | https://reference.langchain.com/python/langgraph/typing/InputT |
| type | https://docs.python.org/3/library/functions.html#type |
| OutputT | https://reference.langchain.com/python/langgraph/typing/OutputT |
| DeprecatedKwargs | https://reference.langchain.com/python/langgraph/_internal/_typing/DeprecatedKwargs |
| attributeedges: set[tuple[str, str]] | https://reference.langchain.com/python/langgraph/graph/state/StateGraph/edges |
| attributenodes: dict[str, StateNodeSpec[Any, ContextT]] | https://reference.langchain.com/python/langgraph/graph/state/StateGraph/nodes |
| attributebranches: defaultdict[str, dict[str, BranchSpec]] | https://reference.langchain.com/python/langgraph/graph/state/StateGraph/branches |
| attributechannels: dict[str, BaseChannel] | https://reference.langchain.com/python/langgraph/graph/state/StateGraph/channels |
| attributemanaged: dict[str, ManagedValueSpec] | https://reference.langchain.com/python/langgraph/graph/state/StateGraph/managed |
| attributeschemas: dict[type[Any], dict[str, BaseChannel | ManagedValueSpec]] | https://reference.langchain.com/python/langgraph/graph/state/StateGraph/schemas |
| attributewaiting_edges: set[tuple[tuple[str, ...], str]] | https://reference.langchain.com/python/langgraph/graph/state/StateGraph/waiting_edges |
| attributecompiled: bool | https://reference.langchain.com/python/langgraph/graph/state/StateGraph/compiled |
| attributestate_schema: type[StateT] | https://reference.langchain.com/python/langgraph/graph/state/StateGraph/state_schema |
| attributecontext_schema: type[ContextT] | None | https://reference.langchain.com/python/langgraph/graph/state/StateGraph/context_schema |
| attributeinput_schema: type[InputT] | https://reference.langchain.com/python/langgraph/graph/state/StateGraph/input_schema |
| attributeoutput_schema: type[OutputT] | https://reference.langchain.com/python/langgraph/graph/state/StateGraph/output_schema |
| methodset_node_defaultsSet default node policies that apply to every node in this graph.
Per-node values passed to add_node always take precedence over these
defaults. Defaults are applied at compile() time. Policies set here
are not inherited by subgraphs.
retry_policy and timeout defaults apply to all nodes,
including error-handler nodes. cache_policy and error_handler
defaults only apply to regular nodes -- caching error-handler results
is unsafe, and handlers must never catch themselves. | https://reference.langchain.com/python/langgraph/graph/state/StateGraph/set_node_defaults |
| methodadd_nodeAdd a new node to the StateGraph. | https://reference.langchain.com/python/langgraph/graph/state/StateGraph/add_node |
| methodadd_edgeAdd 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 for that node to complete
before executing the end node. When multiple start nodes are provided,
the graph will wait for ALL of the start nodes to complete before executing the end node. | https://reference.langchain.com/python/langgraph/graph/state/StateGraph/add_edge |
| methodadd_conditional_edgesAdd a conditional edge from the starting node to any number of destination nodes. | https://reference.langchain.com/python/langgraph/graph/state/StateGraph/add_conditional_edges |
| methodadd_sequenceAdd a sequence of nodes that will be executed in the provided order. | https://reference.langchain.com/python/langgraph/graph/state/StateGraph/add_sequence |
| methodset_entry_pointSpecifies the first node to be called in the graph.
Equivalent to calling add_edge(START, key). | https://reference.langchain.com/python/langgraph/graph/state/StateGraph/set_entry_point |
| methodset_conditional_entry_pointSets a conditional entry point in the graph. | https://reference.langchain.com/python/langgraph/graph/state/StateGraph/set_conditional_entry_point |
| methodset_finish_pointMarks a node as a finish point of the graph.
If the graph reaches this node, it will cease execution. | https://reference.langchain.com/python/langgraph/graph/state/StateGraph/set_finish_point |
| methodvalidate | https://reference.langchain.com/python/langgraph/graph/state/StateGraph/validate |
| methodcompileCompiles the StateGraph into a CompiledStateGraph object.
The compiled graph implements the Runnable interface and can be invoked,
streamed, batched, and run asynchronously. | https://reference.langchain.com/python/langgraph/graph/state/StateGraph/compile |