2.9 KiB
hide
| hide | |
|---|---|
|
How-to guides
Welcome to the LangGraph how-to guides! These guides provide practical, step-by-step instructions for accomplishing key tasks in LangGraph.
Controllability
LangGraph is known for being a highly controllable agent framework. These how-to guides show how to achieve that controllability.
- How to create subgraphs
- How to create branches for parallel execution
- How to create map-reduce branches for parallel execution
Persistence
LangGraph makes it easy to persist state across graph runs. The guide below shows how to add persistence to your graph.
- How to add persistence ("memory") to your graph
- How to manage conversation history
- How to create a custom checkpointer using Postgres
Human in the Loop
One of LangGraph's main benefits is that it makes human-in-the-loop workflows easy. These guides cover common examples of that.
- How to add breakpoints
- How to edit graph state
- How to wait for user input
- How to view and update past graph state
Streaming
LangGraph is built to be streaming first. These guides show how to use different streaming modes.
- How to stream full state of your graph
- How to stream state updates of your graph
- How to stream LLM tokens
- How to stream arbitrarily nested content
- How to configure multiple streaming modes at the same time
- How to stream events from within a tool
- How to stream events from the final node
Other
- How to run graph asynchronously
- How to visualize your graph
- How to add runtime configuration to your graph
- How to use a Pydantic model as your state
- How to use a context object in state
Prebuilt ReAct Agent
These guides show how to use the prebuilt ReAct agent. Please note that here will we use a prebuilt agent. One of the big benefits of LangGraph is that you can easily create your own agent architectures. So while it's fine to start here to build an agent quickly, we would strongly recommend learning how to build your own agent so that you can take full advantage of LangGraph.