AddModule 添加模块
(module PromptModule)
| 86 | |
| 87 | // AddModule 添加模块 |
| 88 | func (pb *PromptBuilder) AddModule(module PromptModule) { |
| 89 | pb.modules = append(pb.modules, module) |
| 90 | } |
| 91 | |
| 92 | // Build 构建完整的 System Prompt |
| 93 | func (pb *PromptBuilder) Build(ctx *PromptContext) (string, error) { |