chat_engine.chat("hello", chat_history=chat_history)
chat_history
is a list of ChatMessage
objects.Are you talking about query engines in LlamaIndex or Agents in LlamaIndex?I don't know which you're using, so I assumed that you're using a Chat Engine.