docs: update name of CompiledGraph CompiledStateGraph (#5348)

The name (and type) has changed. See:
https://langchain-ai.github.io/langgraph/reference/graphs/#langgraph.graph.state.StateGraph.compile
This commit is contained in:
Chris G
2025-07-07 00:35:37 +00:00
committed by GitHub
parent c91208429e
commit cac0cd5522
@@ -112,7 +112,7 @@ This tells the graph to terminate after running the chatbot node.
## 6. Compile the graph
Before running the graph, we'll need to compile it. We can do so by calling `compile()`
on the graph builder. This creates a `CompiledGraph` we can invoke on our state.
on the graph builder. This creates a `CompiledStateGraph` we can invoke on our state.
```python
graph = graph_builder.compile()