LlamaIndex.TS: memory for a llamaindex agent / chat engine. getSystemPrompt returns the
governed context to pass as the agent's systemPrompt (or prepend to it) for the turn, and
saveTurn persists the completed exchange: call them around agent.chat({ message }).
Structural, so llamaindex stays an optional peer dependency.
LlamaIndex.TS: memory for a
llamaindexagent / chat engine.getSystemPromptreturns the governed context to pass as the agent'ssystemPrompt(or prepend to it) for the turn, andsaveTurnpersists the completed exchange: call them aroundagent.chat({ message }). Structural, sollamaindexstays an optional peer dependency.