Documentation
¶
Index ¶
- Constants
- func ExportPrompt(promptName, destDir string) (string, error)
- func Load(name string) (string, error)
- func MustLoad(name string) string
- func OverrideExists(promptName, overrideDir string) bool
- func PromptsForRole(role string) []string
- func SetOverrideDir(dir string)
- func SetUserLanguage(_ string)
- type Loader
Constants ¶
const PromptsDirName = "prompts"
PromptsDirName is the subdirectory within .decsr for custom prompts.
Variables ¶
This section is empty.
Functions ¶
func ExportPrompt ¶
ExportPrompt writes the default embedded prompt to a project-level override file. Returns the path of the written file.
func OverrideExists ¶
OverrideExists returns true if a project-level override exists for the given prompt.
func PromptsForRole ¶
PromptsForRole returns the prompt template names used by a given agent role.
func SetOverrideDir ¶
func SetOverrideDir(dir string)
SetOverrideDir configures a project-level directory to check for prompt overrides. Files in this directory take precedence over embedded defaults.
func SetUserLanguage ¶
func SetUserLanguage(_ string)
SetUserLanguage is retained as a no-op for backwards compatibility. The project policy is that all agents reply exclusively in English regardless of the configured user language.
Types ¶
type Loader ¶
type Loader struct {
// contains filtered or unexported fields
}
Loader provides system prompt templates from embedded files, with optional project-level overrides from .decsr/prompts/.