> For the complete documentation index, see [llms.txt](https://docs.convai.com/api-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.convai.com/api-docs/zh/cha-jian-yu-ji-cheng/convai-unreal-engine-plugin/features/long-term-memory.md).

# 长期记忆

查找在 Unreal Engine 中启用长期记忆、识别玩家、恢复会话和排查回忆问题的指南。

长期记忆（LTM）使 Convai 角色能够在不同会话之间保留关于特定玩家的事实。在 Convai Unreal Engine 插件中，当角色启用了 LTM 且聊天机器人发送一个稳定 `EndUserID` 在连接时。

<table data-view="cards"><thead><tr><th></th><th data-hidden data-card-target data-type="content-ref"></th></tr></thead><tbody><tr><td><strong>长期记忆的工作原理</strong><br>了解 LTM 存储什么、玩家身份如何限定记忆作用范围，以及你的项目必须在会话之间持久保存什么。</td><td><a href="/api-docs/zh/cha-jian-yu-ji-cheng/convai-unreal-engine-plugin/features/long-term-memory/how-long-term-memory-works.md">长期记忆的工作原理</a></td></tr><tr><td><strong>长期记忆快速入门</strong><br>为一个角色启用记忆，分配一个稳定的玩家身份，并在编辑器中运行时验证跨会话回忆。</td><td><a href="/api-docs/zh/cha-jian-yu-ji-cheng/convai-unreal-engine-plugin/features/long-term-memory/long-term-memory-quick-start.md">长期记忆快速开始</a></td></tr><tr><td><strong>为角色配置记忆</strong><br>启用或验证角色的 LTM 设置，并在需要时重置本地会话连接。</td><td><a href="/api-docs/zh/cha-jian-yu-ji-cheng/convai-unreal-engine-plugin/features/long-term-memory/configure-memory-for-a-character.md">为角色配置记忆</a></td></tr><tr><td><strong>终端用户身份</strong><br>在 `StartSession` 之前选择并分配一个稳定的 `EndUserID`，以便记忆始终限定在正确的玩家范围内。</td><td><a href="/api-docs/zh/cha-jian-yu-ji-cheng/convai-unreal-engine-plugin/features/long-term-memory/end-user-identity.md">终端用户身份</a></td></tr><tr><td><strong>说话人 ID 管理</strong><br>当你的项目使用说话人 ID 工作流时，通过蓝图节点创建、列出和删除说话人 ID 记录。</td><td><a href="/api-docs/zh/cha-jian-yu-ji-cheng/convai-unreal-engine-plugin/features/long-term-memory/speaker-id-management.md">说话者 ID 管理</a></td></tr><tr><td><strong>LTM 蓝图参考</strong><br>运行时 `Convai|LTM` 蓝图节点、`FConvaiSpeakerInfo` 以及两个 Convai 组件上的记忆属性参考。</td><td><a href="/api-docs/zh/cha-jian-yu-ji-cheng/convai-unreal-engine-plugin/features/long-term-memory/ltm-blueprint-reference.md">LTM Blueprint 参考</a></td></tr><tr><td><strong>长期记忆使用示例</strong><br>针对回访用户、共享设备、账户绑定身份和全新开始重置的蓝图优先模式。</td><td><a href="/api-docs/zh/cha-jian-yu-ji-cheng/convai-unreal-engine-plugin/features/long-term-memory/long-term-memory-usage-examples.md">长期记忆使用示例</a></td></tr><tr><td><strong>排查长期记忆故障</strong><br>诊断已禁用的记忆、身份不匹配、说话人 ID 失败以及以全新状态启动的会话。</td><td><a href="/api-docs/zh/cha-jian-yu-ji-cheng/convai-unreal-engine-plugin/features/long-term-memory/troubleshoot-long-term-memory.md">排查长期记忆问题</a></td></tr></tbody></table>

### 下一步

先从 [长期记忆的工作原理](/api-docs/zh/cha-jian-yu-ji-cheng/convai-unreal-engine-plugin/features/long-term-memory/how-long-term-memory-works.md) 用于建立心理模型，然后按照 [长期记忆快速入门](/api-docs/zh/cha-jian-yu-ji-cheng/convai-unreal-engine-plugin/features/long-term-memory/long-term-memory-quick-start.md) 在你的关卡中让记忆运行起来。

{% content-ref url="/pages/9df4cda7b4a29ebef0a84953231ee1b61e2d4c9f" %}
[长期记忆的工作原理](/api-docs/zh/cha-jian-yu-ji-cheng/convai-unreal-engine-plugin/features/long-term-memory/how-long-term-memory-works.md)
{% endcontent-ref %}

{% content-ref url="/pages/ce3e385378b893a9b53a3930b98101901dc9d6d8" %}
[长期记忆快速开始](/api-docs/zh/cha-jian-yu-ji-cheng/convai-unreal-engine-plugin/features/long-term-memory/long-term-memory-quick-start.md)
{% endcontent-ref %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

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

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.convai.com/api-docs/zh/cha-jian-yu-ji-cheng/convai-unreal-engine-plugin/features/long-term-memory.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
