docs: clarify BuildSystemPromptWithPersona as public API
Document the exported function's purpose and usage pattern for external callers who want one-shot prompt assembly.
This commit is contained in:
@@ -92,7 +92,9 @@ func BuildPersonaSystemPrompt(p *Persona) string {
|
||||
}
|
||||
|
||||
// BuildSystemPromptWithPersona constructs the full system prompt, using either
|
||||
// a persona or the default generic prompt.
|
||||
// a persona or the default generic prompt. This is a convenience wrapper that
|
||||
// combines BuildPersonaSystemPrompt (or BuildSystemBase) with patterns and conventions.
|
||||
// It is exported for use by callers who want one-shot prompt assembly.
|
||||
func BuildSystemPromptWithPersona(persona *Persona, conventions, patterns string) string {
|
||||
var base string
|
||||
if persona != nil {
|
||||
|
||||
Reference in New Issue
Block a user