<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/"><channel><title>模块 4：记忆与上下文 on 梦兽编程</title><link>https://rexai.top/tutorials/go-adk/04-memory/</link><description>Recent content in 模块 4：记忆与上下文 on 梦兽编程</description><generator>Hugo -- 0.162.1</generator><language>zh-cn</language><copyright>梦兽编程</copyright><lastBuildDate>Sat, 30 May 2026 03:00:00 +0800</lastBuildDate><atom:link href="https://rexai.top/tutorials/go-adk/04-memory/index.xml" rel="self" type="application/rss+xml"/><item><title>Rewind Sessions：会话回溯，让 Agent 重新来</title><link>https://rexai.top/tutorials/go-adk/04-memory/go-adk-rewind/</link><pubDate>Sat, 30 May 2026 03:00:00 +0800</pubDate><guid>https://rexai.top/tutorials/go-adk/04-memory/go-adk-rewind/</guid><description>详解 ADK Go 的 Rewind 机制——如何将 Agent 回溯到历史状态重新执行，适用于 Agent 走错路、需要重新来的场景。</description></item><item><title>Context Compression：上下文压缩，保持对话精简</title><link>https://rexai.top/tutorials/go-adk/04-memory/go-adk-context-compression/</link><pubDate>Sat, 30 May 2026 02:00:00 +0800</pubDate><guid>https://rexai.top/tutorials/go-adk/04-memory/go-adk-context-compression/</guid><description>详解 ADK Go 的 Context Compression 机制——如何压缩历史消息，保持上下文精简，控制 token 消耗。</description></item><item><title>Context Caching：大上下文优化，减少 Token 消耗</title><link>https://rexai.top/tutorials/go-adk/04-memory/go-adk-context-caching/</link><pubDate>Sat, 30 May 2026 01:00:00 +0800</pubDate><guid>https://rexai.top/tutorials/go-adk/04-memory/go-adk-context-caching/</guid><description>详解 ADK Go 的 Context Caching 机制——如何缓存上下文减少 token 消耗，以及适用场景和限制。</description></item><item><title>Event 系统：理解 Agent 的事件流</title><link>https://rexai.top/tutorials/go-adk/04-memory/go-adk-event/</link><pubDate>Sat, 30 May 2026 00:00:00 +0800</pubDate><guid>https://rexai.top/tutorials/go-adk/04-memory/go-adk-event/</guid><description>详解 ADK Go 中 Event 的类型、EventHandler 的使用，以及如何监听和处理 Agent 运行过程中的各种事件。</description></item><item><title>State 读写：Agent 内部状态管理</title><link>https://rexai.top/tutorials/go-adk/04-memory/go-adk-state/</link><pubDate>Fri, 29 May 2026 23:00:00 +0800</pubDate><guid>https://rexai.top/tutorials/go-adk/04-memory/go-adk-state/</guid><description>详解 ADK Go 中 State 的概念、读写 API，以及如何在多轮对话中保持和共享自定义状态数据。</description></item><item><title>Session 管理：会话创建、持久化与恢复</title><link>https://rexai.top/tutorials/go-adk/04-memory/go-adk-session/</link><pubDate>Fri, 29 May 2026 22:00:00 +0800</pubDate><guid>https://rexai.top/tutorials/go-adk/04-memory/go-adk-session/</guid><description>详解 ADK Go 中 Session 的概念、创建、持久化和恢复机制，理解如何在多轮对话中保持 Agent 的上下文。</description></item></channel></rss>