1.5 KiB
1.5 KiB
title, created, updated, type, tags, sources
| title | created | updated | type | tags | sources | |||||
|---|---|---|---|---|---|---|---|---|---|---|
| Prompt 结构框架 (Prompt Structure Framework) | 2026-07-13 | 2026-07-13 | concept |
|
|
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 中的噪声——如果某段内容删掉后行为不变,就不该保留。