Auto-sync: 2026-04-27 08:02

This commit is contained in:
2026-04-27 08:02:55 +08:00
parent 1c7c7d673e
commit fbd6107be4
58 changed files with 2532 additions and 964 deletions

View File

@@ -0,0 +1,29 @@
---
title: "渐进式披露"
type: concept
tags: [Agent, Skill, Design Pattern, ADK]
sources: [google-5个agent-skill设计模式-2026-03-19]
last_updated: 2026-05-15
---
## Overview
渐进式披露Progressive Disclosure是 Google ADK Skill 设计模式的核心机制之一——只在运行时需要时才消耗上下文 token 来加载特定的模式内容,而非将所有知识一次性塞进 system prompt。
## Mechanism
- Agent 只有在真正用到某个技术或模式时才动态加载相关文档
- SKILL.md 监听特定的触发条件(如库关键词、用户意图)
- 按需加载 `references/` 目录下的规范文档
- 将加载的规则当作绝对真理来执行
## Key Insight
> 多亏了 ADK 的 SkillToolset 和渐进式披露机制agent 只在运行时需要时才消耗上下文 token 来加载特定的模式。
## Related Concepts
- [[ToolWrapper]]:渐进式披露的具体实现——监听关键词,按需加载领域规范
- [[SkillToolset]]:实现渐进式披露的 ADK 基础设施
- [[Generator]]:类似的按需加载思想,但侧重模板生成而非知识应用
- [[Inversion]]:类似的按需加载思想,但侧重信息收集而非知识应用
## Connections
- [[SkillToolset]] ← implements ← [[渐进式披露]]
- [[ToolWrapper]] ← uses ← [[渐进式披露]]