chat_engine.chat(..., chat_history=chat_history)
-- where chat history is a list of chat message objectschat_engine.chat_history
chat_engine.chat(..., chat_history=chat_history)
-- where chat history is a list of chat message objectsresponse = chat_engine.chat("hello", chat_history=chat_history)
chat_histories = {"user1": [], "user2": []} response = chat_engine.chat("hello", chat_history=chat_histories["user2"]) chat_histories["user2"].append(ChatMessage(role="assistant", content=respons.response))
agent = FunctionCallingAgent.from_tools(...) response = agent.chat("hello", chat_history=chat_histories["user2"]) chat_histories["user2"] = agent.chat_history