> ## Documentation Index
> Fetch the complete documentation index at: https://docs.veadk.xyz/llms.txt
> Use this file to discover all available pages before exploring further.

# Long-term memory retrieval

## Overview

Tool identifier `load_memory`.

System tools are built-in tools that VeADK mounts **automatically** based on the agent's configuration — you don't add them to the `tools` list yourself. When you pass a `long_term_memory` to the agent, VeADK mounts the `load_memory` tool. Across sessions, the agent decides on its own when to query long-term memory to retain user preferences, history, and other long-lived state.

For long-term memory backends and configuration, see the [long-term memory docs](/productions/veadk/archives/1.0.7/en/components/memory).

## Usage

```python lines theme={null}
from veadk import Agent, Runner
from veadk.memory.long_term_memory import LongTermMemory

long_term_memory = LongTermMemory(backend="local", app_name="ltm_demo")

agent = Agent(
    name="memory_agent",
    model_name="doubao-seed-2-1-pro-260628",
    instruction="Retrieve long-term memory when useful, to give personalized, continuous answers.",
    long_term_memory=long_term_memory,  # mounts load_memory automatically
)

runner = Runner(agent=agent)
```

## Notes

<Note>
  System tools are managed by the framework: just provide a `long_term_memory` — you don't add `load_memory` to the `tools` list yourself. The agent decides when to call it based on its instruction and user input.
</Note>
