This commit is contained in:
2026-07-20 14:14:55 +08:00
parent 24b006225b
commit ebb0e425ca
88 changed files with 3995 additions and 6 deletions

View File

@@ -0,0 +1,44 @@
---
title: "Prompt 结构框架 (Prompt Structure Framework)"
created: 2026-07-13
updated: 2026-07-13
type: concept
tags: [prompt-engineering, template, gpt5.6]
sources:
- https://developers.openai.com/api/docs/guides/prompt-guidance-gpt-5p6
- openai-gpt5p6-prompt-guide-2026
---
# Prompt 结构框架
## 定义
OpenAI GPT-5.6 官方推荐的 **8 段式 Prompt 结构**。不是要求每段写长,而是用作检查清单——确认 Prompt 中的每条信息是否真的影响模型行为。
## 八段结构
```
Role → Personality → Goal → Success Criteria → Constraints → Tools → Output → Stop Rules
```
| 段 | 内容 | 何时需要 |
|----|------|---------|
| **Role** | 模型扮演的角色 | 角色影响行为时 |
| **Personality** | 语气、风格、态度 | 输出风格有要求时 |
| **Goal** | 任务最终目标 | 始终需要 |
| **Success Criteria** | 什么算完成 | 始终需要 |
| **Constraints** | 权限边界、安全限制 | 有硬约束时 |
| **Tools** | 可用工具及描述 | Agent 有工具时 |
| **Output** | 输出格式和内容要求 | 格式有要求时 |
| **Stop Rules** | 何时停止、何时继续 | 多步任务时 |
## 核心原则
> "只有确实会影响模型行为的信息,才有必要写进 Prompt。"
这套框架的目的是**消除 Prompt 中的噪声**——如果某段内容删掉后行为不变,就不该保留。
## 参考
- [[openai-gpt5p6-prompt-guide-2026|GPT-5.6 Prompt 指南]]
- [[prompt-simplification|Prompt 做减法]]
- [[outcome-first-prompting|结果优先提示]]