Files
nexus/wiki/concepts/渐进式披露.md
2026-04-27 08:02:55 +08:00

30 lines
1.3 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
---
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 ← [[渐进式披露]]