more updates

This commit is contained in:
vbarda
2024-12-04 19:02:49 -05:00
parent 5570121c83
commit 19a6e894eb
2 changed files with 7 additions and 4 deletions
+3
View File
@@ -283,6 +283,9 @@ You can optionally provide a dictionary that maps the `routing_function`'s outpu
graph.add_conditional_edges("node_a", routing_function, {True: "node_b", False: "node_c"})
```
!!! tip
Use [`Command`](#command) instead of conditional edges if you need to combine state updates and routing.
### Entry Point
The entry point is the first node(s) that are run when the graph starts. You can use the [`add_edge`][langgraph.graph.StateGraph.add_edge] method from the virtual [`START`][langgraph.constants.START] node to the first node to execute to specify where to enter the graph.
+4 -4
View File
@@ -83,7 +83,7 @@
"id": "6a08d957-b3d2-4538-bf4a-68ef90a51b98",
"metadata": {},
"source": [
"## Control flow with Command"
"## Define graph"
]
},
{
@@ -237,9 +237,9 @@
],
"metadata": {
"kernelspec": {
"display_name": "langgraph",
"display_name": "Python 3 (ipykernel)",
"language": "python",
"name": "langgraph"
"name": "python3"
},
"language_info": {
"codemirror_mode": {
@@ -251,7 +251,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.11.9"
"version": "3.12.3"
}
},
"nbformat": 4,