MemoryTool¶
This docs was updated at: 2026-02-23
com.paragon.agents.MemoryTool ยท Class
Memory exposed as FunctionTools for agent use.
This class provides 4 tools for memory operations. The userId is set securely by the developer (not by the LLM) to prevent prompt injection attacks.
Usage:
Memory storage = InMemoryMemory.create();
Agent agent = Agent.builder()
.addMemoryTools(storage) // Adds all 4 memory tools
.build();
Since: 1.0
Methods¶
all¶
Creates all four memory tools.
Parameters
| Name | Description |
|---|---|
memory |
the memory storage |
Returns
list of all memory tools