docs: clarify BuildSystemPromptWithPersona as public API
CI / test (pull_request) Successful in 14s
CI / review (/openai/v1, gpt-5, gpt, openai, GPT_REVIEW_TOKEN) (pull_request) Successful in 1m19s
CI / review (/openai/v1, gpt-5, security, openai, SECURITY_REVIEW.md, SECURITY_REVIEW_TOKEN) (pull_request) Successful in 1m28s

Document the exported function's purpose and usage pattern for
external callers who want one-shot prompt assembly.
This commit is contained in:
Rodin
2026-05-10 03:25:21 -07:00
parent a82b2c483f
commit 5682d8246a
+3 -1
View File
@@ -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 {