How to restore chat history from database for initialMessages? #3138
Closed
joel611
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I would like to save all messages into database and restore the history including tool steps to exactly before user left.
the value from onFinish is not convertible to the form of initialMessages, such as no toolInvocations.
Sample code:
Beta Was this translation helpful? Give feedback.
All reactions