()
| 18 | // PromptModule 表示一个可组合的 prompt 模块 |
| 19 | type PromptModule interface { |
| 20 | Name() string |
| 21 | Build(ctx *PromptContext) (string, error) |
| 22 | Priority() int // 模块优先级,决定注入顺序 |
| 23 | Condition(ctx *PromptContext) bool // 是否应该注入此模块 |
no outgoing calls
no test coverage detected