ChatHistoryMemory
, VectorDBMemory
, or LongtermAgentMemory
).write_records()
to add new information to the memory.retrieve()
to get relevant context for the agent’s next action.get_context()
to obtain the formatted context for the agent.LongtermAgentMemory
:LongtermAgentMemory
to your ChatAgent
:BaseContextCreator
:
VectorDBBlock
, you can customize it by adjusting the embedding models or vector storages:
VectorDBMemory
, be mindful of the trade-off between retrieval accuracy and speed as the database grows.