NewContextInjector 创建 Context 注入器
(config InjectorConfig)
| 29 | |
| 30 | // NewContextInjector 创建 Context 注入器 |
| 31 | func NewContextInjector(config InjectorConfig) *ContextInjector { |
| 32 | return &ContextInjector{ |
| 33 | config: config, |
| 34 | } |
| 35 | } |
| 36 | |
| 37 | // InjectContext 注入上下文到系统提示词 |
| 38 | func (ci *ContextInjector) InjectContext(ctx context.Context, systemPrompt string) string { |
no outgoing calls