FEATURE: Runnable with message history (#13418)

Add RunnableWithMessageHistory class that can wrap certain runnables and manages chat history for them.
This commit is contained in:
Bagatur
2023-11-17 12:00:01 -08:00
committed by GitHub
parent 0fc3af8932
commit 2e2114d2d0
15 changed files with 939 additions and 21 deletions

View File

@@ -1051,6 +1051,14 @@
":::"
]
},
{
"cell_type": "markdown",
"id": "fdf6c7e0-84f8-4747-b2ae-e84315152bd9",
"metadata": {},
"source": [
"Here we've gone over how to add chain logic for incorporating historical outputs. But how do we actually store and retrieve historical outputs for different sessions? For that check out the LCEL [How to add message history (memory)](/docs/expression_language/how_to/message_history) page."
]
},
{
"cell_type": "markdown",
"id": "580e18de-132d-4009-ba67-4aaf2c7717a2",