# 记忆工具

这个 [记忆树](/openhuman/zh/gong-neng/obsidian-wiki/memory-tree.md) 是 OpenHuman 的知识库。记忆工具是代理在对话中与它交互的方式。

## 该家族中的工具

| 工具   | 它的作用                                    |
| ---- | --------------------------------------- |
| `回忆` | 通过查询搜索记忆树——按来源范围、主题范围或全局范围。返回带有来源依据的片段。 |
| `存储` | 写入一条新的记忆，代理认为这值得保留（一个事实、一项偏好、一段上下文）。    |
| `遗忘` | 通过 ID 删除一条记忆——当内容有误、已过时，或用户明确要求忘记它时使用。  |

还有一个支持树状感知的检索界面（深入某个主题，获取某一天的全局摘要）——代理会根据问题选择合适的方式。

## 为什么这些是工具，而不是隐式上下文

记忆树太大，无法在每次对话中全部展开。工具让模型能够 *询问* - “我对 Alice 了解什么？”，“昨天发生了什么？”，“提醒我上周的 Stripe webhook”——检索层只返回相关的片段，并附带指向你 Obsidian 库中源文件的出处。

## 另见

* [记忆树](/openhuman/zh/gong-neng/obsidian-wiki/memory-tree.md) - 这些工具从哪里读取、写入什么。
* [自动获取](/openhuman/zh/gong-neng/obsidian-wiki/auto-fetch.md) - 这棵树最初是如何被填充的。


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://tinyhumans.gitbook.io/openhuman/zh/gong-neng/native-tools/memory-tools.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
