Remove MessageGraph (#4875)

Remove MessageGraph

Co-authored-by: Nuno Campos <nuno@langchain.dev>
This commit is contained in:
Sydney Runkle
2025-05-29 21:50:23 -04:00
committed by GitHub
co-authored by Nuno Campos
parent afb83d2201
commit a5e6223569
9 changed files with 31 additions and 2049 deletions
+3 -3
View File
@@ -89,7 +89,7 @@
},
{
"cell_type": "code",
"execution_count": 2,
"execution_count": null,
"id": "baf669a0-04ee-492d-80d8-8fcb658ed128",
"metadata": {},
"outputs": [],
@@ -313,8 +313,8 @@
"\n",
" builder.add_edge(\"finalizer\", END)\n",
"\n",
" # These functions let the step be used in a MessageGraph\n",
" # or a StateGraph with 'messages' as the key.\n",
" # These functions let the step be used in a\n",
" # StateGraph with 'messages' as the key.\n",
" def encode(x: Union[Sequence[AnyMessage], PromptValue]) -> dict:\n",
" \"\"\"Ensure the input is the correct format.\"\"\"\n",
" if isinstance(x, PromptValue):\n",