MemoryToolkit
- agent.save_memory(path)
- agent.load_memory(new_memory_obj)
- agent.load_memory_from_path(path)
- agent.clear_memory()
- agent (ChatAgent): The chat agent whose memory will be managed.
- timeout (Optional[float], optional): Maximum execution time allowed for toolkit operations in seconds. If None, no timeout is applied. (default: :obj:
None
)
init
save
- path (str): The file path to save the memory to.
load
- memory_json (str): A JSON string containing memory records.
load_from_path
- path (str): The file path to load the memory from.