chat()
call. And you can also easily get the same chat history from the chat enginechat_history
is a list of ChatMessage
objects, and each have a .json()
and .dict()
method (they are pydnatic objects)chat_history = chat_engine.chat_history response = chat_engine.chat("Hello!", chat_history=chat_history)